I back-tested the same code (pseudo-code) with same broker's data on Trading-view web-platform and MT4 platform. Trading-view shows 200-300% profit per month almost consistent. However, MT4 gives very small profit, and big losses.
Could anybody explain why there is so big difference.
I am very sorry for late reply, as I was looking for the answer of this by myself (part time work).
The reason for this difference is because of the multiple signal generated by MT4. For example, the moving average crossover strategy generates multiple buy/sell signals at each crossing point, which is supposed to be only one. There is no multiple signals in Trading-view.
Any suggestions to solve this.
MT - intercepts almost every tick
TradingView - not sure, but most probably intercepts open / close of a new bar only
Solution: execute your MT code once per bar, not per tick