Can we not nest if statements within OnCalculate? It's causing strange behavior for me. Thanks.
- Chart not opening or updating
- MODE_TICKVALUE returns 0 first run, second call is fine
- Need help counting consecutive profit orders and then resetting count after (x) amount of trades
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!
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 :)
Yes, you can nest "if" statements! You probably aren't doing it correctly! Show your code, if you want us to help!

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register