Download MetaTrader 5

MQL4 OnCalculate question

To add comments, please log in or register
Brian Springer
16
Brian Springer 2016.05.13 16:16 

Have a question about a error I am getting while using the OnCalculate. Its only a warning, but seems to hold up the function when loading the script onto the chart. Any hints to help fix this warning?

 

'Working Project HighLow Timeframe2.mq4' Working Project HighLow Timeframe2.mq4 1 1

two OnCalculate are defined. OHLC version will be used 0 0

 0 error(s), 1 warning(s), compile time: 260 msec 1 2

 

Thanks for any help...

 

Brian 


Marco vd Heijden
Moderator
4733
Marco vd Heijden 2016.05.13 16:18  
Brian Springer:

Have a question about a error I am getting while using the OnCalculate. Its only a warning, but seems to hold up the function when loading the script onto the chart. Any hints to help fix this warning?

 

'Working Project HighLow Timeframe2.mq4' Working Project HighLow Timeframe2.mq4 1 1

two OnCalculate are defined. OHLC version will be used 0 0

 0 error(s), 1 warning(s), compile time: 260 msec 1 2

 

Thanks for any help...

 

Brian 


two OnCalculate are defined.


SO you look for the two OnCalcualte() functions and either merge then to one or discard the empty one.

Brian Springer
16
Brian Springer 2016.05.13 16:25  
Marco vd Heijden:

two OnCalculate are defined.


SO you look for the two OnCalcualte() functions and either merge then to one or discard the empty one.

Thank you for the reply. but need more, still loss.

Also, when reading MQL4 Reference... found  Note: if OnCalculate returns zero, then the indicator values are not shown in the DataWindow of the client terminal.

Not sure if this return of zero is holding me up...

Marco vd Heijden
Moderator
4733
Marco vd Heijden 2016.05.13 18:32  
Maybe some code will help.
To add comments, please log in or register