Job finished
Specification
let's say I manually entered the market with a "buy market" position with 1 lots and stoploss is =200 points and TakeProfit=400 points. Then I will attach your EA and EA will Cancel the stoploss and EA places a pending "stop sell" order to hedge your position instead of a Stop Loss.
At this point, two scenarios are possible:
Scenario 1: Market moves up (without reaching pending sell stop) and hits our Take Profit. The trade is closed and EA is expired.
Scenario 2: Market moves down and reaches pending sell stop. A trade to the opposite direction is opened with different lot size( I will define the lots of each grid in an EA setting). Again, for this order a pending order is placed hedging the new position. A new Take Profit is determined for all trades. This procedure is repeated with any change in market direction unless the Take Profit is hit and all trades are closed .
1, I will place a trade manually with stoploss so the entry price and stoploss price will be the grid level.
3, Once the pending sell stop order or pending buy stop order is triggered then the grid is activated then EA will place buy stop or sell stop at each grid with take profit and stoploss for each order.
4, Once the grid is activated then the take profit of buy trades will be stoploss for sell trades and vice versa.
6, I will define the value of grid lot sizes ( give me option for 10 grids).
7, I will also define take profit in related to grid size. Let say if the grid size is 10 pips then the take profit will be 20 pips that is 2x. Give me the option to define the value in accordance to grid size.
8, Once the tp on either side is hit my whole basket of trades are closed and EA should close.
9, I would need a friendly dashboard where I could see the lot sizes of each grid etc.