Download MetaTrader 5

how many buffur may used in an indicator ?

To add comments, please log in or register
yalewang
605
yalewang 2014.12.15 04:30 
how  many  buffur may used in an indicator ? in updated MQL ?
honest_knave
Moderator
2395
honest_knave 2014.12.15 06:11  
yalewang
605
yalewang 2014.12.15 06:50  
int OnInit()
  {
//--- indicator buffers mapping

   IndicatorBuffers(512);

.........................................................

?

whroeder1
14740
whroeder1 2014.12.15 14:00  
YALEWANG: how many buffur may used in an indicator ? in updated MQL ?
honest_knave: 512
YALEWANG: ?
In the link provided, what part of

Note

The amount of buffers cannot exceed 512 and be less than the value set in #property indicator_buffers.
was unclear?
yalewang
605
yalewang 2014.12.15 14:11  

yes ,thanks

i made an indicator ,use 30  buffurs , it may may pass compile , but no line showed ,on chart .

honest_knave
Moderator
2395
honest_knave 2014.12.15 14:44  

Did you declare 30 dynamic arrays, bind each buffer to an array, specify the style for each buffer, and finally assign values to the buffers?

Everything is rather vague without any code... 

To add comments, please log in or register