Nifty technicals

findvikas

Well-Known Member
#1
Its been almost 2 months now since I am working on this System to predict Market trend and a possible reversal point. After lots of data crunching of past 8 years and trying various things I have came up with this System which is very much capable of tell you just 2 simple things... the trend and a reversal point. You might ask where is target? No it does not give you target and allow you to ride the trend until you hit a SL... it might sound little crazy but you have to ride the trend until you hit the SL. The beauty of this system is that it keep on adjusting the Stop Loss level accordingly to match the trend so that you get hit with minimum stop loss and take away the entire profit.

Don't believe me ? Here is a snap shot of this system since 1st Jan 09 and it has given me 7000 points till date. Red line here is the Stop Loss line... go short below it and long above it.



Its like any other trend following system can last from 1 day to 1 year keeping you alive in the trend.

Few stats after a run of this system for this year.


Max Loss: 153.05 points
Max Gain: 597.2 points
Min Holding Period: 1 day
Max Holding Period: 12 days

Winners: 39 , Losers: 11
Avg Win Size: 195 , Avg. Loser Size: 49.5

Total Point Profit: 7062.15



Few Rules:
  1. All levels are based on NIFTY SPOT and NOT FUTURES but can be used to trade Futures & Options by keeping SL on SPOT

  2. DO NOT TRADE THIS SYSTEM, THIS IS FOR PURE EDUCATIONAL PURPOSE

  3. Stop Losses are HARD TRIGGERS, and one MUST take opposite position once SL is hit. For Eg. You are long @ 5110 and SL is 5103, then you MUST go double short at 5103 which will close your long and take you in short position. This way we always stay in trend and always keep the position open.

  4. Since we are trading daily charts, the SL will be based on Closing price for the day. If it close below the SL level then we have to change our position the very next day.
    Even better solution, instead of waiting for next day opening.. one can also see the last 30 minutes of the session and calculate the average (high+low/2) of the last 25mins (3:00-3:25pm).. if the value is hitting the SL then take opposite position

  5. PLEASE DO NOT BLAME ME IF YOU TRADE THIS AND RUN IN LOSSES AND DO NOT ASK ME FOR THE AFL OF THIS SYSTEM AS I INTEND NOT TO SHARE AT LEAST AT THIS LEVEL AS ITS VERY MUCH UNDER DEVELOPMENT.
 
Last edited:

findvikas

Well-Known Member
#2
Here is the AFL for this system, It supports Scan as well as Exploration.

Code:
//Developer: Vikas Verma(www.vikasverma.com)
//Name: Trading The Bars
//Date: 12/14/2009
/////////////////////////////////////////////////////////////////////////

_SECTION_BEGIN("Trading Bars");


//Print some basic stuff...

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 | ParamStyle("Style") | GetPriceStyle() ); 



// Take some input parameters
lastBars = Param("Last n Bars",3,1,100,1,0);
showShort = ParamToggle("Short/Cover Arrows","false,true",False);


//Decide Buy/Sell signals
Buy =     Close > Ref( Close , -lastBars);
Sell =     Close < Ref( Close , -lastBars);
Short =     Close < Ref( Close , -lastBars);
Cover =     Close > Ref( Close , -lastBars);


Buy = ExRem(Buy,Sell);
Sell = ExRem(Sell,Buy);

Cover = ExRem(Cover,Short);
Short = ExRem(Short,Cover);


// -- OK, let's plot the signals using arrows

PlotShapes(IIf(Buy,shapeUpArrow,shapeNone), colorGreen, 0, Open, Offset=-15);
PlotShapes(IIf(Sell,shapeDownArrow,shapeNone),colorRed,0,Open,Offset=-15);
Plot(Ref(Close,-lastBars),"Stop Loss",colorRed);

WriteIf(Buy, "Buy","Sell");



if(showShort)
{
    PlotShapes(IIf(Cover,shapeHollowUpArrow,shapeNone), colorGreen, 0,
Open, Offset=-30);
    PlotShapes(IIf(Short,shapeHollowDownArrow,shapeNone),colorRed,0,Open,Offset=-30);
}



// -- Plotting of symbols done here


// EXPLORATION CODE STARTS HERE
backColor = IIf( Buy, colorGreen,colorRed);

Filter = Buy OR Sell;
SetOption("NoDefaultColumns", True );
AddTextColumn(Name(), "Scrip",1.2,colorWhite,backColor ,80);
AddColumn(DateTime(), "Date" ,formatDateTime,colorWhite,backColor ,120);
AddColumn(Close,"Close",1.2,colorWhite,backColor ,80);
AddColumn(Ref(Close,-lastBars),"SL / Reversal",1.2,colorWhite,backColor ,80);
AddColumn(IIf( Buy, 66, 83 ), "Signal", formatChar,colorWhite,backColor ,50);

