Yves,
Looks like you are trying to have a conditional return for both color and style in the same iif statement. Try writing separate condition statements for color and style. (See how much easier it is to diagnose with the code instead of a picture? If you just sent pics of the colored lines, I'd not have a clue and wouldn't bother to reply).
Peace and Justice --- Patrick
----- Original Message -----
Sent: Wednesday, January 13, 2010 11:18 AM
Subject: [amibroker] Problem with color or formula ???? [1 Attachment]
In the formula below
I'm write: IIf(MA20>=MA50,colorCustom12|styleLine|styleThick
When I'm copy that in AB
The color of my MA20 is not the same, see It( Capture.GIF )
WHY ?????????
Thank You
YLTech(Yves L.)
-------------------------------------------------------
_SECTION_BEGIN("MA20-50");
MA20= MA(C,20) ;
MA50= MA(C,50) ;
UpTrend= IIf(MA20>=MA50,colorCustom12|styleLine|styleThick,
colorPink|styleDashed|styleLine) ;
Plot (MA20,"MA20",UpTrend);
Plot (MA50,"Close",colorRed,styleLine);
_ SECTION_END();
--------------------------------------------------------
Merci YLTech ( Yves L. ) Le présent message et les documents qui y sont joints sont réservés exclusivement au destinataire indiqué. Il est strictement interdit d'en utiliser ou d'en divulguer le contenu. Si vous recevez le présent message par erreur, veuillez le détruire S.V.P. et nous en aviser immédiatement afin que nous puissions corriger nos dossiers. Merci. This message and the attached documents may contain privileged or confidential information that are intended to the addressee only. Any unauthorized disclosure is strictly prohibited. If you happen to receive this message by error, please delete it and notify us immediately so that we may correct our internal records. Thank you. yltech@xxxxxxxxxxca |