I have a pproblem with Amibroker
I want to show EMA50 line in my chart.
I make a parameter toggle, so i can choose, to show this EMA50 line or not from parameter window.
But, the program can not run as I want.
after the chart show, then I show the amibroker parameter window, and try to change the ShowP50 to "yes" and "no". But it seems that the EMA50 can not appear and disappear as i want.
I still learn AFL.
so can someone help me to fix my code below ?
Thanks.
my code is :
========
ShowPeriode50 = ParamToggle("ShowP50","No|Yes",1);
Plot(C,"",colorBlack,styleCandle);
if (ShowP50 = 1)
{ Plot(EMA(C,50),"EMA 50",colorViolet,styleLine);
};
==========
I want to show EMA50 line in my chart.
I make a parameter toggle, so i can choose, to show this EMA50 line or not from parameter window.
But, the program can not run as I want.
after the chart show, then I show the amibroker parameter window, and try to change the ShowP50 to "yes" and "no". But it seems that the EMA50 can not appear and disappear as i want.
I still learn AFL.
so can someone help me to fix my code below ?
Thanks.
my code is :
========
ShowPeriode50 = ParamToggle("ShowP50","No|Yes",1);
Plot(C,"",colorBlack,styleCandle);
if (ShowP50 = 1)
{ Plot(EMA(C,50),"EMA 50",colorViolet,styleLine);
};
==========