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

[amibroker] ATRStudy and some questions



PureBytes Links

Trading Reference Links

Hi there , complete AB newbie...evaluating it as we speak.  Seems quite 
decent thus far.

I have a few questions about the ATRStudy system posted a whule ago in 
the AFL library.  There is a comment there saying that the fellow 
suspects it is suffering from crystal ball effect. however is the guy's 
reasoning correct?    His comment is:

http://amibroker.com/library/detail.php?id=135
****************************************************
the BuyPrice and SellPrice:
===>BuyStop = Ref(Graph8,-1)+ ticker;
===>BuyPrice = Max(BuyStop,Low);

If I am reading this correctly if BuyStop is less than the low for the 
day the BuyPrice is set to the low, but we can't buy at the low for the 
day because the Buy is determined by the closing price.
****************************************************


If I remove the Max() on the BuyPrice the system doesnt change, which 
makes sense to me....since the buy prices are always within the range of 
the low/high for the day.

It seems to me it suffers from the effect because the following assume 
the closing price, do they not?  When graphing is the current day being 
used or the previous?  I'm a bit confused on that.

    Buy = Cross(C,Graph8) AND C>Graph9 AND LinRegSlope(EMA(C,17),2)>0;
    Sell = Cross(Graph8,C) AND LinRegSlope(C,2)<0;

Is it possible to make the Buy price be the avgof the next days 
low/high?  Or perhaps the opening price of the next day.  That would be 
for back-testing purposes since obviously I wont get a buy signal from 
the program as is until the closing price for the day is know, by which 
point it is of course too late to buy at the price the system figured 
was "The Price".  Same goes for selling.

It seems to me based on the running intraday price one could calculate 
the graph on the fly and have this system work well by watching the 
graph crossing....or am I missing a layer of complication that 
implicitly needs the EOD data?

Thanks for any clarification





------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs Online - Over 14,500 titles.
No Late Fees & Free Shipping.
Try Netflix for FREE!
http://us.click.yahoo.com/Tq9otC/XP.FAA/3jkFAA/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/