![]() |
|
| Discuss AFL of Saint's pivot method and Kolkata indicator at the Technical Analysis within the Traderji.com - Discussion forum for Stocks Commodities & Forex; Is there any AFL code of Saint's pivot metod and kolkata indicator ? If so, ... |
|
|||||||
| Technical Analysis Discussion of all the principles involved in technical analysis. |
![]() |
|
|
Thread Tools |
|
#1
|
|||
|
|||
|
Is there any AFL code of Saint's pivot metod and kolkata indicator ? If so, kindly provide me the link, It will help me lot . Last 2 days I am continuously searching but failed to locate it. Thanks in advance. |
| Sponsored Links |
|
#2
|
|||
|
|||
|
Quote:
Hello Try this _SECTION_BEGIN("Live01"); //////////////////////////////////////////////////////////////////////////////////// // Global variables GraphXSpace=10; SetBarsRequired(10000,10000); lperiod = Param("Long Period", 90,3,200,1); P = ParamField("Price field",4); a = Param("Angle",30,15,45,1); a = (22/7)*(a/180); 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); kolkata = Num / Den; movAvg = MA(P,lperiod); //////////////////////////////////////////////////////////////////////////////////// // Desicion Buy = kolkata > movAvg AND kolkata < L AND kolkata > movAvg; Sell = kolkata < movAvg OR H < kolkata; Short = movAvg > kolkata AND kolkata > H AND kolkata < movAvg; Cover = kolkata > movAvg OR L > kolkata; Buy = ExRem(Buy, Sell); Sell = ExRem(Sell, Buy); Short = ExRem(Short, Cover); Cover = ExRem(Cover, Short); //////////////////////////////////////////////////////////////////////////////////// // Graphics Plot(kolkata, "Kolkata ", colorBrown, 5); Plot(movAvg, "MA " + lperiod, colorIndigo, 5); PlotShapes(IIf(Buy,shapeUpArrow,shapeNone),colorBr ightGreen); PlotShapes(IIf(Short,shapeDownArrow,shapeNone),col orRed); PlotShapes(IIf(Sell,shapeSmallCircle,shapeNone),co lorBrightGreen); PlotShapes(IIf(Cover,shapeSmallCircle,shapeNone),c olorRed); _SECTION_END(); /* // AFL - formula -- which I use wvap = WMA(V*P,period)/WMA(V,period); also,... for camarilla levels... you might have the actual formula... in case you dont have AND still use 1.1 as the factor .. you can change it with ... factor = sqrt(22/7)... square root of PI. it works better on nifty also... regards, pramod Here's the camarilla AFL....which I use.. I have an extra level 3.5 on both sides.. this level acts as a resting place...sometimes.*/ _SECTION_BEGIN("Camarilla"); tom = -1 * Param("Day",1,0,100,1); TimeFrameSet(inDaily); yyo = Ref(O,tom + 1); yyh = Ref(H,tom + 1); yyl = Ref(L,tom + 1); yyc = Ref(C,tom + 1); TimeFrameRestore(); tyo = TimeFrameExpand( yyo, inDaily, expandLast); tyh = TimeFrameExpand( yyh, inDaily, expandLast); tyl = TimeFrameExpand( yyl, inDaily, expandLast); tyc = TimeFrameExpand( yyc, inDaily, expandLast); x = LastValue(Cum(1)) - 1; yo = tyo[x]; yh = tyh[x]; yl = tyl[x]; yc = tyc[x]; fac = sqrt(22/7); r4 = ( yh - yl ) * ( fac/2) + yc; r35 = ( yh - yl ) * ( fac/3) + yc; r3= ( yh - yl ) * ( fac/4) + yc; r2 = ( yh - yl ) * ( fac/6) + yc; r1 = ( yh - yl ) * ( fac/12) + yc; s1 = yc - ( yh - yl ) * (fac/12); s2 = yc - ( yh - yl ) * (fac/6); s3 = yc - ( yh - yl ) * (fac/4); s35 = yc - ( yh - yl ) * (fac/3); s4 = yc - ( yh - yl ) * (fac/2); pivot = (r4 + s4)/2; Plot(r4,"\nR4",colorYellow,1); Plot(r35,"R3.5",colorYellow,styleDashed|styleThick ); Plot(r3,"R3",colorYellow,1); Plot(r2,"R2",colorYellow,1); Plot(r1,"R1",colorYellow,1); Plot(pivot," Pivot",colorOrange,5); Plot(s1," S1",colorDarkBlue,1); Plot(s2,"S2",colorDarkBlue,1); Plot(s3,"S3",colorDarkBlue,1); Plot(s35,"S3.5",colorDarkBlue,styleDashed|styleThi ck); Plot(s4,"S4",colorDarkBlue,1); _SECTION_END(); _SECTION_BEGIN("Price"); SetChartOptions(0,chartShowArrows|chartShowDates); _N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}", O, H, L, C, SelectedValue( ROC( C, 1 )) )); Plot( C, "Close", ParamColor("Color", colorWhite ), styleNoTitle | ParamStyle("Style") | GetPriceStyle() ); if( ParamToggle("Tooltip shows", "Only Prices|All Values" ) ) { ToolTip=StrFormat("Open: %g\nHigh: %g\nLow: %g\nClose: %g (%.1f%%)\nVolume: "+NumToStr( V, 1 ), O, H, L, C, SelectedValue( ROC( C, 1 ))); } su = Study("SU", GetChartID() ); re = Study("RE", GetChartID() ); PlotOHLC( re, re, su, su, "", ParamColor("Shade Color", colorPlum),styleCloud ); _SECTION_END(); This is the afl version of Asishda's Kolkata Indicator. Sunando |
|
#3
|
|||
|
|||
|
Thanks lot Sunando for your effort , I have gone through this forum and found several post submitted by you which are really useful for a layman like me. I have also a request to you--here you have given a code of Kolkata indicator with Camarilla levels ,however is it possible to merge kolkata indicator with saint’s pivot. Probably my question is substandard but I could not resist my self from asking it to you. If at all it is possible , can you provide us an AFL.
From this forum I found one metastock expert code of Saint’s pivot method ,wriitten by Karthik but found no AFL of the same code, if kolkata indicator can be merged with Saint’s pivot , it may strengthen the buy /sell decision of a layman like me. If I am wrong in any aspect please rectify me. Just 2 paras of the metastock code written by Karthik is giving here (I do not have the link of karthik’s post ) for your ready reference---- HTML Code:
Symbol 1 Name: Higher High Graphic: Dot Size : Medium Color : Green Label : HH Symbol Position : above Label Position: above Condition: Z:= Zig(C ,2 ,% ) ; HH:=((Z<Ref(Z,-1) AND Ref(Z,-1) > Ref(Z,-2)) AND (Peak(1,Z,2 ) >Peak(2,Z,2)));HH; Symbol 2 Name : Lower High Graphic : Dot Size : Medium Color : Red Label : LH Symbol Position : above Label Position : above Condition : Z:= Zig(C ,2 ,% ) ; LH:=((Z<Ref(Z,-1) AND Ref(Z,-1) > Ref(Z,-2)) AND (Peak(1,Z,2 ) <Peak(2,Z,2)));LH; …………………………………………………………… mmca |
| The Following User Says Thank You to mmca2006 For This Useful Post: | ||
pkamalesh (18th October 2008) | ||
|
#4
|
|||
|
|||
|
Here is the metastock explorer I have from the forum. Don't exactly remember the thread I got it in. Credits to Karthik and the person who made this expert.
Import it into Meta 9 and higher and apply the expert PIVOT-ANALYSIS Cheers, xyte |
|
#5
|
|||
|
|||
|
Thanks lot for providing this metastock expert. However I actually need AFL of this pivot expert along with Kolkata indicator.Requesting senior members/AFL experts , if possible, please provide a link of AFL of this pivot expert .
|
|
#6
|
|||
|
|||
|
Requesting the AFL experts to assist me to write an AFL , the first two conditions for which I require a guidance is given below--
Please guide me to write an AFL for the 2 conditions given below(these are in MS format), I will try to write for the rest. Code:
Name: Higher High Symbol : Dot Color : Green Label : HH Symbol Position : above Condition: Z:= Zig(C ,2 ,% ) ; HH:=((Z<Ref(Z,-1) AND Ref(Z,-1) > Ref(Z,-2)) AND (Peak(1,Z,2 ) >Peak(2,Z,2)));HH; Code:
Name : Lower High Symbol : Dot Color : Red Label : LH Symbol Position : above Condition : Z:= Zig(C ,2 ,% ) ; LH:=((Z<Ref(Z,-1) AND Ref(Z,-1) > Ref(Z,-2)) AND (Peak(1,Z,2 ) <Peak(2,Z,2)));LH; |
|
#7
|
|||
|
|||
|
Any indicator/Osc/Expert coded based on Zig funtion is not advisable.On past charts it LOOKS excellent/Gr8 as if we have just received an ATM card with pin ,accessing enormous money.Many a times this signal (on which we have taken entry) will simply VANISH from charts after addittion of upcoming right side's Future datas,landing us in a mess.
There are some use of this ,which anyone will understand after delaing for some time in code building process. |
|
#8
|
|||
|
|||
|
Thanks lot for your valuable suggestion, however I seek one more suggestion from you -ie. I want to establish pivot first with HH/LL method AND after establishing the pivot my trade will be excuted on the basis of RSI/Trix/Your kolkata meet indicator or A Combination of these indicators .I do not want to execute my trade (swing trade) on the basis of pivot solely.Actually i want to establish my own trading style, which must be very simple .
Buy= Pivot +Confirmation from Rsi /Trix /macd /kolkata meet etc.. Sell= once pivot established(donot want to wait for any confirmation from other indicators because of conservative approach.)however in such case trailing stoploss may also be used. Will be obliged if you kindly guide me. |
|
#9
|
|||
|
|||
|
Hi Sunando,
thanks to you that I could insert the AFL into AMI. I do not have any idea on the AFL..I found the Camarilla levels very interesting once I studied the same..Is is possible to have some sort of an exploration based on the levels?? I am using Ami 4.80.. Thanks Anshuman |
|
#10
|
|||
|
|||
|
The "Kolkata" AFL references future quotes, any way to modify the code to bypass future referencing?
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|
Indemnity, Disclaimer & Disclosure
Notice:
• By visiting Traderji.com you automatically indicate that you agree to our Forum Rules, Indemnity, Disclaimer & Disclosure Notice and General Content Disclaimer Notice and indemnify Traderji.com, its
associates and related parties of all claims howsoever resulting from
the usage of the forum/site.
• 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. You are recommended to make appropriate enquiries and seek appropriate advise before sending money, incurring any expenses, acting on recommendations or entering into any commitment in relation to any advertisement published here. Traderji.com does not vouch for any claims made by the advertisers of products and services. Traderji.com will not be held liable for any consequences in the event such claims are not honoured by the advertisers. Traderji.com will not be liable for
any, direct or indirect, consequential or incidental damages or loss arising out of the use of any information by anybody mentioned anywhere on this site.
• 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 or legality of any 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. Although we constantly delete all irrelevant content and/or SPAM, if you should 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.