LOT SIZE MULTIPLY ON OPPOSITE TRADES
-
Dear All,
- Once a first candle is closed, if it breaks high then it takes buy call (eg: lot size 1) with SL as first candle low. Once the buy call hits SL, it has to take sell call but the lot size has to be 2 with SL as first candle high. If sell call hits the SL, then it should take the buy call with lot size as 4 with SL as first candle low. So i want the lot size to be multiplied nevertheless of buy or sell.
I had used "For each position" tab with "Either buy or sell" and "Not more than n trade" as 1. Next used "add volume" tab with 200%. But it is taking plenty of calls.
- I want to book profit as first candle's High - Low value. If the difference is 15, the buy call to be buy price + 15 pips and sell call to be sell price - 15 pips.
I don't know how to use the variable for target fixing. Please find attached EA and kindly advise.
-
@karthiey Is the lot size supposed to be doubled no matter what? Then you can use this option:

On the other issue, you will need to store the value of the previous closed SL trade. But I'm not sure if that distance will be exactly the same all the time. Will open price depend on the last candle size?