[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: KenMROFC



PureBytes Links

Trading Reference Links

Hi Thomas,

The txt of KenMORFC.eld follows;

{[LegacyColorValue = true]; }

{ Fast MRO function, with unlimited lookback. Only finds the most recent instance, and requires a unique ID to identify each test. Maximum number of MRO tests in one strategy: 25. This can be increased by increasing the size of the TestTrueBar array.}

inputs: TestID( numericsimple ),{a unique integer to identify each test}
Test( truefalsesimple ),
MaxBack( numericsimple ); { 0 = unlimited lookback }

arrays: TestTrueBar[25]( 0 ); { contains the most recent bar number from when the function was true }

vars: RetVal( 0 ); { return value from this function }

if Test then
TestTrueBar[TestID] = currentbar ;

if TestTrueBar[TestID] = 0 then { if the bar number is 0, then the test has never been true }
RetVal = -1
else
RetVal = CurrentBar - TestTrueBar[TestID] ;

if MaxBack > 0 and RetVal > MaxBack then
RetVal = -1 ;

KenMROFC = RetVal ;

{ Written by Ken Greenwood }

Larry


Thomas J. Festa wrote:
Can someone post the KenMROFC in 2000i format not .eld
Thomas J. Festa, CMT
Technical Analysis Trading Systems Developer
Proprietary Trader - Equities & Stock Index Futures
Hold Brothers, LLC
230 Headquarters Plaza
East Tower, 2nd Floor
Morristown, NJ 07960
Cell: (908) 581-8880

Confidentiality Notice: The information contained in this e-mail and any
attachments may be legally privileged and confidential. If you are not
an intended recipient, you are hereby notified that any dissemination,
distribution, or copying of this e-mail is strictly prohibited. If you
have received this e-mail in error, please notify the sender and
permanently delete the e-mail and any attachments immediately. You
should not retain, copy or use this e-mail or any attachment for any
purpose, nor disclose all or any part of the contents to any other
person.











  • References: