Page 1 of 1

Spread modelling in MT4 using Tickstory

Posted: Sat Jan 02, 2021 8:17 pm
by adibi83
Hi all

I was wondering how does MT4 tester considers the spread with exported data from Tickstory? Say I've inserted a 2 pips spread in the tester - does it adds 2 pips to Bid rates? does it perform the test as if the spread is 0 and subtract the 2 pips value from the P&L?

I'm asking this because my EA suppose to be non-spread-sensitive - I only use BID rates, for example:

ticket = OrderSend(Symbol(),OP_SELL,amount,Bid,slippage,Bid+0.0100,Bid-0.0100,NULL,ID1,0,CLR_NONE);

And I use trailing SL like that:

tempTicket = OrderModify(OrderTicket(),OrderOpenPrice(),OrderStopLoss()-0.0002,OrderTakeProfit(),NULL,CLR_NONE);

BUT I get different results when I insert 0 pips spread and 1 or 2 pips spread.

What am I missing here?

TX

Re: Spread modelling in MT4 using Tickstory

Posted: Tue Jan 05, 2021 10:45 pm
by tickstory
Hi Adibi83,

If you are referring to the fixed spread functionality in MT4 Strategy Tester (as opposed to our new variable spread function in our Advanced Tester), then all it does is add x pips to the Bid price. Therefore:

Bid=(tick price exported by Tickstory)
Ask=Bid + Spread

So this will affect your entry/exit price since the tester will use the Bid/Ask price when exiting from a buy/sell position.

Thanks.