logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
mixer  
#1 Posted : Wednesday, September 17, 2014 7:38:14 PM(UTC)
mixer

Rank: Newbie

Groups: Registered Users
Joined: 9/7/2014(UTC)
Posts: 2

I try to create indicator to show buy signal if recent low when stochastic cross up lower than previous low when the stochastic cross up .But it didn't work.

The formular is 

Lcv1:= LowestSince(1, Cross(Mov(Stoch(10,3),3,S),Stoch(10,3)), L);
Lcu1:=LowestSince(1, Cross(Stoch(10,3),Mov(Stoch(10,3),3,S)), L);
Lcv2:= LowestSince(2, Cross(Mov(Stoch(10,3),3,S),Stoch(10,3)), L);
Lcu2:=LowestSince(2, Cross(Stoch(10,3),Mov(Stoch(10,3),3,S)), L);
Lw1:=Min(Lcv1,Lcu1);
Lw2:=Min(Lcv2,Lcu2);
Lw:=If(Lw1<Lw2 ,1,0) ;
Buy:=Cross(Stoch(10,3),Mov(Stoch(10,3),3,S)) AND Lw=1; 

Buy;

Thanks

Edited by user Wednesday, September 17, 2014 7:39:13 PM(UTC)  | Reason: Not specified

Journ  
#2 Posted : Tuesday, October 21, 2014 4:10:12 PM(UTC)
Journ

Rank: Newbie

Groups: Registered Users, Subscribers
Joined: 10/21/2014(UTC)
Posts: 1

If I understand you correctly, the following will give you what you want. You'll want this in it's own Inner Window.

Sto:=Stoch(10,3);

StoMov:=Mov(Sto,3,S);

StoCross:=Cross(StoMov,Sto);


LastLow:= ValueWhen(2,StoCross,L);


BuySignal:=If(StoCross AND L < LastLow,1,0);

BuySignal;
mixer  
#3 Posted : Saturday, November 8, 2014 1:19:21 PM(UTC)
mixer

Rank: Newbie

Groups: Registered Users
Joined: 9/7/2014(UTC)
Posts: 2

Originally Posted by: Journ Go to Quoted Post
If I understand you correctly, the following will give you what you want. You'll want this in it's own Inner Window.

Sto:=Stoch(10,3);

StoMov:=Mov(Sto,3,S);

StoCross:=Cross(StoMov,Sto);


LastLow:= ValueWhen(2,StoCross,L);


BuySignal:=If(StoCross AND L < LastLow,1,0);

BuySignal;

thanks very much for your replies but it's not what i want. Do you know how to post picture in the forum? 

Edited by user Saturday, November 8, 2014 1:23:02 PM(UTC)  | Reason: Not specified

Users browsing this topic
Guest (Hidden)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.