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

Re: [EquisMetaStock Group] HHV(close,n)



PureBytes Links

Trading Reference Links

kut2k2

> So I'm left wondering what exactly LastValue(A) is good for.  The
> manual clearly insinuates that it acts like LastValue(A+PREV-PREV),
> even though it doesn't:

I've found it useful when an Input() function has two handle values (entry
delay and exit delay for example), and the values have to be split out
before they can be used. Having subjected the Input() value to Int() and/or
Frac() the seperated delay period  values  can no longer be used as the
"periods" constant unless wrapped in LastValue() first.

Why would I bother you ask? Because only 6 inputs are permitted per
indicator by MS and sometimes I cheat and put in more. See representative
code below.

Cp:=Input("Capital,   Entry / Exit Delays $ ## ",0,100033,5011);
Nd:=LastValue(Int(0.1+Frac(Cp/100)*10));
Xd:=LastValue(Cp-Int(Cp/10)*10);
Cp:=Int(Cp/100)*100;

Nd and Xd have now been reconstituted as constants - without LastValue() I
would be forced to use seperate Input() functions.

> "The formula mov(close,lastvalue(fml("Determine Periods")),s)
> calculates a moving average using the number of periods returned by
> the indicator named "Determine Periods"."

I've never seen this in my manuals. Can you tell me where where to look. I
have 7.0 EOD manual but the layout should be very similar to whatever
version you have.

> Apparently "Determine Periods" is only good for determining *constant*
> periods. :-P

In the example you give from the manual it sure looks that way to me.

> AmiBroker is looking better every day.

If only better tools would make me a better trader :)

Roy



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs from home.
Over 14,500 titles. Free Shipping
& No Late Fees. Try Netflix for FREE!
http://us.click.yahoo.com/BVVfoB/hP.FAA/uetFAA/BefplB/TM
---------------------------------------------------------------------~->

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/