Specification
So basically if you see the pictures attached. Once i use the horizontal line function on mt4. It draws a red line. I basically want an indicator which has the following functions:
Once price crosses the red line it will send me an alert.
There will be an option for push alert and/or email alert.
Also there will be an option for how many times will that alert go through. For eg 5 sec duration 5 times would mean for every 5 seconds the price crosses and stays above and below the cross it will send me an alert. It will send me a total of 5 alerts only because i chose 5 times.
So say for eg current price is 5$. I draw one red line at 4 $ and one red line at 7$. If price crosses above 7$ it will send me an alert. Keeping in the mind the above specifications. Once the price crosses below 4$ it will send me an alert.
Duration parameter would have the options to be measured in seconds or minutes.
No of times would be=1,2,3 till 20
The price will take into account bid price when crossing the line above the current price
The price will take into account ask price when crossing the line below the current price
or i will have the option to take the mid price into account.
There is one other feature i want. HOD(high of day) and LOD(Low of day). Once the indicator is attached to a particular symbol like eurusd or us30 or us500. If it makes high of that day or low of that day. I would need to have an alert for that also please.
Just like the alert options in mt4. I would want these options:
timeout
max iterations
When the alert gets triggered for whichever symbol. I would want the alert to show:
symbol, value, time, HOD/LOD or if not HOD/LOD then crossed red line. HOD/LOD of current day only please.
so if timeout=5 secs
It means once price has crossed red line there will be an alert. If the price remains on the crossed side for more than 5 secs there will be another alert. Iteration=4 would mean it will send 4 of these alerts if the price stays beyond that red line for 5 secs
Eg price at 6$ now
Red line drawn at 9$. With above parameters. Once price has become 9.01$ etc basically above 9$ then an alert will go through. If the price remains above this 9$ for 5 secs another alert will go through. Since iteration above was 4 hence it will keep on repeating this step 3 more times
Also for alerts i would need the option for mt4 push alerts and email alert option
Lastly i want another variable called minimum difference in value for alerts=x
eg if i am using this on the us 30 indice. then if price is 24000 and it becomes 24001 that represents a gain of one value. Minimum change can be configured in this way. That is if i make it a value of 20. It will only send an alert once the price becomes either 24020 or 23080. This is different from the manually drawn lines. This parameter is with regards to the HOD or LOD of the day only.