Need AFL for Stochastic...Experts Please help..

itzarvind

Well-Known Member
Joined
May 16, 2008
Messages
201
Likes
561
Location
Chennai
#1

Guys,

Am Using Stochastic %D(15,3,3) and Stochastic %K(15,3)

When ever %K Crosses Above %D, it should give me an Buy alert and vice versa.

For the stock for which a buy or sell is given... if the crossover happens in the negative direction, it should give an Exit..

I should be able to Scan and Explore Using this..

This is not a stand alone strategy.... For SL and Target.. we have to use someother methods... Any idea for this.... :)

Anant sir, Hope you can help me :)

Regards,
Arvind
 

singhboy

Active Member
Joined
Mar 7, 2009
Messages
192
Likes
75
#2
ami broker use slow stochastik, my brokers trading software Trade tiger has values 3,5,3, fast stoch and is better, i want same stoch in amibroker, if i change values in amibroker, it still doest help. Any solution pls
 

pkgmtnl

Well-Known Member
Joined
Feb 25, 2009
Messages
759
Likes
433
#4

Guys,

Am Using Stochastic %D(15,3,3) and Stochastic %K(15,3)

When ever %K Crosses Above %D, it should give me an Buy alert and vice versa.

For the stock for which a buy or sell is given... if the crossover happens in the negative direction, it should give an Exit..

I should be able to Scan and Explore Using this..

This is not a stand alone strategy.... For SL and Target.. we have to use someother methods... Any idea for this.... :)

Anant sir, Hope you can help me :)

Regards,
Arvind


I hope this will help U,,

periods1 = Param( "Periods1", 25, 1, 200, 1 );
Ksmooth1 = Param( "%K avg1", 5, 1, 200, 1 );
Dsmooth1 = Param( "%D avg1", 5, 1, 200, 1 );


periods2 = Param( "Periods2", 25, 1, 200, 1 );
Ksmooth2 = Param( "%K avg2", 5, 1, 200, 1 );


Cond1 = Cross(StochK( periods2 , Ksmooth2),StochD( periods1, Ksmooth1, DSmooth1 ));

Buy = Cond1;

Cond2 = Cross(StochD( periods1 , Ksmooth1, DSmooth1 ),StochK( periods2 , Ksmooth2));

Filter = BUY OR Sell;

bye...
 

lasty66

Active Member
Joined
Mar 22, 2009
Messages
163
Likes
60
#5
I hope this will help U,,

periods1 = Param( "Periods1", 25, 1, 200, 1 );
Ksmooth1 = Param( "%K avg1", 5, 1, 200, 1 );
Dsmooth1 = Param( "%D avg1", 5, 1, 200, 1 );


periods2 = Param( "Periods2", 25, 1, 200, 1 );
Ksmooth2 = Param( "%K avg2", 5, 1, 200, 1 );


Cond1 = Cross(StochK( periods2 , Ksmooth2),StochD( periods1, Ksmooth1, DSmooth1 ));

Buy = Cond1;

Cond2 = Cross(StochD( periods1 , Ksmooth1, DSmooth1 ),StochK( periods2 , Ksmooth2));

Filter = BUY OR Sell;

bye...
Hi pkgmtnl..... dont y but the above code is giving syntax error when i try to insert on charts... pls rectify..
thanks
 

rinku4142

Active Member
Joined
Feb 3, 2008
Messages
103
Likes
94
Location
banana republic
#6
here is correct one
periods1 = Param( "Periods1", 25, 1, 200, 1 );
Ksmooth1 = Param( "%K avg1", 5, 1, 200, 1 );
Dsmooth1 = Param( "%D avg1", 5, 1, 200, 1 );


periods2 = Param( "Periods2", 25, 1, 200, 1 );
Ksmooth2 = Param( "%K avg2", 5, 1, 200, 1 );


Cond1 = Cross(StochK( periods2 , Ksmooth2),StochD( periods1, Ksmooth1, DSmooth1 ));

Buy = Cond1;

Cond2 = Cross(StochD( periods1 , Ksmooth1, DSmooth1 ),StochK( periods2 , Ksmooth2));
Sell= Cond2;

Filter = Buy OR Sell;
 

Similar threads

Broker Special Offers