[amibroker] how to setbackgroundcolor

2010-05-22 Thread TimurLangit
Hi All,   I am trying to change background color if C>EMA200, but why background color is not changing as if the if condition is fail.   IIf(C>EMA(C,200),SetChartBkColor(colorViolet),SetChartBkColor(colorWhite)); This is my third question since I join this group. If I still can not get your hel

Re: [amibroker] how to setbackgroundcolor

2010-05-22 Thread wavemechanic
Read the following regarding your coding mistake: http://www.amibroker.com/guide/a_mistakes.html#IIF - Original Message - From: TimurLangit To: AmiBroker Group Sent: May 22, 2010 12:48 PM Subject: [amibroker] how to setbackgroundcolor Hi All, I am trying to change

Re: [amibroker] how to setbackgroundcolor

2010-05-23 Thread TimurLangit
ke: http://www.amibroker.com/guide/a_mistakes.html#IIF - Original Message - From: TimurLangit To: AmiBroker Group Sent: May 22, 2010 12:48 PM Subject: [amibroker] how to setbackgroundcolor Hi All, I am trying to change background color if C>EMA200, but why background color is not changing

Re: [amibroker] how to setbackgroundcolor

2010-05-23 Thread wavemechanic
rtbkcolor( lastvalue(color)); - Original Message - From: TimurLangit To: amibroker@yahoogroups.com Sent: May 23, 2010 7:37 PM Subject: Re: [amibroker] how to setbackgroundcolor Thank you for your reply. However I tried so many ways but still could not get what I want. If anyo

Re: [amibroker] how to setbackgroundcolor

2010-05-24 Thread TimurLangit
result = IIf( Close > 10, 7, 9 ); // CORRECT So, color = iif( c > ema( c, 200 ), colorred, colorwhite); setchartbkcolor( lastvalue(color)); - Original Message - From: TimurLangit To: amibroker@yahoogroups.com Sent: May 23, 2010 7:37 PM Subject: Re: [amibroker] how to setbackgro