PureBytes Links
Trading Reference Links
|
Sam
> I don't understand the basis behind how the LastValue ( J + PREV -
> PREV ) converts J into a constant (or exactly what that means to
> MS).
> Although this certainly works as you've outlined, I cannot get it to
> work for my specific case:
I don't understand it either but it can work.
> EMAPERIODS:= Fml(".EMAPERIODS"); {where EMAPERIODS is a constant
> (8)}
>
> J:= LastValue( EMAPERIODS + PREV - PREV );
>
> Mov( C , J , E )
>
> Error message: This variable or expression must contain only
> constant data.
>
> Any ideas why your trick won't work for my case?
What I've found is that the code containing "LastValue(X+PREV_PREV)" must be in the last line of
code for the formula and it must be an un-named variable (can be called by Fml() but not FmlVar() ).
Even this might not work in every case but you should try to make the last line of your formula look
like this
Mov(C,LastValue( EMAPERIODS + PREV - PREV ),E);
The following test example works for me.
EMAPERIODS:=ADX(14);
Mov(C,LastValue( EMAPERIODS + PREV - PREV ),E);
Roy
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/equismetastock/
<*> To unsubscribe from this group, send an email to:
equismetastock-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|