Traderji.com - Discussion forum for Stocks Commodities & Forex

Discussion on kolkata meet signal

Discuss Discussion on kolkata meet signal at the MetaStock within the Traderji.com - Discussion forum for Stocks Commodities & Forex; Originally Posted by vvvv are u sure that the afl is correct.the code for metastock ...


Go Back   Traderji.com - Discussion forum for Stocks Commodities & Forex > TOOLS & RESOURCES > Software > MetaStock

Notices


Advertise Here

Reply
 
Thread Tools
Sponsored Links
  #41  
Old 21st April 2008, 09:20 PM
SGM SGM is offline
Member
 
Join Date: Aug 2005
Location: PUNE
Posts: 468
Blog Entries: 14
Thanks: 11
Thanked 31 Times in 10 Posts
Appreciation: 71
SGM will become famous soon enough
Default Re: Discussion on kolkata meet signal

Quote:
Originally Posted by vvvv View Post
are u sure that the afl is correct.the code for metastock gives a smooth curve but the afl gives a highly choppy curve.
moreover the line's for the kolkata meet indicator & the one in which the code is given doesnt match
Hello vikram

You may be right on the count that the conversion is faluty, I do not use metastock so can't verify, maybe someone else can do that for you. The original code that asishda send me for conversion is also uploaded here.

The forum has great threads for learning afl coding, or just do a search for all posts of bvpraveen.

Regards
Sanjay

Last edited by SGM; 21st April 2008 at 09:35 PM.
Reply With Quote
  #42  
Old 21st April 2008, 11:03 PM
Member
 
Join Date: Nov 2006
Posts: 1,419
Thanks: 5
Thanked 2 Times in 1 Post
Appreciation: 58
kkseal will become famous soon enough
Default Re: Discussion on kolkata meet signal

Asishda had posted somewhere about removing noise from sine waves & here you have a Sine weighted MA.

But what if one wants to use a length/period > 5?

To accommodate any length i think a for-loop would be required.

Regards,
Kalyan.
Reply With Quote
  #43  
Old 22nd April 2008, 08:20 AM
Moderator
 
Join Date: Nov 2005
Posts: 8,259
Thanks: 208
Thanked 351 Times in 155 Posts
Appreciation: 417
uasish is just really niceuasish is just really niceuasish is just really niceuasish is just really niceuasish is just really nice
Default Re: Discussion on kolkata meet signal

Quote:
Originally Posted by vvvv View Post
are u sure that the afl is correct.the code for metastock gives a smooth curve but the afl gives a highly choppy curve.
moreover the line's for the kolkata meet indicator & the one in which the code is given doesnt match
The one sent to Sanjay is same,but now i find that i used Low instead of Close (which i sent to Sanjay)in Kolkata Meet.
Reply With Quote
  #44  
Old 22nd April 2008, 08:24 AM
Moderator
 
Join Date: Nov 2005
Posts: 8,259
Thanks: 208
Thanked 351 Times in 155 Posts
Appreciation: 417
uasish is just really niceuasish is just really niceuasish is just really niceuasish is just really niceuasish is just really nice
Default Re: Discussion on kolkata meet signal

Quote:
Originally Posted by SGM View Post
wosh, it took me more than double the time to post compared to code and backtest. Anyway, heres the last one with back test report of Nifty Futures

NF, EoD, 01 Jan 2008 - April 17 2008

NF, Hourly, 01 Jan 2008 - April 17 2008

Please do your own test before drawing any conclusions. The code is available, so shouldn't be a problem to convert into anything.

Regards
Sanjay
So optimization gives a better result & in Choopy Session performed better ,however overall the performance abysmal bad.
Reply With Quote
  #45  
Old 22nd April 2008, 09:12 AM
SGM SGM is offline
Member
 
Join Date: Aug 2005
Location: PUNE
Posts: 468
Blog Entries: 14
Thanks: 11
Thanked 31 Times in 10 Posts
Appreciation: 71
SGM will become famous soon enough
Default Re: Discussion on kolkata meet signal

Quote:
Originally Posted by kkseal View Post
To accommodate any length i think a for-loop would be required.
The ball, as they say, is in your court.

I am sure you would post here, whatever you come up with.

rgds
Reply With Quote
  #46  
Old 22nd April 2008, 09:21 AM
SGM SGM is offline
Member
 
Join Date: Aug 2005
Location: PUNE
Posts: 468
Blog Entries: 14
Thanks: 11
Thanked 31 Times in 10 Posts
Appreciation: 71
SGM will become famous soon enough
Default Re: Discussion on kolkata meet signal

