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

[amibroker] calculating trend line values so as to backtest - AFL help needed



PureBytes Links

Trading Reference Links

Thanks to Dimitris I have the code that automatically draws trend 
lines but I cannot use that to backtest primarily because it uses the 
last value function or something to that effect.

Is there a workaround?

Here is what I am looking for 

pcond= mycondition
pcond1= pcond and H>most recent value of pcond

Using the formula for trend lines I can calculate the value of the 
line today.
However, I dont know how to find the values of the peaks and also the 
bars between them. any help would be much appreciated

TIA


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

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