in MT platfom i am getting big number of trades, instead SQX backtest shows only few of them...there need to be done something strange in the MQL code
proof that FRACTAL building block sucks and trading is totally different - green line is the backtest from MT platform using Tick Data Suite - and trades are the same as on demo account, but SQX backtest (BLACK line) opening only a few trades
this is DOW JONES strategy using darwinex data WS30
Subject changed from CRUCIAL - FRACTAL building blocks - different trading to FRACTAL building blocks - different trading
Status changed from New to Fixed
I have reviewed your strategy. The problem is the Fractals indicator returns either a high/low value or 0.
In your case it happens that it outputs zero and it is then used as an open price.
In sqOpenOrder function the zero is then replaced with the current market price because it is considered market order.
So what happens here is that the stop orders are actually dealt with like market orders and that's why there are lots of trades.
I have modified the code so that it doesn't replace zero price with current ask/bid in case of stop/limit orders. But be careful when using Fractals in your strategies.
It is not very wise to use it to calculate open prices.
Best regards,
Tomas
and i have made more research on my fractal strategie, because this is not the only one and some of them are trading the same way as backtester in SQX
so if is something in SQX which could lead to a totally different trading - remove it - its simple, because we are loosing real money