Download MetaTrader 5

Nested ifs in OnCalculate

To add comments, please log in or register
Charles Stangor
251
Charles Stangor  
Can we not nest if statements within OnCalculate?  It's causing strange behavior for me.  Thanks.
Fernando Carreiro
3916
Fernando Carreiro  
cstangor: Can we not nest if statements within OnCalculate?  It's causing strange behavior for me.  Thanks.
Yes, you can nest "if" statements! You probably aren't doing it correctly! Show your code, if you want us to help!
Charles Stangor
251
Charles Stangor  
Fernando Carreiro:
Yes, you can nest "if" statements! You probably aren't doing it correctly! Show your code, if you want us to help!
Fernando, yes, you're probably right.  Let me experiment and thanks for the offer.  I may be back :)
To add comments, please log in or register