That's because when you are using this statement :
long subchart_id=ObjectGetInteger(0,name,OBJPROP_CHART_ID);
Your "mini chart" is not yet created.
That's because when you are using this statement :
Your "mini chart" is not yet created.
Take a look again ... it is there !
See picture below
Take a look again ... it is there !
See picture below
Ok, then add error processing and check the returned code of ChartIndicatorAdd().
You cannot add a MACD indicator on a main window, you cannot add an indicator on a non-existent sub-window.
Ok, then add error processing and check the returned code of ChartIndicatorAdd().
You cannot add a MACD indicator on a main window, you cannot add an indicator on a non-existent sub-window.
Please accept my apologies in late answer.
I have solved the problem. It was a sub window error number.
The problem now is that Strategy Tester does not display the mini chart sub windows while the normal operation shows it normally. Any idea ? (pict attached)
Regards.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi there !
Can someone please help here. I am trying to add an indicator with no sucess.