Traderji.com - Discussion forum for Stocks Commodities & Forex

Nifty Futures Trading

Discuss Nifty Futures Trading at the Equities within the Traderji.com - Discussion forum for Stocks Commodities & Forex; Originally Posted by lvgandhi Kindly excuse me for my ignorance. I saw am afl for ...


Go Back   Traderji.com - Discussion forum for Stocks Commodities & Forex > THE MARKETS > Equities

Notices

Equities Discuss & analyse stock market news, views, trends and your favourite stocks here.


Advertise Here

Reply
 
Thread Tools
Sponsored Links
  #4671  
Old 10th May 2008, 11:00 PM
SGM SGM is offline
Member
 
Join Date: Aug 2005
Location: PUNE
Posts: 466
Blog Entries: 14
Appreciation: 34
SGM is on a distinguished road
Talking Re: Time to Stick my Neck Out ,Nifty 7300

Quote:
Originally Posted by lvgandhi View Post
Kindly excuse me for my ignorance. I saw am afl for Kolkata meet indicator giving a single line. Is there any afl for this band. Any reference please? and any rules to follow with the band please?
Quote:
Originally Posted by nagendra_gb View Post
pls pls share us the AFL for this .

Thanks,
Nagendra
I think the afl code was already posted in the thread for kol indicator

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", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 
_SECTION_END();

_SECTION_BEGIN("Kolkata Meet - Bands");
//..........................................................................

a = Param("Angle Degrees",30,15,90,15);
n = Param("Slope_Bars",5,10,50,1);

a    = (22 / 7) * (a / 180);

Num = NumL = NumH = 0;
Den = 0;

for (i = 1;i < n+1;i++)
{
	Num  = Num  + sin(i * a) * Ref(C,-i-1);
	NumL = NumL + sin(i * a) * Ref(L,-i-1);
	NumH = NumH + sin(i * a) * Ref(H,-i-1);
	Den = Den + sin(i * a);
}

j  = Num/Den;
jL = NumL/Den;
jH = NumH/Den;

//Plot(j, "Slope", IIf(j > Ref(j,-1), colorBlueGrey,colorLime), styleThick | styleDashed);
Plot(jL, "LB", colorLime,styleThick | styleDashed);
Plot(jH, "UB", colorBlueGrey,styleThick | styleDashed);

_SECTION_END();

_SECTION_BEGIN("Signal 04");
Buy  = C > jH;
Sell = C < jL;

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

Short = Sell;
Cover = Buy;

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


_SECTION_BEGIN("Plot Arrows");
//Position size fixed 100 units
SetPositionSize(100,4);
SetTradeDelays(1,1,1,1);


PlotShapes(shapeUpArrow * Buy, colorBlue,0, L,-20);
PlotShapes(shapeDownArrow * Short, colorRed,0, H, -20);
_SECTION_END();
Just hope the moderators don't ban me for posting code in this thread

My testing showed works better with higher time frames (hourly and above) found it tough to use with smaller TFs like 2/3/5/ mins..., anyway Goutam is already successfully using it on smaller TFs, so choose what suits you.

Please backtest, forward test, paper trade or any which way you can, just be sure before using in RT.

Regards
Sanjay
Reply With Quote
  #4672  
Old 10th May 2008, 11:19 PM
SGM SGM is offline
Member
 
Join Date: Aug 2005
Location: PUNE
Posts: 466
Blog Entries: 14
Appreciation: 34
SGM is on a distinguished road
Default Re: Time to Stick my Neck Out ,Nifty 7300

Quote:
Originally Posted by gkpc View Post
i was desperately looking for a RT vendor, still looking for one!!!!
R K Karnani named the person whose data he is using but i need a vendor who gives tick data or atleast one minute data, sir can u guide me in this regard. My friend uses some service from New Delhi and is giving problems for last few days.
eSignal maybe the solution but not sure whether i shall understnd the software. I became after a lot of hard work familiar with metastock...
Views and suggestion on this Data matter shall be really helpful.
ys go for it, should work with MS which you are already using so no need to lrn new software.

