Discussion on kolkata meet signal

SGM

Active Member
#71
Hello Kalyan

We should not look at an indicator as a complete system. Can be used for either as only a setup or only an timng signal to be used with diff setups. Many possibilities, entry / exit / trailing stops, many ways to look at it.

For e.g. I use renko charts as a visual form of chandelier exit by adjusting the brick size.

Anyway heres the chart for today with this indicator, now looks better than MS, also more colorful :)

Regards
Sanjay
 

Attachments

U

uasish

Guest
#72
kalyan ,

There can be so many different ways to code MA ,with this one given below; can even give you fractional period,which is still nowhere in World over i have seen, as per my limited knowledge goes;(this one is one of the byproduct of my initial quest period's struggling with Construction aspect).

.........................................................................................

If(Cum(1)=1,C,PREV*(1-.1818)+C*.1818);

..........................................................................................

Asish
 
V

vvvv

Guest
#73
Hello Kalyan

We should not look at an indicator as a complete system. Can be used for either as only a setup or only an timng signal to be used with diff setups. Many possibilities, entry / exit / trailing stops, many ways to look at it.

For e.g. I use renko charts as a visual form of chandelier exit by adjusting the brick size.

Anyway heres the chart for today with this indicator, now looks better than MS, also more colorful :)

Regards
Sanjay
can u post sum learning material on renko how practically to use..ive read steve nisons material on renko but it deals mostly with the construction of the renko
 
V

vvvv

Guest
#74
i have tested the indicator on bharti airtel eod cash from 19/6/2006 to 22/4/2008

condition

buy = close > indicator
sell = close < indicator
----------------------------------------------------------------------------------------------------------------------------------------------------
here is the afl for it
----------------------------------------------------------------------------------------------------------------------------------------------------
_SECTION_BEGIN("Asish_Indicator_01");

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

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

for(i=1; i<=pd; i++)
{
if(pd%2==0 AND i > pd/2) X = sin((i-1)*a);
else X = sin(i*a);

Num = Num + X*Ref(P,1-i);
Den = Den + X;
}

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

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

Buy = Close > j1;
Sell = Close < j1;
Buy=ExRem(Buy,Sell); Sell=ExRem(Sell,Buy);
PlotShapes( shapeHollowUpArrow* Buy , colorBrightGreen ,0);
PlotShapes( shapeHollowDownArrow* Sell, colorRed ,0);
Plot(0,"",colorDarkBlue,styleLine);

Filter = Buy OR Sell;
Buy=ExRem(Buy,Sell); Sell=ExRem(Sell,Buy);
AddTextColumn(FullName(),"Name");
AddColumn( Buy, "BUY" );
AddColumn( Sell, "SELL" );


_SECTION_END();
----------------------------------------------------------------------------------------------------------------------------------------------------

i am not an AFL expert,pls check whether its right or wrong.i am attaching the back test report for bharti.pls check tht too.
 
Last edited by a moderator:
U

uasish

Guest
#75
I have waited from 21st April so the sender of this pm (on my request he designed this back-test in Metastock) can post the same in the Thread.In subsequent pm's he requested that this be posted as an 'anonymus ID'.
After thinking for 7 days ,without his permission i am posting the same.


" 21st April 2008, 05:37 PM
oxusmorouz
Member Join Date: Sep 2006
Location: Chennai
Posts: 744


Re: Plz Test this

--------------------------------------------------------------------------------

Hello sir,
Since there's a pretty easy exam tomorrow, thought I'll take an hour off for surfing. Added something I've been working on recently. It's for long only positional trading and "not for any lesser time frame". Shall work on adding another filter later.

Indicator name: Calcutta Indicator:

Quote:
K:= C;
a:=30;
S1:=Sin(1*a)*K;
S2:=Sin(2*a)*Ref(K,-1);
S3:=Sin(3*a)*Ref(K,-2);
S4:=Sin(4*a)*Ref(K,-3);
S5:=Sin(5*a)*Ref(K,-4);
Num:=S1+S2+S3+S4+S5;
Den:=Sin(a)+Sin(2*a)+Sin(3*a)+Sin(4*a)+Sin(5*a);
j1:= Num/Den;
j1;

Indicator name: Calcutta Secondary Buy

Quote:
a:= Fml("Calcutta Indicator");
Cross(C,a);

Indicator name: Calcutta Secondary Sell

Quote:
a:= Fml("Calcutta Indicator");
Cross(a,C);

Indicator name: Calcutta System - Equity $

Quote:
EntryPrice:= BarsSince(Fml("Calcutta Secondary Buy")) = 1;
ExitPrice:= BarsSince(Fml("Calcutta Secondary Sell")) = 1;

a:= Cum(Cum(entryprice) * ROC(C,1,$));
b:= Cum(Cum(exitprice) * ROC(C,1,$));
a - b

Indicator name: Calcutta Buy-Hold

Quote:
a:= Fml("Calcutta System - Equity $");
b:= IsDefined(a);
d:= If(b = 1, ROC(C,1,$),0);
Cum(d)

Indicator name: Calcutta - ROC Difference

Quote:
a:= Fml("Calcutta System - Equity $");
b:= Fml( "Calcutta Buy-Hold");
d:= (a-b);
f:= Mov(d,5,S);
f

Indicator name: Calcutta System - Primary Buy

