Is there a way to set property dynamically in mql5?

jaffer wilson
3250
jaffer wilson  

Hello everyone,

I was trying to create an indicator which takes input from the file and display output on MT5. I have following sort of array:  

7.410366728129460512e-01,7.443146896127785794e-01
7.408317967629578504e-01,7.512804753124342483e-01
7.537389879123104208e-01,7.531243597623387132e-01
7.551731202622455896e-01,7.523048555623859102e-01
7.508707232124578468e-01,7.482073345625863681e-01
7.488219627125616285e-01,7.475927064126182131e-01
7.494365908625262307e-01,7.484122106125710161e-01
7.506658471624696460e-01,7.494365908625226780e-01
7.490268387625498292e-01,7.465683261626665512e-01
7.480024585126017200e-01,7.469780782626500582e-01
7.484122106125781215e-01,7.469780782626500582e-01
7.486170866625698750e-01,7.477975824626099666e-01
7.500512190124979384e-01,7.488219627125545230e-01
7.488219627125616285e-01,7.465683261626665512e-01
7.492317148125344772e-01,7.482073345625863681e-01
7.480024585126017200e-01,7.457488219627101955e-01

I got success in display single row. But sometimes the other program gives two rows as mentioned above, But I did not find anything, which could draw the lines for the dynamic changes in the input file. As you see above I have to set the property for displaying 2 buffers as I am separately drawing lines for the both columns. But once I set the property to 1 buffer I could automate the plotting.   

#property indicator_separate_window

#property indicator_buffers 8

#property indicator_plots 1

Now I can pot only 1 buffer what if I want to display different buffers automatically without making much changes to my code. Is there any way out for this please let me know.