Use Three Color in explore

iif
exploration
Tags: #<Tag:0x00007fb3da85c2e0> #<Tag:0x00007fb3da85c1a0>

#1

Hi all

I would like to ask if it possible to use three different color in Amibroker explore. For Ex:

MA10 , MA20 and MA30

if MA10 and MA20 > MA30 ColorLime.
if MA10 < MA20 and MA20 > MA30 ColorOrange.
if MA10 < MA30 ColorBlue.

Thank for any help


#2
C1 = MA(C,10)>MA(C,30) AND MA(C,20)>MA(C,30);
C2 = MA(C,20)>MA(C,10) AND MA(C,20)>MA(C,30);
C3 = MA(C,10)<MA(C,30);
CX = C1 OR C2 OR C3;	 


CC = IIf(C1,colorLime,
	 IIf(C2,colorOrange,
	 IIf(C3,colorBlue,colorDefault))); // Color of Condition


Filter  = CX;
AddColumn(CX,"Moving Average Crossovers",1.0,colorDefault,CC);


#3

Ok Thank you Sebastian..