Amibroker - Background color change with EMA

#1
Hi All,
I have a question -- Is it possible that the background color of amibroker chart changes by itself if the price comes below 20 EMA. For Example:

Price Candle below 20 EMA - Background color RED

Price Candle Above 20 EMA - Background color GREEN
 

ztop

New Member
#2
you would have to use: if & else functions .
example:
crossup= c>ema(c,20);
if(StrToNum(NumToStr(crossup)))bgColor = colorGreen;
else bgColor = colorRed;
SetChartBkGradientFill( colorBlack, bgColor);


cheers
 
#4
Please Guide :

1) How to change Amibroker's basic window background to grey? I know how to change chart background but don't know about Amibroker's basic background that we can notice when we hide the chart or resize it or which appears when we have not loaded any chart.

2) How to get only TILE ? I dont want vertical tile or horizontal. ONLY TILE ?

3) How to get bar chart as default ? I have to change again and again from toolbar>view>price chart style. I want to change it permanently to bar chart- like whenever i run amibroker it should display only bar chart.
 

Similar threads