@roar Thanks a lot. I will test it and will let you know..
Posts made by Varuk
-
RE: Problem with multiplication of lots and repeated trades.posted in Questions & Answers
-
Problem with multiplication of lots and repeated trades.posted in Questions & Answers
Hello guys,
I'm new to fxdreema and I'm trying to create an EA.
Let me explain what I'm trying to do, to have a better understanding.
When the candle is over MA20 then buy, else sell.

In both cases, the lots are 0.01, SL is at 200 pips and the TP at 30 pips.
I'm currently working on the buy scenario and if/when I get it right, I'll move to sell.
When a buy trade opens, and the price gets +10 pips from the open price, then I want to modify the SL of the trade from 200 pips to "open price+1 pip". Below you can see my implementation. I hope it's not too wrong..

For the case that the price goes against me and the price goes to -25 pips from open price, I want to open a new buy with SL=200pips and TP=30 pips and lots=0.01x1.2. I want to be able to do the same for 6 more times if the price keeps falling.
Below you can see my implementation. I think it is correct, but I really don't know how to multiply the lots so I can have 0.01x1.2 and I don't know how to do it multiple times.
Please, if any of the experienced users of fxdreema can give me a hint, I would be grateful.