PureBytes Links
Trading Reference Links
|
Howdy Anthony,
The problem, as you probably know, is the cross function is producing an array which the if function will not accept.
The best way to go about this would be to use a series of writeif statements which will get you where you want to go.
Hope this helps,
GaryAnthony Faragasso <ajf1111@xxxxxxxx> wrote:
I am trying to have a conditional title on the custom chart....the following is not working....could someone help..
Thank you
Anthony
if (Cross(fast,slow))
{
Title=Name()+"\n"+"TARGET UP"+"\n ................."+"\n"+"Cross = "+WriteVal(ValueWhen(Cross(fast,slow),fast),1.2)+"\n"+"Trough1 = "+WriteVal(Trough1,1.2)+<FONT
color=#ff00ff size=2>"\n"+"points = "+WriteVal(ValueWhen(Cross(fast,slow),fast)-Trough1,1.2)+"\n"+"TargetUP = "+WriteVal((ValueWhen(Cross(fast,slow),fast)-Trough1)+ValueWhen(Cross(fast,slow),fast),1.2)+<FONT color=#ff00ff
size=2>"\n" +" Difference = "+WriteVal(fast-slow,1.2)+"\n"+"Diff from yesterday ="+WriteVal((fast-slow)-Ref(fast-slow,-1),1.2);
}
else if (Cross(slow,fast))
{
Title=Name();
}
---Outgoing mail is certified Virus Free.Checked by AVG anti-virus system (http://www.grisoft.com).Version: 6.0.583 / Virus Database: 369 - Release Date: 2/10/2004Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend 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
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster.
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
Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/amibroker/
To unsubscribe from this group, send an email to:amibroker-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
|