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

[amibroker] Re: A question about "COND"



PureBytes Links

Trading Reference Links

Your cond2 is well written and says : you have a cross yesterday or 
the day before yesterday. Is this what YOU want to say ?
IB always help to see what you write

Cond2 = Cross(Signal(),MACD()) OR Ref(Cross(Signal(),MACD()),-1);
Plot(MACD(),"MACD",1,1);
Plot(Signal(),"SIGNAL",4,1);
PlotShapes(shapeUpArrow*Cond2,colorBlue);

Paste it in an empty IB window, set scaling to Automatic and just hit 
apply.
The blue arrows are plotted when cond2 is true, ie 1 or 2 bars AFTER 
the cross.
Dimitris Tsokakis
--- In amibroker@xxxxxxxxxxxxxxx, "gillesdeprez" <gillesdeprez@xxxx> 
wrote:
> In the following expression:
> Cond2 = Cross(Signal(),MACD())OR Ref(Cross(Signal(),MACD()),-1);
> the second part ("OR Ref etc") is not taken into account...
> Is there another way to express the same idea? BTW I don't get any 
> error message...
> TIA!
> Gilles


------------------------ 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/