As for the other parts of your post did not understand a thing at a casual glance, maybe will read it again 2morrow or monday.

regards
Reply With Quote
  #4673  
Old 11th May 2008, 04:31 AM
Member
 
Join Date: Sep 2007
Location: Jaipur
Posts: 699
Appreciation: 24
gkpc is on a distinguished road
Default Re: Time to Stick my Neck Out ,Nifty 7300

Quote:
Originally Posted by SGM View Post
ys go for it, should work with MS which you are already using so no need to lrn new software.

As for the other parts of your post did not understand a thing at a casual glance, maybe will read it again 2morrow or monday.

regards
Thanks sir!!
-Gautam
Reply With Quote
  #4674  
Old 11th May 2008, 06:42 AM
Member
 
Join Date: Mar 2008
Posts: 134
Appreciation: 10
vvvv is on a distinguished road
Default Re: Time to Stick my Neck Out ,Nifty 7300

Quote:
Originally Posted by SGM View Post
I think the afl code was already posted in the thread for kol indicator

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", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 
_SECTION_END();

_SECTION_BEGIN("Kolkata Meet - Bands");
//..........................................................................

a = Param("Angle Degrees",30,15,90,15);
n = Param("Slope_Bars",5,10,50,1);

a    = (22 / 7) * (a / 180);

Num = NumL = NumH = 0;
Den = 0;

for (i = 1;i < n+1;i++)
{
	Num  = Num  + sin(i * a) * Ref(C,-i-1);
	NumL = NumL + sin(i * a) * Ref(L,-i-1);
	NumH = NumH + sin(i * a) * Ref(H,-i-1);
	Den = Den + sin(i * a);
}

j  = Num/Den;
jL = NumL/Den;
jH = NumH/Den;

//Plot(j, "Slope", IIf(j > Ref(j,-1), colorBlueGrey,colorLime), styleThick | styleDashed);
Plot(jL, "LB", colorLime,styleThick | styleDashed);
Plot(jH, "UB", colorBlueGrey,styleThick | styleDashed);

_SECTION_END();

_SECTION_BEGIN("Signal 04");
Buy  = C > jH;
Sell = C < jL;

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

Short = Sell;
Cover = Buy;

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


_SECTION_BEGIN("Plot Arrows");
//Position size fixed 100 units
SetPositionSize(100,4);
SetTradeDelays(1,1,1,1);


PlotShapes(shapeUpArrow * Buy, colorBlue,0, L,-20);
PlotShapes(shapeDownArrow * Short, colorRed,0, H, -20);
_SECTION_END();
Just hope the moderators don't ban me for posting code in this thread

My testing showed works better with higher time frames (hourly and above) found it tough to use with smaller TFs like 2/3/5/ mins..., anyway Goutam is already successfully using it on smaller TFs, so choose what suits you.

Please backtest, forward test, paper trade or any which way you can, just be sure before using in RT.

Regards
Sanjay
hi sanjay,
pls provide the back testing settings used to back test this indicator & other indicators in amibroker.also how are u forward testing it??
Reply With Quote
  #4675  
Old 11th May 2008, 07:45 AM
Member
 
Join Date: Dec 2005
Posts: 405
Appreciation: 24
lvgandhi is on a distinguished road
Default Re: Time to Stick my Neck Out ,Nifty 7300

Quote:
Originally Posted by SGM View Post
I think the afl code was already posted in the thread for kol indicator

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", colorBlack ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); 
_SECTION_END();

_SECTION_BEGIN("Kolkata Meet - Bands");
//..........................................................................

a = Param("Angle Degrees",30,15,90,15);
n = Param("Slope_Bars",5,10,50,1);

a    = (22 / 7) * (a / 180);

Num = NumL = NumH = 0;
Den = 0;

for (i = 1;i < n+1;i++)
{
	Num  = Num  + sin(i * a) * Ref(C,-i-1);
	NumL = NumL + sin(i * a) * Ref(L,-i-1);
	NumH = NumH + sin(i * a) * Ref(H,-i-1);
	Den = Den + sin(i * a);
}

