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; Is there any AFL code of Saint's pivot metod and kolkata indicator ? If so, ...

 Traderji.com AFL of Saint's pivot method and Kolkata indicator
 User Name Remember Me? Password
 Register FAQ Calendar Search Today's Posts Mark Forums Read

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

#1
17th October 2008, 08:18 PM
 Member Join Date: Jul 2007 Location: from Mars Posts: 290 Thanks: 293 Thanked 177 Times in 101 Posts
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.
 Sorry your browser does not support IFRAME

Looking for a share broker?

#2
17th October 2008, 10:51 PM
 Member Join Date: Feb 2006 Location: Kolkata Posts: 268 Thanks: 165 Thanked 200 Times in 75 Posts
Re: AFL of Saint's pivot menthod and Kolkata indicator

Quote:
 Originally Posted by mmca2006 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;

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(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
 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
18th October 2008, 02:51 PM
 Member Join Date: Jul 2007 Location: from Mars Posts: 290 Thanks: 293 Thanked 177 Times in 101 Posts
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
 The Following User Says Thank You to mmca2006 For This Useful Post: pkamalesh (18th October 2008)
#4
20th October 2008, 11:25 AM
 Member Join Date: Nov 2004 Posts: 19 Thanks: 3 Thanked 38 Times in 12 Posts
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
#5
20th October 2008, 01:50 PM
 Member Join Date: Jul 2007 Location: from Mars Posts: 290 Thanks: 293 Thanked 177 Times in 101 Posts
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 .
#6
25th October 2008, 11:53 AM
 Member Join Date: Jul 2007 Location: from Mars Posts: 290 Thanks: 293 Thanked 177 Times in 101 Posts
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;```
#7
25th October 2008, 12:18 PM
 uasish Guest Posts: n/a
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.
#8
25th October 2008, 01:37 PM
 Member Join Date: Jul 2007 Location: from Mars Posts: 290 Thanks: 293 Thanked 177 Times in 101 Posts
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.
#9
6th November 2008, 06:45 PM
 Member Join Date: Oct 2008 Location: London,UK Posts: 25 Thanks: 14 Thanked 9 Times in 9 Posts
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
#10
6th November 2008, 10:12 PM
 Member Join Date: May 2007 Posts: 117 Thanks: 4 Thanked 29 Times in 18 Posts
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?

 Bookmarks

 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 OffTrackbacks are Off Pingbacks are Off Refbacks are Off Forum Rules

All times are GMT +5.5. The time now is 03:38 AM.

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.