Current price crossing above drawn line to enter a buy
-
Hi,
Anybody any idea what i've been doing wrong, I want to enter a buy order after the price crosses above the drawn line. Can't figure out what i'm doing wrong.
https://fxdreema.com/shared/PpfkBWDobThanks
-
@mathias You are requiring the EA to draw a line exactly on the ask price level! Than you are requiring it to open a trade when the ask line is above...itself? You need to define a fixed line for the price to cross it.
-
@l-andorrà yes indeed, whenever the EA has started it needs to created a horizontal line at 'ASK price' and the second horizontal line is 5 pips below. Whenever the price crosses above the highest line it needs to create a buy position and whenever it crosses below the lowest line it needs to create a sell position.
Something like this but then the correct way...
https://fxdreema.com/shared/Q1yt1pzxd -
The EA is creating buy positions (at the highest line) whenever it crosses above the lowest line what doesn't makes sense to me
-
@mathias But that is happening every single tick because all blocks are on the 'on tick' tab. Every new tick arriving to yor MT4 will redraw the line so the price will never be able to cross it.