Here is an afl for daily chart-is there something wrong

#1
hi friends

Here is an afl which plots 9month high,6month high,3 months high as lines on daily chart.

BUT SOMETHING IS AMISS as you use bar replay as highs keep shifting.

can somebody comment and fix the mistakes!

HTML:
IIf(H>Ref(HHV(H, 9*20), -1),Plot (9,"9",colorRed),Plot( 0,"0",colorCustom12));
 IIf(H>Ref(HHV(H, 125), -1), Plot (6,"6",colorGreen),Plot( 0,"0",colorBlue));
 IIf(H>Ref(HHV(H, 3*20), -1), Plot (3,"3",colorBlue),Plot( 0,"0",colorBlue));
_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | styleOwnScale | GetPriceStyle() ); 
_SECTION_END();
 
Last edited:

extremist

Well-Known Member
#2
i simply can not understand this code and it's purpouse.
if u don't mind can u share frm where u got this.

at least this makes sence to me.
/*********************/

IIf(H>Ref(HHV(H, 9*20), -1),Plot (Ref(HHV(H, 9*20),-1),"9",colorRed),Null);
IIf(H>Ref(HHV(H, 125), -1), Plot (Ref(HHV(H, 125),-1),"6",colorGreen),Null);
IIf(H>Ref(HHV(H, 3*20), -1), Plot (Ref(HHV(H, 3*20),-1),"3",colorBlue),Null);
_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | GetPriceStyle() );
_SECTION_END();
/**************************/

well in this case what's the need off IIF

only this will do


Plot (Ref(HHV(H, 9*20),-1),"9",colorRed);
Plot (Ref(HHV(H, 125),-1),"6",colorGreen);
Plot (Ref(HHV(H, 3*20),-1),"3",colorBlue);
_SECTION_BEGIN("Price");
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot( C, "Close", ParamColor("Color", colorBlack ), styleNoTitle | GetPriceStyle() );
_SECTION_END();


else it looks nothing to me.
it might be due to lack of knowladge regarding tht code.
tht's why i requested u to share frm where did u got tht code.
 
Last edited:
#3
hi extremist

sorry for the confusion.
actually the code I posted DRAWS horozontal lines for highs.

the code you posted doesnt do that.It way different.
see chart please!


I dont know why.
my point is once you see price react at these highs you can plan trade based on that.

I got it from T3B.afl code post of KELVINHAND.
For trading,you need a frame of reference.
T3B code uses highs and volume spikes it seems for stock picking.
These 9month,6month,3month highs on eod chart act resistance and support.
THE code was metastock based.


I could not get full code as it was not posted.
If you know of it,please share

regards
ford
 
Last edited:

extremist

Well-Known Member
#4
actually i have seen the plot as u shown in the pic.

wht i have noticed is tht those lines r regardless of any price movement.
in bar replay u can notice wht i have seen.

EG.
if price is dropping and if it touches the lower line Zero then as per u; u would buy but if the price moves furthe down tht line will still appear as support line and even at he same point u would like to initiate buy but if same thing happen again and u can see tht this thing will repeat.

the close ploted at it's own scale in the chart.

unless and untill we have the full code we can not say anything in regard.
 

KelvinHand

Well-Known Member
#6
hi extremist

sorry for the confusion.
actually the code I posted DRAWS horozontal lines for highs.

the code you posted doesnt do that.It way different.
see chart please!


I dont know why.
my point is once you see price react at these highs you can plan trade based on that.

I got it from T3B.afl code post of KELVINHAND.
For trading,you need a frame of reference.
T3B code uses highs and volume spikes it seems for stock picking.
These 9month,6month,3month highs on eod chart act resistance and support.
THE code was metastock based.


I could not get full code as it was not posted.
If you know of it,please share

regards
ford
Infomation are posted here.
http://www.traderji.com/advanced-trading-strategies/61501-t3b-trading-system-3.html

Plot in indicator window, no chart window. design wise, not nice.

As for the peakline n troughlise, it is a form of 1-2-3 top and 1-2-3 bottom formation, you can look into AFL of "Tops-Bottoms-2-3's"


Here the comment from http://www.traderji.com/advanced-trading-strategies/61501-t3b-trading-system-4.html Post #33
Dear Friends,
Do not believe such systems,especially systems originated from China,Singapore etc.These are people like Adam khoo & team.They are self made millionnaires by conducting seminar across Asia.They made millions..But not a single students...All the testimonials are fake stories..Please do not put your money..
 
Last edited: