stop orders above/below last x candles
-
Hi, what is the smartest way of setting buy or sell stop orders at latest wing points.
For example, set buy stop order at the high of the last 10 candles and a sell stop order at the low of last 10 candles.
Cheers
-
@piptheripper You can do this:

-
cool, thanks:)
-
Something seems to not work properly. I am trying to place a sell stop below last 10 candles and a buy stop above last 10 candles. However, when i place the ea on a chart it opens the pending orders at seemingly random places. Any idea why this is happening?


-
try this CANDLE ID

-
@piptheripper You should remove the price offset distance as I suggested in my post :):

-
THANK YOU!
-
New question. How can i specify that im only interested in pending stop orders? Dont find a way to do this, and it results in the ea also opening pending limit orders..
-
@piptheripper Theer is no specific option to do that. Both blocks identify where the pending order will be programmed according to the current price's position. Depending if it is above/below current price a limit or a stop vill be automatically programmed. You need to add as many conditions required for the block to be programming orders in the 'correct' side of the price to get a stop only.
-
I'andorra,
Thanks for your reply, can you please provide condition sample to avoid limit orders. for both buy and sell orders.
Thanks.
Bax
-
@baxishparmar You will need a condition block specifying that. However, that will depend on your current conditions. There is not automatic way to stop limit orders. Your strategy should be programmed in a way that only stop orders were possible.
-
Can you provide some condition block inspiration, could'nt find proper option.
-
@baxishparmar As I said, that depends on your strategy. When is the EA supposed to program a stop order?
-
@l-andorrà I tried this, it works for me now.
Thanks..

-
@baxishparmar Good for you!
