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

Notification

Icon
Error

Options
Go to last post Go to first unread
Leverage  
#1 Posted : Wednesday, July 22, 2015 1:41:11 PM(UTC)
Leverage

Rank: Advanced Member

Groups: Registered, Registered Users, Subscribers, Unverified Users
Joined: 1/25/2010(UTC)
Posts: 44
Location: Rome, IT

Hi guys,

I read an expression of a Metastock expert that returns buy and sell signals.

Below the Sell expression:

mystoch:= (Mov(Stoch(13,8),3,S)-50)-(Mov(Stoch(4,3),2,S)-50);
SELL:= Ref(mystoch,-1)>30 AND Ref(mystoch,-1)<40 AND Ref(mystoch,-1)-Ref(mystoch,-2)>mystoch-Ref(mystoch,-1);
SELL=1 AND BarsSince(Ref(SELL,-1)=1)>5

How can I translate in word the last row of this expression?

Thank you

MS Support  
#2 Posted : Wednesday, July 22, 2015 6:37:46 PM(UTC)
MS Support

Rank: Advanced Member

Groups: Moderators, Registered, Registered Users, Subscribers
Joined: 10/8/2010(UTC)
Posts: 1,960

Thanks: 91 times
Was thanked: 155 time(s) in 150 post(s)
Are you looking for an explanation of the last line? It basically breaks down as follows SELL=1 (This means the Sell condition defined above is true) AND BarsSince(Ref(SELL,-1)=1)>5 (This means that the # of bars since the sell condition was last true is at least 5 bars ago.
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.