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

[RT] EasyLanguage question



PureBytes Links

Trading Reference Links

hi i'm a newbie, I 'm trying to write a pragram in
Easylanguage.
I want to write a volatility stop based on the weekly
volatility (true range) at the time the trade was
initiated.
The way i wrote it is for instance :

ExitLong("Lstop") from entry("longT") AT$ Close of
today-volatility(length) of data2 stop;

but this uses today's volatility instead of the
volatility of the day the trade was initiated.
I understand that "AT$ close of today" returns the
price at the day the trade was made. But why does it
return the volatility of today instead of the one of
the day the trade was entered?
What would be the correct way to write it?
Any help would be appreciated,
Thanks,
Charles.





__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Is your business paying to much?
Affordable insurance and benefits packages for Less.
http://us.click.yahoo.com/jCP0DB/E.mEAA/jd3IAA/zMEolB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
realtraders-unsubscribe@xxxxxxxxxxxxxxx

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/