[Indicator] Display the high and low for the specified period on an arbitrary timeframe chart, with email and alert notifications when crossing the line.
To plan EA ideas, I created an indicator that draws the highest and lowest values for a specified period on a chart of any timeframe (such as 1-hour or 5-minute).
Since I went to the trouble, I decided to sell it.
This is “Indicator that draws the highest and lowest values for a specified period on any timeframe.”
I hope you find it useful.
When the trend is not clearly defined, it is easy for the price not to surpass the high or low, but once it does, it can move a lot, which happens frequently.
I would like you to use it to know those timing points.
Also, since monitoring all the time can be tough, I included a feature to notify via email or alerts when the price crosses a line. I think this can contribute to reducing effort.
1. Display Highs and Lows
It will be displayed like the following.Example: On a 15-minute chart, displayed with a 1-hour timeframe over 20 days, shifted by 2 days
Example: On a 1-hour chart, displayed with a daily timeframe over 10 days, shifted by 2 days
Example: On a 15-minute chart, displayed with a 15-minute timeframe over 50 days, shifted by 5 days
2. Notify on Line Break
It will notify as shown below.■ Image of notification email
An email with content such as the following will be sent.
Subject: Signal Occurred
Body:
Time=2020.12.28 10:19, Currency pair=GBPJPY, Open value=140.252, Low Line=140.261
A signal has occurred.
■ Alert display example
Notifications will be displayed as follows.
3. If all you need is the notification function
For those who just want to draw a line themselves and receive a notification when crossing that line, this can be used.“Thank you for waiting ('ω') - HLineBreak”
As shown below, when the drawn horizontal line breaks (the line set as the “high line” is broken up and a bar closes, or the “low line” is broken down and a bar closes), a notification is sent.
4. If you want it to trade automatically
If you want to automate trading, I have created EAs using this line break concept, so please consider these:HL Break + M15”HL Break Plus”× ![]()