Watch how to order a trading robot
I want an Expert advisor that will both do martingale and hedging in the range of 4pips. When the expert advisor opens say sell order with a lot size of 0.01 with a take profit of 4 pips, it automatically at the same time pends a buy stop order with a lot size of 0.03 with a take profit of 4pips from the price of the open position. If the take profit of the sell is hit, the buy stop pend order is closed automatically. But if the take profit of the sell is not hit and the buy pended order is activated, then another pend sell stop order is placed with a lot size of 0.05 with a take profit of 4pips from this sell stop order price. If the activated buy order hits take profit, then the pended sell stop order is deleted or closed automatically. If this buy order did not hit take profit, and the sell stop order is activated, then a new buy stop order is activated with a lot size of 0.1 (and so on and so forth ).
The signal for starting this strategy is break of INSIDE BAR high or low.
Note: When the EA has started a series, it should not start a new series until the former ones are closed automatically (after hitting profit) or closed manually.