PureBytes Links
Trading Reference Links
|
Yngvi:
I cant find my V5.11 manual, but I think previous versions did have the
previous function, it was called "p".
Lionel
-----Original Message-----
From: Al Taglavore <altag@xxxxxxxxxxxx>
To: metastock@xxxxxxxxxxxxx <metastock@xxxxxxxxxxxxx>
Date: Wednesday, August 26, 1998 11:27 PM
Subject: Re: Formula Help-MS ver 5.11
>Yngvi Hardarson wrote:
>>
>> 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)
>Yngvi wrote:"....
>
>> 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
>============
>I have an inner window set up with 1,3,and 10 period simple mov avg of
>the ATR. This lets me keep things uniform. Realize, as I have stated
>many times on this List, formulas and explorations and syntax are NOT my
>strong points.
>
>Al Taglavore
>
|