Auftrag beendet
Spezifikation
Hello,
I have 1 request of making 1 new indicator by using 1 pre-made indicator to work properly as I described here.
Firstly, take a look at below image, please.
Take a look at yellow colored vertical line, please.
Above image is for Trend Down.
For more details of conditions and displays of Trend Up / Down and Trend None, take a look at contents on p.2, please.
Trend Down
1. v2 (Support) of OIH_SupportResistance_v1.0 on the 3rd previous candle == v2 (Support) of
OIH_SupportResistance_v1.0 on the 2nd previous candle
&&
2. v1 (Resistance) of OIH_SupportResistance_v1.0 on the 3rd previous candle > v1 (Resistance) of
OIH_SupportResistance_v1.0 on the 2nd previous candle
&&
3. Price_low > v2 (Support) of OIH_SupportResistance_v1.0 on the 2nd previous candle
&&
4. Price_low > v2 (Support) of OIH_SupportResistance_v1.0 on the 1st previous candle
Above image is for Trend Down End.
After Trend Down, new Support happened on the 1st previous candle.
Trend Up
1. v1 (Resistance) of OIH_SupportResistance_v1.0 on the 3rd previous candle == v1 (Resistance) of
OIH_SupportResistance_v1.0 on the 2nd previous candle
&&
2. v2 (Support) of OIH_SupportResistance_v1.0 on the 3rd previous candle < v2 (Support) of
OIH_SupportResistance_v1.0 on the 2nd previous candle
&&
3. Price_high < v1 (Resistance) of OIH_SupportResistance_v1.0 on the 2nd previous candle
&&
4. Price_high < v1 (Resistance) of OIH_SupportResistance_v1.0 on the 1st previous candle
If “Trend Up” happened on the 1st previous candle, then it will show DeepSkyBlue colored bar sized as 1.0 at sub_window, and also it will show “v1 == 1.0” in data window on current candle.
And both DeepSkyBlue colored bar and “v1 == 1.0” will be displayed continuously on current candle till the conditions of “Trend None” satisfied on the 1st previous candle - ISM
Trend Down
1. v2 (Support) of OIH_SupportResistance_v1.0 on the 3rd previous candle == v2 (Support) of
OIH_SupportResistance_v1.0 on the 2nd previous candle
&&
2. v1 (Resistance) of OIH_SupportResistance_v1.0 on the 3rd previous candle > v1 (Resistance) of
OIH_SupportResistance_v1.0 on the 2nd previous candle
&&
3. Price_low > v2 (Support) of OIH_SupportResistance_v1.0 on the 2nd previous candle
&&
4. Price_low > v2 (Support) of OIH_SupportResistance_v1.0 on the 1st previous candle
If “Trend Down” happened on the 1st previous candle, then it will show DeepPink colored bar sized as 1.0 at sub_window, and also it will show “v2 == -1.0” in data window on current candle.
And both DeepPink colored bar and “v2 == -1.0” will be displayed continuously on current candle till the conditions of “Trend None” satisfied on the 1st previous candle - ISM
Trend None ? 2 cases of Trend None for Trend Up / Down
Case 1 ? Trend None after Trend Up
1. v1 (Trend Up) == 1.0 on the 1st previous candle
&&
2. v1 (Resistance) of OIH_SupportResistance_v1.0 on the 2nd previous candle != v1 (Resistance) of
OIH_SupportResistance_v1.0 on the 1st previous candle (means that new Resistance happened on the 1st previous candle)
If “Trend None” happened after “Trend Up” on the 1st previous candle, then it will show DimGray colored bar sized as 1.0 at sub_window, and also it will show “v3 == 0.0” in data window on current candle.
And both DimGray colored bar and “v3 == 0.0” will be displayed continuously on current candle till the conditions of “Trend Up” or “Trend Down” satisfied on the 1st previous candle - ISM
Case 2 ? Trend None after Trend Down
1. v2 (Trend Down) == -1.0 on the 1st previous candle
&&
2. v2 (Support) of OIH_SupportResistance_v1.0 on the 2nd previous candle != v2 (Support) of
OIH_SupportResistance_v1.0 on the 1st previous candle (means that new Support happened on the 1st previous candle)
If “Trend None” happened after “Trend Down” on the 1st previous candle, then it will show DimGray colored bar sized as 1.0 at sub_window, and also it will show “v3 == 0.0” in data window on current candle.
And both DimGray colored bar and “v3 == 0.0” will be displayed continuously on current candle till the conditions of “Trend Up” or “Trend Down” satisfied on the 1st previous candle - ISM
Finally, there will be 3 buffers in data window as followings below.
v1 Trend UP == 1.0
v2 Trend Down == -1.0
v3 Trend None == 0.0
For more details, take a look at my attached document, please.
Thanks in advance,
David