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

[amibroker] TJ: A question about COND function



PureBytes Links

Trading Reference Links

Hi Tomasz!
Say, is there anything wrong with the following line:
COND1=Cross(Signal(),MACD())OR Ref(Cross(Signal(),MACD()),-1);
Only the first part of the proposition is taken into account, is it 
forbidden to use OR into a COND function?
I join the whole formula below:
// INDICATOR BUILDER PART
Plot(MACD(),"MACD",1,1);
Plot(Signal(),"Signal",4,1);


COND1=Cross(Signal(),MACD())OR Ref(Cross(Signal(),MACD()),-1);
PlotShapes(shapeUpTriangle*COND1,colorYellow);// all COND1 before 
ExRem
COND2=Cross(Signal(),0);
PlotShapes(shapeSmallCircle*COND2,colorBlue);// all COND2 before Exrem
COND1=ExRem(COND1,COND2);COND2=ExRem(COND2,COND1);
G=COND1;
PlotShapes(shapeDownArrow*G,colorRed);
// AA PART
Filter=G;
AddColumn(C,"");
Sell=Filter;
I have tried everything that was within my (weak) habilities, Tomasz, 
you're my last hope *sigh*
TIA!!
Friendly,
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/