- Creating a class - MQL4/MQL5 Wizard
- Modifying a Position - Trade - MetaTrader 5 for iPhone
- Modifying a Position - Trade - MetaTrader 5 for Android
Hi, is it possible to set up a preprocesor conditional directive to #property indicator_buffers...? I have a BaseClass, a Class and a SubClass...how can I determine the number of buffers from the Class depending on what objec is created in the SubClass...? is it possible to acces the indicator buffers in any way?.Thanks.
I hope help you.
I don't know if you can, but I define the buffers at the start and later I set the buffer like INDICATOR_DATA or INDICATOR_CALCULATIONS you can use too PlotIndexSetInteger(buffer_number,PLOT_DRAW_TYPE,DRAW_NONE)...
I hope help you.
Translation:
Hi Daniel ... I see Spanish're the same as me ..... my problem is that the user can change the colors (in the Colors tab) from the interface that appears on the platform indicator properties must be defined internal buffers, this can only be done with the instruction #property indicator_buffers and being a constant preprocessor I can not access it from the program when it starts, I can define multiple buffers and change bright colors and other properties but it has to be in Inputs tab and is not very smart ... I would like to access the colors from the color tab is adequate but can not find the way to hacerlo.Un greeting and thanks for your comment.
Now I understand you the only way I know it's to define all buffers at the first and inOnit depending of the number of buffers that you want to show to select on entry parameters numbers of buffers and change this in OnInit with PlotIndexSetInteger(buffer_number,PLOT_DRAW_TYPE,DRAW_NONE), the problem you will have all the these buffers in the properties colors the buffers you want to show and not. I think the properties interface it's not responsive if you change something in entry parameters it's not going to show this buffers at color properties.
I would make a simple window interface that when you click on the indicator show a little window that change the number of buffers and colors with PlotIndexSetInteger(0,PLOT_LINE_COLOR,clrAqua); or something like this.
Sorry but my knowledgment doesn´t go farther.
Now I understand you the only way I know it's to define all buffers at the first and inOnit depending of the number of buffers that you want to show to select on entry parameters numbers of buffers and change this in OnInit with PlotIndexSetInteger(buffer_number,PLOT_DRAW_TYPE,DRAW_NONE), the problem you will have all the these buffers in the properties colors the buffers you want to show and not. I think the properties interface it's not responsive if you change something in entry parameters it's not going to show this buffers at color properties.
I would make a simple window interface that when you click on the indicator show a little window that change the number of buffers and colors with PlotIndexSetInteger(0,PLOT_LINE_COLOR,clrAqua); or something like this.
Sorry but my knowledgment doesn´t go farther.
This is an English only forum please Jose.
Translation:
Hi Daniel ... I see Spanish're the same as me ..... my problem is that the user can change the colors (in the Colors tab) from the interface that appears on the platform indicator properties must be defined internal buffers, this can only be done with the instruction #property indicator_buffers and being a constant preprocessor I can not access it from the program when it starts, I can define multiple buffers and change bright colors and other properties but it has to be in Inputs tab and is not very smart ... I would like to access the colors from the color tab is adequate but can not find the way to hacerlo.Un greeting and thanks for your comment.
HI Stuart,...so sorry for the use of an inappropiate language.it will never hapen again.Greetings.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use