why my simple grid EA has no limit orders
-
Hi all
I am crating a simple grid EA, the conditions as follow:
1, total grid orders less than 20,
2, grid size 25.
3, at every grid level, create two orders at same time, one is buy and the other is sell,
4. I have done the project in the following link, but when I test it in a demo account, I found it create only stop buy, and stop sell orders, there is no limit orders .what is wrong for my project??
thanks in advance for the help.
pls see the link https://fxdreema.com/forum/category/2/Working-with-fxDreema
Wayne
-
@waynehan Your link is wrong.
-
@l-andorrà 。 here its the right link https://fxdreema.com/shared/uwndjchbe
thanks so much.
-
@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.
-
@l-andorrà . 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.9800 for buy order and 0.9200 for sell order. 2> @ 0.9050 , one buy stop, ST is 0.9800, one sell limit ST 0.9200., both TP 50 PIPS, 3>, @0.9100, one buy stop order, ST 0.9800, one sell limit order ST 0.9200 4 > @ 0.9150 , one buy stop order, ST 0.9800, 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.9000 2> @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.
once again, thanks so much, you are a great man, thank you
-
-
@waynehan Ok. Now I see it. You need a launcher loop and then a trade manager loop. I'm afraid that goes beyond my ability rght now. I suggest you could ask roar. He's by far the exopert to look for such a case.
-
@l-andorrà . HOW CAN DIRECTLY ASK FOR HELP FROM ROAR? THANKS AGAIN
-
@waynehan IMHO just open a new thread asking for his help in the title and telling something like 'L'andorrà told me you can help me, please'.
-
@l-andorrà . GOT YOU. BIG THANKS