Quote:
a:= Fml( "Calcutta Secondary Buy");
b:= Fml( "Calcutta Secondary Sell");
d:= Fml( "Calcutta - ROC Difference");

f:= IsDefined(d);
g:= BarsSince(f = 1 AND Ref(f,-2) = 0) = 1;

i:= d < 0 AND g;
j:= (d > 0 AND a) OR (BarsSince(a) < BarsSince(b) AND g);
k:= Cross(0,d);
i OR j OR k

Indicator name: Calcutta System - Primary Sell

Quote:
a:= Fml( "Calcutta Secondary Buy");
b:= Fml( "Calcutta Secondary Sell");
d:= Fml( "Calcutta - ROC Difference");

f:= IsDefined(d);
g:= BarsSince(f = 1 AND Ref(f,-2) = 0) = 1;

i:= d < 0 AND g;
j:= (d > 0 AND a) OR (BarsSince(a) < BarsSince(b) AND g);
k:= Cross(0,d);
m:= i OR j OR k;

n:= BarsSince(a) > BarsSince(b) AND Cross(d,0);
q:= d > 0 AND b;
r:= g AND BarsSince(b) < BarsSince(a);
n OR q OR r

Indicator name: Calcutta System - Total Equity $

Quote:
a:= Fml( "Calcutta System - Primary Buy") ;
b:= Fml( "Calcutta System - Primary Sell");

d:= BarsSince(a) = 1;
f:= BarsSince(b) = 1;

g:= BarsSince(d) < BarsSince(f);

i:= ROC(C,1,$);
j:= If(g,i,0);
k:= Cum(j);
k

Your comments/feedback will be appreciated.

Regards,
Ajay. "

Plz change the name from Calcutta Indicator to whatever name is there in your Metastock;as name ,for the Original indicator,becoz it is going to be Called by Ajay's code ,time & again.
 

gkpc

Well-Known Member
#76
Will it be possible for some senior to guide : STEP _ BY _ STEP to make this explorer in Metastock.
My expertise in MS is limited to COPY PASTE!!!!
:)
Please do it per your convenience.
Regards.
-Gautam
 

milkyblack

Well-Known Member
#77
i have tested the indicator on bharti airtel eod cash from 19/6/2006 to 22/4/2008

condition

buy = close > indicator
sell = close < indicator
----------------------------------------------------------------------------------------------------------------------------------------------------
here is the afl for it
----------------------------------------------------------------------------------------------------------------------------------------------------
_SECTION_BEGIN("Asish_Indicator_01");

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

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

for(i=1; i<=pd; i++)
{
if(pd%2==0 AND i > pd/2) X = sin((i-1)*a);
else X = sin(i*a);

Num = Num + X*Ref(P,1-i);
Den = Den + X;
}

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

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

Buy = Close > j1;
Sell = Close < j1;
Buy=ExRem(Buy,Sell); Sell=ExRem(Sell,Buy);
PlotShapes( shapeHollowUpArrow* Buy , colorBrightGreen ,0);
PlotShapes( shapeHollowDownArrow* Sell, colorRed ,0);
Plot(0,"",colorDarkBlue,styleLine);

Filter = Buy OR Sell;
Buy=ExRem(Buy,Sell); Sell=ExRem(Sell,Buy);
AddTextColumn(FullName(),"Name");
AddColumn( Buy, "BUY" );
AddColumn( Sell, "SELL" );


_SECTION_END();
----------------------------------------------------------------------------------------------------------------------------------------------------

i am not an AFL expert,pls check whether its right or wrong.i am attaching the back test report for bharti.pls check tht too.
Thanks a lot for the ami AFL... but please tell me how do i insert it into ami? i have no idea how to make use of this formula... :confused:

Regards
 
U

uasish

Guest
#78
Plz verify whether this assists,another Kolkata Meet indicator with Bands.

Name:= Kolkata Meet - Bands
..........................................................................

b:= Input("Rs Stop",1,100,30);
{For 60mins Nifty Fut 30 is default,Lower the Time frame this would be Lower }
K:= L;
a:= 30;
S1:=Sin(1*a)*K;
S2:=Sin(2*a)*Ref(K,-1);
S3:=Sin(3*a)*Ref(K,-2);
S4:=Sin(4*a)*Ref(K,-3);
S5:=Sin(5*a)*Ref(K,-4);
Num:=S1+S2+S3+S4+S5;
Den:=Sin(a)+Sin(2*a)+Sin(3*a)+Sin(4*a)+Sin(5*a);
j1:= Num/Den;
K1:= H;
S11:=Sin(1*a)*K1;
S21:=Sin(2*a)*Ref(K1,-1);
S31:=Sin(3*a)*Ref(K1,-2);
S41:=Sin(4*a)*Ref(K1,-3);
S51:=Sin(5*a)*Ref(K1,-4);
Num1:=S11+S21+S31+S41+S51;
j11:= Num1/Den;
j11+b;{Initial Stop for Short}
j11;
j1;
j1-b;{Initial Stop for Long}
.................................................................................
 
Last edited by a moderator:
V

vvvv

Guest
#80
Thanks a lot for the ami AFL... but please tell me how do i insert it into ami? i have no idea how to make use of this formula... :confused:

Regards
buddy..get the thing checked by an ami expert...im not an ami expert & i dont want people to trade on my stuff & get false signals.
 

Similar threads