horizontal line for buy and sell
-
break out conditio:
bearish or bullish candle size above 200 pips i want to draw horizontal line and buy if above and sell if belowi know how to make it sell below and buy above but i don't know how to make this horizontal line on the current candle and i need to see how it's done so i learn it
some conditions that i need to learn: (what i know) the ea must close the trades if sell exist and price goes above the line close sell and buy and revese if price went back below the line
(what i don't know and i need to learn) i want to set take profit 200 pips but if price hit tp i need to stop trading and delete the line and wait new candle that have 200 pips movment to draw the line again and tradekindly tell me how to do them or give me links that show me how to do them
-
maybe this can help you:
https://fxdreema.com/shared/ZxDeyXP5c
I used section on Trade for detecting trade closed on TP ...

-
"horizontal line on the current candle" - horizontal line is an object that has only one parameter, which is price level. You know, you can move it up and down, but not sideways. Horizontal line is in no way connected with any candle. If you have trend line, then we can talk about candles.
I don't fully understand the question, but I can suggest those Virtual stops. Basically you can choose to have horizontal lines instead of SL and TP and the EA will close the trade when its SL line or TP line is crossed. This is only for MQL4 at this time. I should make this for MQL5 one day and also similar thing for pending orders

In the example that miro1360 shows, block 1 can be connected after the orange output of block 10. It will probably work the same, but I personally prefer to use the orange outputs instead of the yellow ones, while miro1360 prefer yellows

-
@fxDreema please i want to have this exactly designed but only the first 3 blocks seem to be working.
https://fxdreema.com/shared/RX1yoYPHd
Can you suggest on this please? Also can it be done on MT5? Thanks -
@joeDIAMONDS This is what you need to do:
