please help, Roar, YOU ARE the EXPERT, "WHY MY GRID EA HAS NO LIMIT ORDERS"
-
Hi Roar, Iandorra said you are the expert, may help me out. thanks in advance.
what I want is to get a EA trading in the sideways market.
let us say ,the market sideways range is 400 pips, say eurgbp , middle line is at 0.9000, up grid line's price 0.9200. down grid level is 0.8800.
start from 0.9000, create grid level s every 50 pips . so there would be 4 grid on top of 0.9000, 4 grid below 0.9000.
3, I want open 2 orders at same level, one buy and one sell at same grid level.
4, if the price goes up, the orders would be :
1>@0.9000 one buy and one sell , both with take profit at grid level of 50 pips. stop loss is fixed @ 0.8800 for buy order and 0.9200 for sell order.
2> @ 0.9050 , one buy stop, ST is 0.8800, one sell limit ST 0.9200., both TP 50 PIPS,
3>, @0.9100, one buy stop order, ST 0.8800, one sell limit order ST 0.9200
4 > @ 0.9150 , one buy stop order, ST 0.8800, one sell order ST 0.9200.
5, if the price goes down, the orders would be:1> @8950, one sell stop order, ST 0.9200,TP 50 pips, that is @0.8900.
one buy limit order ST 0.8800. TP 50 pips that is @ 0.90002> @0.8900 one stop sell ST 0.9200 TP 50 pips @0.8850.
one buy limit order ST 0.8800 TP 50pips @0.8950.3> @ 0.8850 , one stop sell ST 0.9200 TP 50 pips @ 0.8800,
one buy limit order ST 0.8800 TP 0.8900.
after price reached the top grid@ 0.9200 or lowest grid @ 0.8800, the whole EA would be terminated. then, I will do analysis again.
that is the idea I want create. but cannot do it.thanks so much, here is the link: https://fxdreema.com/shared/ovKUdGolb
0
l'andorrà 3 days ago
@waynehan Those blocks can only create stop oprders, not limit ones. You will need a whole block structure to open as many limit orders as stop ones. Are you sure this is what you want? You chart will be flooded with trades. -
@waynehan All blocks below both buy and sell pending orders should be disconnected from its current positions and create a new separate block tree. Your logic now says that no trade will be closed unless a new pending order is open right now.
-
@l-andorrà ok, I got your idea, will try it. Thanks very much.