I need an indicator which prints a range into the chart.
A range exist of:
- max X pips (measured from the high to the low)
- min x closed bars
A range is only then plotted to the chart if it consists of 3 closed bars and max. 10 Pips.
What nees to be printed?
- a line exactly at the low of the range
- a line exactly at the high of the range plus current spread
How long is the range valid?
If price touches the line, then just delete tha current range and wait for a new range to be created.
If price stays within the established range, just do nothing.
I need to active / deactive to fill the space between the lines within a color.
The lines / space of the range needs to end above / below the previous bar;
it needs to be extended to the next closed bar as soon as the next bar is closed AND
the criteria of the range is still valid.