@roar .... start thinking about adx indicator
.... turn off main line and stay only with +DI and -DI 
it is also one of best indicators to measure currency strength (along with bollinger bands % change)
@roar .... start thinking about adx indicator
.... turn off main line and stay only with +DI and -DI 
it is also one of best indicators to measure currency strength (along with bollinger bands % change)
it depends on the broker how much orders you can have opened ... it is possible about 200 
important note: this is not about profitable EA, it is about custom martingale principle, do all tests only in tester or demo ...
People are repeating question how to create martingale system.
In this tutorial I will describe how to create simple, but less stable martingale. This is one method is ugly but is simple and is working in tester.
Criteria:
Lets start:
Open new empty project:

Create few input parameters:

Create few variables:

In on Init section reset variables by lotsStart value:

In on Tick section add few blocks based on condition, if there is no trade (separate for Buy/Sell) than open trade with variable lots:

Opposite for sell:

Continue in on Trade section:
Learn basic math and use custom code block in simpliest way for your math and add custom code ... for our example the logic criteria are:

Do few changes for sell:

And rest of blocks for TP reset:

Run your EA in tester and you can see, that buy and sell are mixed and hard to find if martingale is working:

Think about input parameter for selecting trade type (only buy, only sell, or both), name this parameter tradeType and value 1 can be buy, value 2 can be sell, and 0 will representing both ... and add condition blocks into your logic:

Now test it. In EA settings (in metatrader tester) set tradeType = 1 (for only Buy trades) :

Results are now much better to read:

Graph shows that we should consider to lower lotsReset value,

try lotsReset 0.17 .... see, slightly better, but still in loss, just martingale 

try combined with sell, .... not much changed 

anyway, this was not about profitable EA but about simple custom martingale ...
shared link:
https://fxdreema.com/shared/29RWlV12d
there is not profitable fully automated EA for all time period
there are only lucky people with normal EAs (trend EAs, or side EAs, or martingale systems) who these EAs let run on lucky period of the time 
I can help you best:
based on experience: it is lossable strategy 
you can rename IDs to lower numbers, begin from 10 or so ...
when you add new block, it will have ID greater than current highest ID
why are you working with such strange block numbers? 
maybe your problem is somewhere in blocks arrangement ... for formula blocks try them place one after another
sign in into broker account ... if you already did and still 0.1, change broker
you can avoid this issue with adding if else statement ...
double LotStep = SymbolInfoDouble(symbol, SYMBOL_VOLUME_STEP);
if (LotStep != 0)
{ lowerlots = MathRound(lowerlots/LotStep)*LotStep; }
else { lowerlots = some_default_value; )
0_1527234024828_miro1360_test_1.1.mq4
I am not sure what happened but this should be result
... red is SMA

it all depends on admin, not on me, I am not admin

perfect, thanks ... now I can see it ... it is for 100% bug, admin must repair it 
candle size is not the strength of the pair or currency and you can not use candle size alone
... you must calculate some % from candles, or use indicators as RSI
yes, that is what forex teach you .... 99.9% of fails and 0.1% of small success

and it is not that long, where I helped you with this, with all custom code and arrays for sorting:
https://fxdreema.com/forum/topic/5851/select-the-top-5-variables
... you must only take this concept and use it in your different strategies ...
... buying tools and working with tools are two different things 
... what do you mean by pip value? because I think you dont know exactly what are you asking for ... there is no pip value of candle, but there is candle size in pips ...
... next, each currency have different average movement, some currencies have small movement for all period (EURCHF) and other have huge movement (GBPJPY) ... you can not sort it only based on this size .... you must create another logic for sorting based on some % movements, you can do it with indicators like RSI, stochastic, % change in moving averages, etc...
and when you create it, you must have custom code used in fxdreema for sorting, and some arrays ...

and set Magic number the same, as the other EA has ..
@sherinhamad said in Virtual stops disappear ??:
t know wheat is the problem. if y
I have not access to your EA
.... you can send me shared link ..