Quote:
Originally Posted by uasish View Post
The one sent to Sanjay is same,but now i find that i used Low instead of Close (which i sent to Sanjay)in Kolkata Meet.
P = ParamField("Price field",-1); Replacing P for C would make the input selectable can use H, L, O, C or average etc.

The following code can be used on seperate pane maybe below price to get up/down signals.

Code:
_SECTION_BEGIN("Asish_Indicator_01");

a  = Param("Len",30,15,45,1);
P = ParamField("Price field",-1);

Num = sin(1*a) * P + sin(2*a) * Ref(P,-1) + sin(3*a) * Ref(P,-2) + sin(4*a) * Ref(P,-3) + sin(5*a) * Ref(P,-4);

Den = sin(a) + sin(2*a) + sin (3*a) + sin(4*a) + sin(5*a);

j1 = Num / Den;

Plot(IIf(j1 > Ref(j1,-1),10,-10),"j1",IIf(j1 > Ref(j1,-1),colorBlueGrey,colorLime), styleThick|styleOwnScale,-12,12);

_SECTION_END();
rgds
Attached Images
File Type: png KM1.PNG (32.1 KB, 81 views)
Reply With Quote
  #47  
Old 22nd April 2008, 09:48 AM
Member
 
Join Date: Apr 2007
Location: India, West Bengal, Kolkata
Posts: 990
Blog Entries: 1
Thanks: 44
Thanked 39 Times in 22 Posts
Appreciation: 100
biyasc will become famous soon enough
Default Re: Discussion on kolkata meet signal

Quote:
Originally Posted by vvvv View Post
sorry to hear it from u mr biyas. u were present so u cud hav asked for an explanation from the man himself.
vvvv, you misunderstood me. i appreciate the logic of kkseal for not using the indicator. there is no offense about asisda's indicator.

Last edited by biyasc; 22nd April 2008 at 03:32 PM. Reason: spell mistake.
Reply With Quote
  #48  
Old 22nd April 2008, 01:25 PM
Member
 
Join Date: Nov 2006
Posts: 1,419
Thanks: 5
Thanked 2 Times in 1 Post
Appreciation: 58
kkseal will become famous soon enough
Default Re: Discussion on kolkata meet signal

Quote:
Originally Posted by SGM View Post
The ball, as they say, is in your court.

I am sure you would post here, whatever you come up with.

rgds
Why bother when the results are so bad? (Not many will be interested anyway)

Nonetheless, i'll try to come up with the code post mkt.

The weighting will be different though for odd & even periods*. More on that later.

Regards,
Kalyan.

* like say if it's 1 2 3 2 1 for 5 pds, it'll be 1 2 3 3 2 1 for 6 pds
Reply With Quote
  #49  
Old 22nd April 2008, 06:00 PM
Member
 
Join Date: Nov 2006
Posts: 1,419
Thanks: 5
Thanked 2 Times in 1 Post
Appreciation: 58
kkseal will become famous soon enough
Default Re: Discussion on kolkata meet signal

Ok, first things first

In Sanjay's code (AFL not MS code) insert

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

after 1st line.

This'll solve a basic problem (& regenerate interest in the indi ).

Regards,
Kalyan.

Last edited by kkseal; 22nd April 2008 at 07:23 PM.
Reply With Quote
  #50  
Old 22nd April 2008, 06:48 PM
Member
 
Join Date: Nov 2006
Posts: 1,419
Thanks: 5
Thanked 2 Times in 1 Post
Appreciation: 58
kkseal will become famous soon enough
Default Re: Discussion on kolkata meet signal

This is for entry of ODD periods (from 3 to 13)

HTML Code:
_SECTION_BEGIN("Asish_Indicator_01");

a  = Param("Angle",30,15,45,1);
pd = Param("Period",5,3,13,2);
P = ParamField("Price field",3);

a= (22/7)*(a/180);
Num = 0;
Den = 0;

for(i=1; i<=pd; i++)
{
    Num = Num + sin(i*a)*Ref(P,1-i);
    Den = Den + sin(i*a);
}

if (den!=0)  j1 = Num / Den;

Plot(j1,"j1",IIf(j1 > Ref(j1,-1),colorBlueGrey,colorLime),styleThick);

_SECTION_END();
Regards,
Kalyan.

Last edited by kkseal; 22nd April 2008 at 07:45 PM.
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 10:31 AM.

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