miro1360 help please
-
Can someone help me to add this martingale strategy?
the principle is simple: - When you lose the next trade will be the same size - When you have a gain after one or more losses the following trade will size the previous accumulated losses Suppose we start to lose one lot (-1), we still trade 1 lot we still lost (-2), then we win the next position in one lot (-1), now we're going to add the equivalent of what we lost to (= 2 lots) if we win we are in +1
For example, letβs say that we have a sequence of trades like this,- Loss 1 lot, loss 1 lot , loss 1 lot , loss 1 lot , win 1 lot, now we are in -3 lots; we enter with 4 lots if it wins we are in +1 if it loses we enter again with 4 lots until we get a wining trade then the following trade will size the previous accumulated losses +1 unite
-
with standard blocks this need a lot of blocks and loops which check closed trades and count them and based on counting results edit lots for new trade ... this is not easy to do but it is possible to do
... but it takes hours of work to complete it correctly ... ....
another way is create custom code (or new block in studio) but this need programming skill and also take a lot of time and testing (longer as using standard blocks, but result is nicer) ...question is, have you tried this strategy with tester manually? because if exist situation which leads to big volume accumulated on a lot of lossable trades in row, there is big chance that result fails

-
thank you for answering .
firstfull sorry for my bad english
yes I used this strategy manually and it works as long as your wining trades are 50% of 20 consecutive trades and risk to reward ratio 1/1. I am talking about scalping trades 30pip sl 30 pips tp . you just need 2 consecutive trades to close the sequence and start again with minlot . ah I use this strategy on range bars . don't tell me that you can't find 2 consecutive range bars -
ok, just this example can help you ... edit it for your purposes

as I said, using blocks it can be little complicated but can be done ... test it 10000000x on demo because it is little dangerous
...https://fxdreema.com/shared/GR23PVXSb
note, more sections are used (on Trade for lots calculation)

-
thanks sir, I appreciate your help