j  = Num/Den;
jL = NumL/Den;
jH = NumH/Den;

//Plot(j, "Slope", IIf(j > Ref(j,-1), colorBlueGrey,colorLime), styleThick | styleDashed);
Plot(jL, "LB", colorLime,styleThick | styleDashed);
Plot(jH, "UB", colorBlueGrey,styleThick | styleDashed);

_SECTION_END();

_SECTION_BEGIN("Signal 04");
Buy  = C > jH;
Sell = C < jL;

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

Short = Sell;
Cover = Buy;

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


_SECTION_BEGIN("Plot Arrows");
//Position size fixed 100 units
SetPositionSize(100,4);
SetTradeDelays(1,1,1,1);


PlotShapes(shapeUpArrow * Buy, colorBlue,0, L,-20);
PlotShapes(shapeDownArrow * Short, colorRed,0, H, -20);
_SECTION_END();
Just hope the moderators don't ban me for posting code in this thread

My testing showed works better with higher time frames (hourly and above) found it tough to use with smaller TFs like 2/3/5/ mins..., anyway Goutam is already successfully using it on smaller TFs, so choose what suits you.

Please backtest, forward test, paper trade or any which way you can, just be sure before using in RT.

Regards
Sanjay
Thank you very much,
Reply With Quote
  #4676  
Old 11th May 2008, 08:30 AM
SGM SGM is offline
Member
 
Join Date: Aug 2005
Location: PUNE
Posts: 466
Blog Entries: 14
Appreciation: 34
SGM is on a distinguished road
Default Re: Time to Stick my Neck Out ,Nifty 7300

Quote:
Originally Posted by vvvv View Post
hi sanjay,
pls provide the back testing settings used to back test this indicator & other indicators in amibroker.also how are u forward testing it??
Hello

Here's the settings, mostly default or in the code.

You will not be able to emulate Gautam's results in the back test, the afl uses lower band for sell/short and upper band for buy/cover, where as gautam is doing it the other way.

Another difference, it seems from his post that after taking the signal he is ignoring all the other indicator signals till the current position is closed. In other words once in the trade he is using price action for managing the trade and not really bothered about what the indicator is indicating. Quite valid way of doing it.

But the biggest difference will be he stops trading after few trades (Profit / Loss targets achieved).

Hello Asish

Is there a way to shift the posts related to Kol indicator, to its thread, it would be good to have all the relevant posts in one place.

regards
Sanjay
Attached Images
File Type: png Backtester Settings.PNG (93.7 KB, 40 views)
Reply With Quote
  #4677  
Old 11th May 2008, 09:36 AM
SGM SGM is offline
Member
 
Join Date: Aug 2005
Location: PUNE
Posts: 466
Blog Entries: 14
Appreciation: 34
SGM is on a distinguished road
Default Re: Time to Stick my Neck Out ,Nifty 7300

Quote:
Originally Posted by gkpc View Post
I have set rules, written on paper to read and ffollow....

Let me try to explain as best possible :
Hello Goutam

Plz cut out the sir part, just the name should do

Its good that you have written rules which you follow, not many here can say that

I will skip reading again thru the explanation part as don't want to put more energy into it. One thing is clear though that you are not taking all the crosses of the price/close on the bands, and using price action(H/L) based rules to manage the trade. Good as it is working out for you.

Just hope that those who intend to use Kol Indicator got to learn something from these interactions.

Regards
Sanjay
Reply With Quote
  #4678  
Old 11th May 2008, 11:34 AM
Member
 
Join Date: Sep 2004
Posts: 882
Appreciation: 53
rkkarnani will become famous soon enough
Default Re: Time to Stick my Neck Out ,Nifty 7300

Quote:
Originally Posted by SGM View Post
Hello Goutam

Plz cut out the sir part, just the name should do

Its good that you have written rules which you follow, not many here can say that