// EXPLORATION CODE ENDS HERE
_SECTION_END();



_SECTION_BEGIN("Background Color");
SetChartBkColor(ParamColor("Outer panel color ",colorWhite)); // color of outer border
SetChartBkGradientFill( ParamColor("Inner panel color upper half",colorWhite),
ParamColor("Inner panel color lower half",colorWhite)//color of inner panel
,ParamColor("behind Text Color", colorYellow));

_SECTION_END();
 
Last edited:

scorpio77

Well-Known Member
#5
Hi!

Posting or not posting the AFL or method / strategy for trade is one's own choice!

It is clearly mentioned that this is under testing and is for info only

Pls refer post 3 where the levels for tomorrow have been posted

Can one not use this as SL for a short trade?

There is no need for sharp words or sarcasm when one is trying to share thoughts

After all, what are forums for???

Anyway, one is free to follow a thread or ignore.

vikas, if you dont want to post your afl, what do you expect us to do here? praise you for your achievement and say wow:confused:
kindly search for a member named " loveguru ",he used to post his charts like this here few months back.
 

abhiwhy

Well-Known Member
#6
vikas, if you dont want to post your afl, what do you expect us to do here? praise you for your achievement and say wow:confused:
kindly search for a member named " loveguru ",he used to post his charts like this here few months back.
i think you should not use such a kind of language here , this is a new thread one need enough time to do a complete work , if you can't praise or encourage anyone ,please don't discourage by posting in such a manner .:annoyed::annoyed::down:
 

abhiwhy

Well-Known Member
#8
Its been almost 2 months now since I am working on this System to predict Market trend and a possible reversal point. After lots of data crunching of past 8 years and trying various things I have came up with this System which is very much capable of tell you just 2 simple things... the trend and a reversal point. You might ask where is target? No it does not give you target and allow you to ride the trend until you hit a SL... it might sound little crazy but you have to ride the trend until you hit the SL. The beauty of this system is that it keep on adjusting the Stop Loss level accordingly to match the trend so that you get hit with minimum stop loss and take away the entire profit.

Don't believe me ? Here is a snap shot of this system since 1st Jan 09 and it has given me 7000 points till date. Red line here is the Stop Loss line... go short below it and long above it.



Its like any other trend following system can last from 1 day to 1 year keeping you alive in the trend.

Few stats after a run of this system for this year.


Max Loss: 153.05 points
Max Gain: 597.2 points
Min Holding Period: 1 day
Max Holding Period: 12 days

Winners: 39 , Losers: 11
Avg Win Size: 195 , Avg. Loser Size: 49.5

Total Point Profit: 7062.15



Few Rules:
  1. All levels are based on NIFTY SPOT and NOT FUTURES but can be used to trade Futures & Options by keeping SL on SPOT

  2. DO NOT TRADE THIS SYSTEM, THIS IS FOR PURE EDUCATIONAL PURPOSE

  3. Stop Losses are HARD TRIGGERS, and one MUST take opposite position once SL is hit. For Eg. You are long @ 5110 and SL is 5103, then you MUST go double short at 5103 which will close your long and take you in short position. This way we always stay in trend and always keep the position open.

  4. PLEASE DO NOT BLAME ME IF YOU TRADE THIS AND RUN IN LOSSES AND DO NOT ASK ME FOR THE AFL OF THIS SYSTEM AS I INTEND NOT TO SHARE AT LEAST AT THIS LEVEL AS ITS VERY MUCH UNDER DEVELOPMENT.
hi
findvikas
i have one small doubt , u r using line chart in the figure u mentioned above and your trailing sl seems quite close to price chart , but it seems quite possible in bar or candle chart(intraday high and lo ) that it would touch sl several times and come back to previous position , so how could one be able to fix a perticular stoploss and what arrangement for such situations .
tell , how u manage to trade or test in such situation .
 

findvikas

Well-Known Member
#9
Good point.. I guess I forgot to mention. I am considering Closing Price when trading daily chart. If it close below/above SL level then we switch position on very next day.

Edit: I have edited the rules to include it and make it clear.
 

aditya14

Well-Known Member
#10
vikas, if you dont want to post your afl, what do you expect us to do here? praise you for your achievement and say wow:confused:
kindly search for a member named " loveguru ",he used to post his charts like this here few months back.
Loveguru is a funny id.You never know when loveguru returns....
 

Similar threads