- Katılım
- 23 Eki 2020
- Mesajlar
- 1,828
rev. 01/06/97 We will define the beginning of the uptrend as: H>Ref(HHV(H,4),-1) andthe beginning of the downtrend as: L<Ref(LLV(L,4),-1) Now you want to plot the lowest low if you are in an uptrend and thehighesthigh when in a downtrend,enter the following formulas and plotthe last one. |
|
Uptrend Signal Peak(1,If(H>Ref(HHV(H,4),-1),Ref(LLV(L,4),-1),0),1) <> Ref(Peak(1,If(H>Ref(HHV(H,4),-1),Ref(LLV(L,4),-1),0),1),-1) |
|
Downtrend Signal Peak(1,If(L<Ref(LLV(L,4),-1),Ref(HHV(H,4),-1),0),1) <> Ref(Peak(1,If(L<Ref(LLV(L,4),-1),Ref(HHV(H,4),-1),0),1),-1) |
|
Uptrend / Downtrend Signals - Final Plot If(BarsSince(Fml("Downtrend Signal")) <BarsSince(Fml("Uptrend Signal")), {then} Ref(HHV(H,4),-1), {else} Ref(LLV(L,4),-1)) |
COMMENTARY: The Uptrend/Downtrend Signals find the point where the mostcurrent trend has started. The Final Plot formula simply finds which trend we are in and thenplots the appropriate formula. The {then} portion is if you are in a downtrend and the {else} portionisplotted in uptrends. | |
| |
Source / From: |