Positional Buy Nifty already in gain of 250+ points, method seems to be next to Holy Grail please help to code trend reversal
hi
I came across very good thread SH Swing trading system
Its very big thread 100+ pages, I am slow reader still at page 10, SH has given summary
at https://docs.google.com/file/d/0BwQT...QQQ/edit?pli=1
I was trying this method on Nifty future, I was surprised to see the chart,
I am trying to make afl for the same, but dont know how to write condition of last swing high/low broken for trend reversal and pullback to 15 ema.
Please help me to write trend reversal code and pullback code
Thanks
I came across very good thread SH Swing trading system
Its very big thread 100+ pages, I am slow reader still at page 10, SH has given summary
at https://docs.google.com/file/d/0BwQT...QQQ/edit?pli=1
I was trying this method on Nifty future, I was surprised to see the chart,
I am trying to make afl for the same, but dont know how to write condition of last swing high/low broken for trend reversal and pullback to 15 ema.
Code:
_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", colorDefault ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() );
_SECTION_END();
_SECTION_BEGIN("Percent Bands");
P = ParamField("Price field",-1);
Periods = Param("Periods", 17, 2, 300, 1 );
Width = Param("Width%", 1.5, 0, 10, 0.05 );
Color = ParamColor("Color", colorCycle );
Style = ParamStyle("Style", styleLine | styleNoLabel );
CenterLine = MA( P, Periods );
Plot( (1 + Width * 0.01) * CenterLine, "%EnvTop" + _PARAM_VALUES(), Color, Style );
Plot( (1 - Width * 0.01) * CenterLine, "%EnvBot" + _PARAM_VALUES(), Color, Style );
_SECTION_END();
_SECTION_BEGIN("EMA");
P = ParamField("Price field",-1);
Periods = Param("Periods", 15, 2, 300, 1, 10 );
Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();
_SECTION_BEGIN("ZIG - Zig");
P = ParamField( "Price field" );
change = Param("% change",0.3,0.1,25,0.1);
Plot( Zig(P, change), _DEFAULT_NAME(), ParamColor( "Color", colorCycle ), ParamStyle("Style") );
_SECTION_END();
Thanks