Advanced support resistence and trendlines afl

#51
Hi Sir
i m really fan of u r code but facing same problem
Also i saw the arrows appear after 2-3 bars , can we take the Buy/Sell decisions after the arrow signals appear?

can u please help me regarding it
and please give me u r email id so i can mail u
please reply me :thumb:





My Friend, I think you missed two trades as per your system.

One short signal was given at the opening bar of today.
And then a buy signal was given at 12:55 bar today.

It seems you are not taking all signals generated. Is it correct?
 

balaj78

Active Member
#52
^^^^^

hi

buy/sell arrows appears after some reversal ie it calculates frm futs data not exact recommendation ........... but if i got buy signal and the price crossing the greentrend line i may go long and viceversa

but this method gives average gud profits .......... we can make significant by selecting triangle bo etc ............

as i said hav to create gud rules ..........

we can alter the percentage frm parameter now its at 0.325 % as default
i hav created this mainly for intraday 5min time frame .......... u can go high time frame and increase the percentage frm 0.325 to 1%

hi ,
This 0.325 % is the stoploss for this system or profit booking %.
 

vijayanscbe

Well-Known Member
#53
^^^^^^^^^
dg123 & balaji

i hav created this afl for just to identify the break outs still a complete system is not created .......... u can backtest n can create ur own rules ...........

if u need datas ( i hav last one yr spot nifty datas ) i will upload in txt format ......

u can analyse and create ur own profitabl rules and try to analyse different % or no of candles try to find which one satisfies :thumb:
 

vijayanscbe

Well-Known Member
#54
^^^^^
Ume_r

hi friend this world n market is very largeeeeee....ur not going to lose any thing

if share ur techs thats all i can say :thumb:

share ur afl so that any one can find any possibilty to improve the method :cool:
 

balaj78

Active Member
#55
^^^^^^^^^
dg123 & balaji

i hav created this afl for just to identify the break outs still a complete system is not created .......... u can backtest n can create ur own rules ...........

if u need datas ( i hav last one yr spot nifty datas ) i will upload in txt format ......

u can analyse and create ur own profitabl rules and try to analyse different % or no of candles try to find which one satisfies :thumb:
ii

Hi vijay,
Thanks for ur afl , can u help me how to use this in nifty ,and can u tell me what rules you follow for nifty ,as this will be far more usefull for us ,thank u once again for this afl.
regards
bala
 
#57
#60
///////////////////////////////////////////////////////////////////////////////////////////
SetChartOptions(0,chartShowArrows|chartShowDates);
_N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} ,{{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 ) ) ));
Plot(C, "", IIf(O>=C, colorOrange, colorGreen),styleCandle);

SetChartBkGradientFill( ParamColor("Inner panel upper",colorBlack),ParamColor("Inner panel lower",colorBlack));
_N(Title = EncodeColor(colorWhite)+StrFormat(" {{NAME}} - {{INTERVAL}} {{DATE}} Open:%g, Close:%g ,{{VALUES}}",O,C ));

/////////////////////////////////////////////////////////////////////////////////////////////

Plot(EMA(C,13),"",colorYellow);
/////////////////////////////////////////////////////////////

per1=Param ("per1", 0.325,0.1,50,0.10);

per=per1;
x = Cum(1);
s1=L;
s11=H;
pS = TroughBars( s1, per, 1 ) == 0;
endt= SelectedValue(ValueWhen( pS, x, 1 ));
startt=SelectedValue(ValueWhen( pS, x, 2 ));
dtS =endt-startt;
endS = SelectedValue(ValueWhen( pS, s1, 1 ) );
startS = SelectedValue( ValueWhen( pS, s1, 1 ));
aS = (endS-startS)/dtS;
bS = endS;
trendlineS = aS * ( x -endt ) + bS;
g3= IIf(x>startt-10,trendlineS,-1e10);
Plot(g3,"",colorRed,styleDashed);

pR = PeakBars( s11, per, 1 ) == 0;
endt1= SelectedValue(ValueWhen( pR, x, 1 ));
startt1=SelectedValue(ValueWhen( pR, x, 2 ));
dtR =endt1-startt1;
endR = SelectedValue(ValueWhen( pR, s11, 1 ) );
startR = SelectedValue( ValueWhen( pR, s11, 1 ));
aR = (endR-startR)/dtR;
bR = endR;
trendlineR = aR * ( x -endt1 ) + bR;
g4= IIf(x>startT1-10,trendlineR,-1e10);
Plot(g4,"",colorGreen,styleDashed);
//////////////////////////////////////////////////////////////////////////////////////////////////
perc=per1;
x=BarIndex();xx=SelectedValue(x);
t1=SelectedValue(ValueWhen(PeakBars(C,perc)==0,x));
H1=SelectedValue(ValueWhen(PeakBars(C,perc)==0,C));
t11=SelectedValue(ValueWhen(TroughBars(C,perc)==0,x));
H11=SelectedValue(ValueWhen(TroughBars(C,perc)==0,C));
g=t1>t11;
shape=IIf(g,shapeDownArrow*(x==t1),shapeUpArrow*(x==t11));
Color=IIf(g,colorRed,colorGreen);
PlotShapes(shape,color);
/////////////////////////////////////////////////////////////////////////////////////////////////

per=per1;

x = Cum(1);
s1=C;
s11=C;
pS = TroughBars( s1, per, 1 ) == 0;
endt= SelectedValue(ValueWhen( pS, x, 1 ));
startt=SelectedValue(ValueWhen( pS, x, 2 ));
dtS =endt-startt;
endS = SelectedValue(ValueWhen( pS, s1, 1 ) );
startS = SelectedValue( ValueWhen( pS, s1, 2 ));
aS = (endS-startS)/dtS;
bS = endS;
trendlineS = aS * ( x -endt ) + bS;
g3= IIf(x>startt-10,trendlineS,-1e10);
Plot(g3,"",colorRed,styleThick);

pR = PeakBars( s11, per, 1 ) == 0;
endt1= SelectedValue(ValueWhen( pR, x, 1 ));
startt1=SelectedValue(ValueWhen( pR, x, 2 ));
dtR =endt1-startt1;
endR = SelectedValue(ValueWhen( pR, s11, 1 ) );
startR = SelectedValue( ValueWhen( pR, s11, 2 ));
aR = (endR-startR)/dtR;
bR = endR;
trendlineR = aR * ( x -endt1 ) + bR;
g4= IIf(x>startT1-10,trendlineR,-1e10);
Plot(g4,"",colorGreen,styleThick);
//////////////////////////////////////////////////////////////////////////////
thanks.......dear!
 

Similar threads