I want to create an Ea that allows me to draw a line on the chart but when I do it instantly makes that line a MT4 alert or a phone notification.
I also want to make sure it only sends maximum 1 notification, i dont want it to spam.
I want to create an Ea that allows me to draw a line on the chart but when I do it instantly makes that line a MT4 alert or a phone notification.
I also want to make sure it only sends maximum 1 notification, i dont want it to spam.
@gtoat777 Lines and notifications are created from different blocks, to limit the number and occurrences put some sort of a do/don't condition above.
@jstap Thanks for the help, im not sure how to set a condition for price crossing above or below my drawn lines, any advice?
@gtoat777 This depends on how the line is drawn, if it's an object use object on chart but if you have the value (easier option) use this.
@jstap https://fxdreema.com/shared/i1zIIkY1c
This is what ive done as a brief rough template, to be honest though this is really more of an indicator but im having to make via FXDreema.
I just want it to be as simple as i click on an area and the line is drawn then if price crosses above i get a notification and vice versa if price crosses below a line then i get a notification
@gtoat777 Candle 0 doesn't really have a close, as it closes it becomes 1 and a new 0 forms. I have never used mouse click but should work, what are the condition blocks doing? Either remove of fill with required option, maybe use market properties to draw line @ current price?
@jstap I don’t want it to draw current price, this can be used for drawing lines above the high and low of a set of candles etc and alert if price touches the lines
@gtoat777 Use candle 1.