Traderji.com - Discussion forum for Stocks Commodities & Forex


AFL of Saint's pivot method and Kolkata indicator

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, ...


Go Back   Traderji.com - Discussion forum for Stocks Commodities & Forex > METHODS & STRATEGIES > Technical Analysis

Technical Analysis Discussion of all the principles involved in technical analysis.


Reply
 
Thread Tools
  #1  
Old 17th October 2008, 08:18 PM
mmca2006's Avatar
Member
 
Join Date: Jul 2007
Location: from saturn
Posts: 205
Thanks: 191
Thanked 127 Times in 68 Posts
mmca2006 will become famous soon enoughmmca2006 will become famous soon enough
Question AFL of Saint's pivot method and Kolkata indicator

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.



Reply With Quote
Sponsored Links
  #2  
Old 17th October 2008, 10:51 PM
Member
 
Join Date: Feb 2006
Location: Kolkata
Posts: 206
Thanks: 77
Thanked 135 Times in 46 Posts
sunbim31 has a spectacular aura aboutsunbim31 has a spectacular aura about
Default Re: AFL of Saint's pivot menthod and Kolkata indicator

Quote:
Originally Posted by mmca2006 View Post
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.

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
Reply With Quote
The Following 8 Users Say Thank You to sunbim31 For This Useful Post:
anshuman.chaudhuri (6th November 2008), citrus (18th October 2008), HBBHVN (30th October 2008), hitesh (10th November 2008), santoshkj (1st December 2009), whyLately (6th November 2008), xyte (20th October 2008)
  #3  
Old 18th October 2008, 02:51 PM
mmca2006's Avatar
Member
 
Join Date: Jul 2007
Location: from saturn
Posts: 205
Thanks: 191
Thanked 127 Times in 68 Posts
mmca2006 will become famous soon enoughmmca2006 will become famous soon enough
Default Re: AFL of Saint's pivot menthod and Kolkata indicator

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
Reply With Quote
The Following User Says Thank You to mmca2006 For This Useful Post:
pkamalesh (18th October 2008)
  #4  
Old 20th October 2008, 11:25 AM
Member
 
Join Date: Nov 2004
Posts: 19
Thanks: 3
Thanked 38 Times in 12 Posts
xyte will become famous soon enough
Default Re: AFL of Saint's pivot menthod and Kolkata indicator

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
Reply With Quote
  #5  
Old 20th October 2008, 01:50 PM
mmca2006's Avatar
Member
 
Join Date: Jul 2007
Location: from saturn
Posts: 205
Thanks: 191
Thanked 127 Times in 68 Posts
mmca2006 will become famous soon enoughmmca2006 will become famous soon enough
Default Re: AFL of Saint's pivot menthod and Kolkata indicator

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 .
Reply With Quote
  #6  
Old 25th October 2008, 11:53 AM
mmca2006's Avatar
Member
 
Join Date: Jul 2007
Location: from saturn
Posts: 205
Thanks: 191
Thanked 127 Times in 68 Posts
mmca2006 will become famous soon enoughmmca2006 will become famous soon enough
Default Re: AFL of Saint's pivot method and Kolkata indicator

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;
Reply With Quote
  #7  
Old 25th October 2008, 12:18 PM
uasish
Guest
 
Posts: n/a
Default Re: AFL of Saint's pivot method and Kolkata indicator

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.
Reply With Quote
  #8  
Old 25th October 2008, 01:37 PM
mmca2006's Avatar
Member
 
Join Date: Jul 2007
Location: from saturn
Posts: 205
Thanks: 191
Thanked 127 Times in 68 Posts
mmca2006 will become famous soon enoughmmca2006 will become famous soon enough
Default Re: AFL of Saint's pivot method and Kolkata indicator

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.
Reply With Quote
  #9  
Old 6th November 2008, 06:45 PM
Member
 
Join Date: Oct 2008
Location: London,UK
Posts: 25
Thanks: 14
Thanked 9 Times in 9 Posts
anshuman.chaudhuri is on a distinguished road
Default Re: AFL of Saint's pivot menthod and Kolkata indicator

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
Reply With Quote
  #10  
Old 6th November 2008, 10:12 PM
Member
 
Join Date: May 2007
Posts: 117
Thanks: 4
Thanked 29 Times in 18 Posts
Piyush Singh is on a distinguished road
Default Re: AFL of Saint's pivot method and Kolkata indicator

The "Kolkata" AFL references future quotes, any way to modify the code to bypass future referencing?


Reply With Quote
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:56 PM.

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.
 


Copyright © www.Traderji.com 2001 - , All rights reserved.

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247