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

Re: Formula Help-MS ver 5.11



PureBytes Links

Trading Reference Links

At 01:27 PM 26-08-98 -0500, you wrote:
>I do need some formula help.  I have a method that I have been trading with
>some success, and, like all traders, I want to adjust (tinker) with it to
>test the parameters.
>
>I want to enter long when the open is "n" below the previous day's close
>and then trades "n" above the previous day's close.  If today's H+L is
>equal to or greater than the 10 day ATR, then no entry.
>The profit target will be 10 da ATR-(L+previous day's close).  The exit
>will be the profit target or MOC.
>
>I can and have traded this visually, but I need to test the method for
>greater confidence and so that I can establish stop values, i.e. save my
>southernmost extremity.  Again, I have ver 5.11, so I do not have the
>"prev" function.  What I have done, does not return a trade result:
>ENTER LONG
>When(O+(Mov(ATR(10),1,S )*.250 ) < Ref(C,-1) AND 
>O+(Mov(ATR(10),1,S ) *.125)>Ref(C,-1)) 
>
>Where have I gone wrong?
>
Al

The above Enter Long condition seems to translate to pseudocode

When
O+X*2 < Ref(C,-1) AND O+X > Ref(C-1)
where
X=Mov(ATR(10),1,S)*0.125

This won't work unless X is negative which the ATR will not become.

Given what you put forth in your statement above it seems to me that you
should have written (translated into pseudocode):

When
O+n < Ref(C-1) AND H+n > Ref(C-1)

where "n" is the same as you refer to above. 

Do I understand your problem correctly?

BTW why do you use Mov( . , 1 , .) since a one period average is simply the
number you are averaging, i.e. the ATR(10)??

Best regards,
Yngvi Hardarson