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

Re: help w/ omega code



PureBytes Links

Trading Reference Links

Your approach will run afoul of the scaling of the chart. I use Rate Of Return
on Linear Regression lines to deal with this problem. Here are 3 different
formulas which were given to me. I use Calculated ROR.

'           SimpleROR   = ((LREnd-LRBegin)/Abs(LRBegin)) * (amcTRADEDAYS_YEAR /
LRLength in trade days)
'
'           CompoundROR = ((LREnd / LRBegin) ^ (amcTRADEDAYS_YEAR / LRLength in
trade days)) - 1
'                   NOTE: Negative number can not be raised to fractional power
'
'           Calculated ROR = (Sum((LRCurr - LRPrev) / LRPrev) / LRLength) *
amcTRADEDAYS_YEAR

Earl

-----Original Message-----
From: Tullman, Mitch <MitchT@xxxxxxx>
To: 'REALTRADERS@xxxxxxxxxxxxxx' <REALTRADERS@xxxxxxxxxxxxxx>
Date: Thursday, May 14, 1998 9:19 AM
Subject: help w/ omega code


>Hi,
>
>
>   Does anyone know how to code this idea??
>
>If the angle of the moving avg is greater than 35% then buy the first
>.382% retracement
>of the underlying
>
>
>don't even know if it's possible....thanks, Mitch
>