Nested ifs in OnCalculate
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!