SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Strategies & Market Trends : Metastock 6.0 for Window

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: Chris G. who wrote (1627)2/24/1998 11:55:00 PM
From: FreedomForAll  Read Replies (1) of 4056
 
Chris,
I may also not understand, but I think you've said you want to exclude trading when the stoch has gone to or above 80 more than once in the past 10 days.

(you said:Good trades happen when it 'just hits' the 80 line. But I want to eliminate trades that have been at, or above the 80 signal too long.)

You could use a binary to count the number of days and then reject any over 1.

Create an indicator with the following and it will tell the number of times the stoch has been at 80 or higher in the previous 10 bars.

If(Ref(Stoch(13,5),-1)>=80,1,0)+
If(Ref(Stoch(13,5),-2)>=80,1,0)+
If(Ref(Stoch(13,5),-3)>=80,1,0)+
If(Ref(Stoch(13,5),-4)>=80,1,0)+
If(Ref(Stoch(13,5),-5)>=80,1,0)+
If(Ref(Stoch(13,5),-6)>=80,1,0)+
If(Ref(Stoch(13,5),-7)>=80,1,0)+
If(Ref(Stoch(13,5),-8)>=80,1,0)+
If(Ref(Stoch(13,5),-9)>=80,1,0)+
If(Ref(Stoch(13,5),-10)>=80,1,0)

(Then use the indicator in the entry calculations.)
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext