First I apologise for my poor English.
I'm newbie on Multicharts and I would like to test a very simple indicator, here is the code
Code: Select all
variable : Color(red) ;
Color = AB_Color_Chart(Close, Green, Red);
Plot1(Close , "close ", Color) ;
Plot2[1] (Close[1] , "my close", Color) ;
Code: Select all
// AB_Color_Char
inputs :
Tableau(NumericSeries), // values studie
ColorUp(numeric), // color when value >= value[1]
ColorDown(numeric); //color when value < value[1]
if Tableau >= Tableau[1] then
AB_Color_Chart = ColorUp
else
AB_Color_Chart = ColorDown;
Color uses with plot2 works well (but plot2 does'nt print close[0]) and when I use Color with plot1, it does'nt.
How can I manage the colors for that it works for close ?
Thank you all
Joel