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 : 11 years ago
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 11 years ago  | Reason: Not specified

Journ  
#2 Posted : 10 years ago
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 : 10 years ago
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 10 years ago  | 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.

information You have 1 unread message(s) in your Inbox.