stitchtrader:
Hi ☀
I wanted to change the line color from Input Variables, but I couldn't.
I could do that with #property indicator_color1, though.
How should I do this from Input Variables and PlotIndexSetInteger(0,PLOT_LINE_COLOR,~) ?
#property indicator_color1 clrBlue,clrRed #property indicator_width1 4 double Buffer[]; double BufferColor[]; input color InpColor1 = clrGreen; input color InpColor2 = clrOrange; void OnInit() { SetIndexBuffer(0,Buffer,INDICATOR_DATA); SetIndexBuffer(1,BufferColor,INDICATOR_COLOR_INDEX); PlotIndexSetInteger(0,PLOT_LINE_COLOR,0,InpColor1); PlotIndexSetInteger(0,PLOT_LINE_COLOR,1,InpColor2);
stitchtrader:
Thank you!
But I don't get it (@σ@;
Can this not be omitted?
Please tell me the details
I only uncommented this line (and change default colors). This line is mandatory.
#property indicator_color1 clrBlue,clrRed
angevoyageur:
I only uncommented this line (and change default colors). This line is mandatory.
Thank you!

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Hi ☀
I wanted to change the line color from Input Variables, but I couldn't.
I could do that with #property indicator_color1, though.
How should I do this from Input Variables and PlotIndexSetInteger(0,PLOT_LINE_COLOR,~) ?