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 : Technical Analysis - Beginners

 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext  
To: Chris G. who wrote (7335)12/28/1997 1:44:00 PM
From: Craig DeHaan  Read Replies (1) of 12039
 
Chris,
You'll need to use the alert() function to capture the delayed effects of any non-simultaneous signals within multi-conditional parameters as you described with the cross function. Otherwise its a one period all or none proposition. Richard clarified this for me a few weeks ago in the Metastock thread. Read back to mid November for details.

Also from Metastock help files:

Using the Alert() Function--
The alert() function is used in conjunction with other functions to extend a true signal for a specified number of periods. The signal is held true over the specified number of periods even if another trade is generated.
The following example illustrates the use of the alert() function:

Enter Long: RSI(14) < 30 AND alert(VOLUME > 500,3)

If this were entered as the Enter Long rule, the system would enter a long position when the RSI was less than 30 and the volume had been greater than 500 at any time over the previous three time periods. The "VOLUME > 500" condition holds true over the entire three time periods even if the volume drops below 500 during that three period time span.

If you removed the alert() function in the above example, both conditions (i.e., RSI(14) < 30 and VOLUME > 500) would have to be true simultaneously in order for the Enter Long signal to be generated. By using the alert() function, a true condition generated by the "VOLUME > 500" condition is extended over a three period time span.

Good luck,
Craig
Report TOU ViolationShare This Post
 Public ReplyPrvt ReplyMark as Last ReadFilePrevious 10Next 10PreviousNext