app-trader:
Hi,
I coded my first indicator. I am trying to show the 2 values of the indicator in one seperate values with 2 separate lines. but only the first line is drawn. The 2nd Buffer contains the correct values and one can see the values in the data window. just the line is not drawn.
I guess there is a very easy solution, but since it is my first own code I can't find the problem
Please help me out. thanks!
Hi
You also need to define the number of indicator plots and line types, see this example.
I think this will solve your problem.
#property indicator_separate_window #property indicator_buffers 2 #property indicator_plots 2 #property indicator_type1 DRAW_LINE #property indicator_color1 clrAqua #property indicator_style1 STYLE_DASHDOTDOT #property indicator_width1 1 #property indicator_label1 "USD" #property indicator_type2 DRAW_LINE #property indicator_color2 clrYellow #property indicator_style2 STYLE_DASHDOTDOT #property indicator_width2 1 #property indicator_label2 "EUR"

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 coded my first indicator. I am trying to show the 2 values of the indicator in one seperate values with 2 separate lines. but only the first line is drawn. The 2nd Buffer contains the correct values and one can see the values in the data window. just the line is not drawn.
I guess there is a very easy solution, but since it is my first own code I can't find the problem
Please help me out. thanks!