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

RE: [amibroker] TJ: A question about COND function



PureBytes Links

Trading Reference Links




<FONT face=Arial color=#0000ff 
size=2>Gilles,
It is 
doing as you ask. Note your yellow arrows all run in pairs. the first being the 
actual cross then the second occurring exactly one bar after. The second arrow 
coincides with the OR part of your condition........
<FONT face=Arial color=#0000ff 
size=2> 
<IMG alt="" hspace=0 
src="gif00516.gif" align=baseline border=0>
<SPAN 
class=383524421-13092003> 
The 
blue circle is the cross of cond2 and the red arrow is the cross of G. Since 
you  have prohibited further plotting of cond "G" until the next occurrence 
of cond2 you must wait until the sig line again crosses up from 0. to see this 
work in AA simply comment out your exrem version of cond 1 and 2, set your n 
last days to a couple of hundred bars and run explore. You will see each of your 
yellow arrows accounted for...
 
Regards, 
Jayson 
<FONT face=Tahoma 
size=2>-----Original Message-----From: gillesdeprez 
[mailto:gillesdeprez@xxxxxxxxx]Sent: Saturday, September 13, 2003 
10:25 AMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] 
TJ: A question about COND functionHi 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 
PARTPlot(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 
ExRemCOND2=Cross(Signal(),0);PlotShapes(shapeSmallCircle*COND2,colorBlue);// 
all COND2 before 
ExremCOND1=ExRem(COND1,COND2);COND2=ExRem(COND2,COND1);G=COND1;PlotShapes(shapeDownArrow*G,colorRed);// 
AA PARTFilter=G;AddColumn(C,"");Sell=Filter;I have tried 
everything that was within my (weak) habilities, Tomasz, you're my last hope 
*sigh*TIA!!Friendly,GillesSend 
BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
suggest@xxxxxxxxxxxxx-----------------------------------------Post 
AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
group FAQ at: <A 
href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Your use of Yahoo! Groups is subject to the <A 
href="">Yahoo! Terms of Service. 







Yahoo! Groups Sponsor


  ADVERTISEMENT











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 the Yahoo! Terms of Service.


Attachment: Description: ""