trendline breakout exploration

#1
sir dt trend line indicator breakout (shoreterm) indictor niche diya hai jiska explorer niman collam se bana dijiye The following columns are calculated:
A - Close : The current closing price.
B - Break Up: The number of bars ago that the closing price broke upwards through a down trendline.
C - Break Dn: The number of bars ago that the closing price broke downwards through an up trendline.
D - Up Vol %: The percent change of the volume from its 50-period moving average on the day the close broke above the down trendline.
E - Dn Vol %: The percent change of the volume from its 50 day moving average on the day the close broke below the up trendline.
indictor hai- pds:=(LastValue(
(Mov(((HHV(C,80)-LLV(C,80))/LLV(C,80))*100,25,E))+
Ref(Mov(((HHV(C,80)-LLV(C,80))/LLV(C,80))*100,25,E),-100)+
Ref(Mov(((HHV(C,80)-LLV(C,80))/LLV(C,80))*100,25,E),-200))/6)/3;
FirstPeak := LastValue( Peak(1,H,pds));
SecondPeak := LastValue( Peak(2,H,pds));
DeltaVertical := FirstPeak - SecondPeak;
DeltaHorizontal :=
LastValue( PeakBars(2,H,pds)) -
LastValue( PeakBars(1,H,pds));
DeltaPerBar := DeltaVertical / DeltaHorizontal;
BarNoSecondPeak := LastValue(
Cum(1) - PeakBars(2,H,pds));
Trend := If(Cum(1) < BarNoSecondPeak,
BarsSince(Cum(1) >= BarNoSecondPeak),
SecondPeak +
(DeltaPerBar * (Cum(1) - BarNoSecondPeak)));
If(FirstPeak <= SecondPeak,
Trend,
BarsSince(FirstPeak <= SecondPeak));
 
#2
Hello,
You can post the code of the following indicators?
DT trndline Dn [longer term] <auto>;
DT trndline Up [longer term] <auto>;
DT trndline Up [shorter term] <auto>.
Thanks!
ZACAPA63
 

gkpc

Well-Known Member
#3
sir dt trend line indicator breakout (shoreterm) indictor niche diya hai jiska explorer niman collam se bana dijiye The following columns are calculated:
A - Close : The current closing price.
B - Break Up: The number of bars ago that the closing price broke upwards through a down trendline.
C - Break Dn: The number of bars ago that the closing price broke downwards through an up trendline.
D - Up Vol %: The percent change of the volume from its 50-period moving average on the day the close broke above the down trendline.
E - Dn Vol %: The percent change of the volume from its 50 day moving average on the day the close broke below the up trendline.
indictor hai- pds:=(LastValue(
(Mov(((HHV(C,80)-LLV(C,80))/LLV(C,80))*100,25,E))+
Ref(Mov(((HHV(C,80)-LLV(C,80))/LLV(C,80))*100,25,E),-100)+
Ref(Mov(((HHV(C,80)-LLV(C,80))/LLV(C,80))*100,25,E),-200))/6)/3;
FirstPeak := LastValue( Peak(1,H,pds));
SecondPeak := LastValue( Peak(2,H,pds));
DeltaVertical := FirstPeak - SecondPeak;
DeltaHorizontal :=
LastValue( PeakBars(2,H,pds)) -
LastValue( PeakBars(1,H,pds));
DeltaPerBar := DeltaVertical / DeltaHorizontal;
BarNoSecondPeak := LastValue(
Cum(1) - PeakBars(2,H,pds));
Trend := If(Cum(1) < BarNoSecondPeak,
BarsSince(Cum(1) >= BarNoSecondPeak),
SecondPeak +
(DeltaPerBar * (Cum(1) - BarNoSecondPeak)));
If(FirstPeak <= SecondPeak,
Trend,
BarsSince(FirstPeak <= SecondPeak));
Could not understand what exactly are you trying to get a solution for. Seems more of a language problem... :D
 

Similar threads