I will skip reading again thru the explanation part as don't want to put more energy into it. One thing is clear though that you are not taking all the crosses of the price/close on the bands, and using price action(H/L) based rules to manage the trade. Good as it is working out for you.

Just hope that those who intend to use Kol Indicator got to learn something from these interactions.

Regards
Sanjay
Thanks Sanjay for encouraging words for Gautam.... He is a quick learner and should do good in trades!!!!
A small word of praise from a senior goes a loooooooong way for a new commer!!!
Thanx again.
Regards
R K Karnani
Reply With Quote
  #4679  
Old 11th May 2008, 12:07 PM
Member
 
Join Date: Mar 2008
Posts: 134
Appreciation: 10
vvvv is on a distinguished road
Default Re: Time to Stick my Neck Out ,Nifty 7300

Quote:
Originally Posted by SGM View Post
Hello

Here's the settings, mostly default or in the code.

You will not be able to emulate Gautam's results in the back test, the afl uses lower band for sell/short and upper band for buy/cover, where as gautam is doing it the other way.

Another difference, it seems from his post that after taking the signal he is ignoring all the other indicator signals till the current position is closed. In other words once in the trade he is using price action for managing the trade and not really bothered about what the indicator is indicating. Quite valid way of doing it.

But the biggest difference will be he stops trading after few trades (Profit / Loss targets achieved).

Hello Asish

Is there a way to shift the posts related to Kol indicator, to its thread, it would be good to have all the relevant posts in one place.

regards
Sanjay
thnks sanjay for the stuff.
i thing this is more or less the settings used for most of the stocks.i think u have used mini - nifty for the settings.
for the long trades im using the following:

buy price = close , buy delay = 0; sell price = open , sell delay = 1;
or buy price = high , buy delay = 1;sell price = open , sell delay = 1;

hope im not wrong.
Reply With Quote
  #4680  
Old 12th May 2008, 10:41 AM
Moderator
 
Join Date: Nov 2005
Posts: 7,572
Appreciation: 65
uasish will become famous soon enough
Default Re: Time to Stick my Neck Out ,Nifty 7300

Quote:
Originally Posted by uasish View Post
Changed my plan,will sq up only 25 % today.
Squared my Shorts out of remaining 75 % ;50 % today @ 4946.05
Reply With Quote
Sponsored Links


Reply

Bookmarks


Advertise Here


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT +5.5. The time now is 07:35 PM.

Indemnity, Disclaimer & Disclosure Notice:
• By visiting Traderji.com you indicate your acceptance of our Forum Rules Disclaimer & Disclosure and indemnify Traderji.com, its associates and related parties of all claims howsoever resulting from the usage of the forum.
Disclaimer: Trading or investing in stocks & commodities is a high risk activity. Any action you choose to take in the markets is totally your own responsibility. Traderji.com will not be liable for any, direct or indirect, consequential or incidental damages or loss arising out of the use of this information.
Disclosure: The information in this forum is neither an offer to sell nor solicitation to buy any of the securities mentioned herein. The writers may or may not be trading in the securities mentioned.
• All names or products mentioned are trademarks or registered trademarks of their respective owners.
General Content Disclaimer Notice:
In light of our policy of encouraging candid, open exchanges of views and the rapid distribution of information originating from many sources, Traderji.com cannot determine the accuracy of information that may be uploaded to the forum. Opinions, advice and all other information expressed by participants in discussions are those of the author. You rely on such information at your own risk. You are urged to seek professional advice for specific, individual situations and not rely solely on advice or opinions given in the discussions. Since Traderji.com is an open and free discussion forum, any comments made by members of this forum in their posts reflect their own views and not of the owner or administrator of Traderji.com. Thus the owner/administrator indemnify themselves of all claims whatsoever and will not be liable or responsible for any members comments/views in this forum Traderji.com. If you find any objectionable or offensive posts made by members of this forum which you would like to bring to our notice for removal then please Contact Us.
 


Copyright © 2001 - 2008, Traderji.com All Rights Reserved.

Recommended Websites - www.TradersEdgeIndia.com - www.TradingPicks.com - www.MasterOfTrading.com