n:Help for coding

 

hello guys, i've just come up with an idea of trading strategy...

well, my strategy is to double the lot size if the last trade was loss (s/l was hit), and if there was a profit trade (t/p was hit) then the lot should normalize to initial lot size. The EA should open the trade randomly with custom presets s/l & t/p. i planned to use it on 1H chart of EURUSD, and also have money management as well..

can u guys help me with the coding ?

thanks be4,

regards

 
xiang7th:

hello guys, i've just come up with an idea of trading strategy...

well, my strategy is to double the lot size if the last trade was loss (s/l was hit),

Sorry to disappoint but it is called a Martingale system. It's well known.

http://en.wikipedia.org/wiki/Martingale_%28betting_system%29

 

i know, but i want to closed the order before i multiply the lots, so it won't drain the equity so much...

 
you can start here -> https://www.mql5.com/en/code/9987
Reason: