Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.
From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.
Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
Elite Section
Get access to private discussions, specialized support, indicators and trading systems reported every week.
Advanced Elite Section
For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
hi
even i had the same question and was lookin how to increase the lot size after a losing trade.
ex:
If previous trade has not reached the take profit level and is closed by stoploss/break even then lot size is two lots.
•If previous two trades has not reached the take profit level an closed by stop loss/break even then lot size is three lots.
•If previous three trades is not reached the take profit leveland closed by stop loss/break even then lot size is four lots.
i hope the guys here can help both of us by doing the code for the same
thanks in advance
shwetha
Quote:
Originally Posted by warpio
I want to know if there's any way to tell an EA to increase the lot size if the last trade closed in loss (martingale system), and use the normal lot size if the last trade closed in profit. It needs to be able to use micro lots. Is there any way to do this?
I have a lot of problems in debuging the code written for MT4. So I thought of writting most of the code in a DLL file then import those function to my MQL4 code. The problem I am facing is that this method doesn't succeed for DLL's written in C#. Does anybody now where the problem could be? A demonstration code would be so much appreciated.
I would also appreciate any other ideas for debugging MQL4 code.
I have a lot of problems in debuging the code written for MT4. So I thought of writting most of the code in a DLL file then import those function to my MQL4 code. The problem I am facing is that this method doesn't succeed for DLL's written in C#. Does anybody now where the problem could be? A demonstration code would be so much appreciated.
I would also appreciate any other ideas for debugging MQL4 code.
This is just a sample EA based on a price/simple MA cross. The reason I'm asking to get it checked out is because it's essentially the backbone of a few EA's I'm developing (the structure, not the strategy). All I need to do is verify that this EA will only trade on the completion of a bar. If someone can help me verify this, I'd appreciate it a lot. I'm still pretty new to MQL4 and just want to get this double checked before I go any further. I have about 4 EA's being developed @ the moment, and just want to be sure they execute trades correctly. In this case it would be only on a full bar.
In the EA one would only need to change EachTickMode to TRUE to make it trade tick by tick instead of bar by bar. Anyway, that's the idea. I'd appreciate any help.
as you know, the MA indicator attachs to the main chart window, so it's scale will equal to price ratio, when you want to set a level=20, it means, you want to draw a horizontal line at 20 price ratio, the prices are too far from 20, so you can't see any line
__________________
there wil be nothig for a person exept his efforts (Emam Ali Alayhesalam)
M.A.Gh
how i debug the code (experts, indicatos, script) in runtime
(step by step)
thanks
Wish I had the answer.
I just finished writing my first EA and tried testing it in Strategy Tester.
I was getting errors showing in the ST journal so I tried using the Print function in my EA to debug the problems. I've worked out a few bugs so far this way, but it's a slow process.
Hi
I am trying to code a very simple EA to test a strategy.
All it should do is open an order at a given time.
Take Profit, Stop Loss and position size are external variables.
I can't program but i tried to do it.
This is what i have but it doesn't open any trades in backtest.