![]() |
|
| 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 ... |
|
|||||||
| Notices |
![]() |
|
|
Thread Tools |
| Sponsored Links |
|
#41
|
|||
|
|||
|
Quote:
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. |
|
#42
|
|||
|
|||
|
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. |
|
#43
|
|||
|
|||
|
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.
|
|
#44
|
|||
|
|||
|
Quote:
|
|
#46
|
|||
|
|||
|
Quote:
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();
|
|
#47
|
|||
|
|||
|
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. |
|
#48
|
|||
|
|||
|
Quote:
(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 |
|
#49
|
|||
|
|||
|
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. |
|
#50
|
|||
|
|||
|
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();
Kalyan. Last edited by kkseal; 22nd April 2008 at 07:45 PM. |
| Sponsored Links |
|
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|
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.