Forum

Incorrect tick counting for non-forex symbols

Hello everyone! I have an indicator than counts the amount of upticks and downticks for each candle which works well for Forex symbols however for symbols such as SP500 it can show negative upticks/downticks and ticks decreasing live which shouldn't be possible. I'm unsure as to why it works for

MQL4 - Indicator working normally in live trading but in backtesting returning '2147483647'

This is not my indicator, I downloaded it. Essentially it draws structural points on the chart which which it does perfectly. When I call this indicator in live trading it returns the correct value, however, during backtesting in the strategy tester it returns 2147483647, I have spent countless