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

Re: [EquisMetaStock Group] CBL Trailing Stop Loss, drawn for "x" periods only



PureBytes Links

Trading Reference Links

Mike

I've had a think about your question and I think you will see the answers in
the code I've just posted. You appeared to have the impression that you
could not name the PREV variable. Indeed you usually can although there are
odd situations where doing so will cause a problem. If the PREV variable is
not the last variable then you have no choice but to name it or create
another indicator and call the output from the first just as you have done.

It's best to keep everything inside one indicator where you can because
Fml() and FmlVar() calls also create extra overheads, though not to the same
extent as PREV. Naming every variable within an indicator gives greater
flexibility, and creating a series of small variables can often make code
easier to work with than trying to achieve everything within just one
un-named variable.

Roy

> I can create a new formula with your 2 lines below, and using the fml()
> function can call the output from my formula... that all works perfectly!
> Thankyou very much for your assistance.
> Following on though as you indicate below, is it actually possible to
> reference and use the output from within the same formula? I've tried to
> figure it out, but am now asking the dumb question of the day... sorry, is
> there a return() function or something one can use to call the output?




------------------------ 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/ybSovB/hP.FAA/3jkFAA/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/