Drawing a Line to be use as condition to trigger either a buy/sell
-
Hello,
I´m creating a EA with some conditions and one of them is drawing a couple of horizontal lines as support and resistance. Those lines will be used as point that when the new candle closes above or below a buy or sell order will be triggered. So far i´ve been able to draw the horizontal lines but there´s no way the EA buy or sell. For drawing i used the DRA LINE block and the condition for buying or selling i used the option OBJECT ON THE CHART. Any advice? -
@malospelos Are those lines created at any candle's high/low prices?
-
@l-andorrà
Yes Sir, Those lines are created at the hightest and the lowest prices of an number of choosable candles selected in the option of the block DRAW LINE. -
@malospelos In that case you don't need to draw any line at all. You just need to take those values into variables and then compare the price level to them.