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 -- Ignore unavailable to you. Want to Upgrade?


To: bdog who wrote (3197)7/31/1999 4:48:00 PM
From: David Raine  Read Replies (1) | Respond to of 4056
 
Bdog and all,

I've been flailing away at this for a while now…, time to ask for some help.

I would like to write a formula based on a series of binary waves that will only issue a buy signal if the resulting wave has been at –4 for 10 or more of the previous 20 bars. So far, the best I've come up with is to duplicate the following twenty times, changing the REF value each time, then adding them all up at the end.

If( Ref((Fml( "BINARY WAVE #1" ) +
Fml( "BINARY WAVE #2" ) +
Fml( "BINARY WAVE #3" ) +
Fml( "BINARY WAVE #4")),-1)=-4,1,0

That works, but I'm sure there's a simpler and more elegant way to accomplish it.

Any thoughts will be appreciated.

David Raine
Vancouver