if i add the column "Comm/swap" i can see very strange values - some intraday trades has swaps too
if i run whaitf swap with positive values, i am getting negative swap?
and commisions are not computed when whatif is turned on - because of that strategies with swaps has better results :)
if you will be making changes please make commission and swap column separately, not together
Attachment EU_30_113011137_S_As_CF_FUZ.sqx added
Swap = (Pip Value * Swap Rate * Number of Nights) / 10
Please for the love of god integrate swaps!
here is a video that can help...:
https://www.youtube.com/watch?v=H9v5UD6End0
return point/exRate*(tradeSize*lotSize)*swap;
I think should be
return point*(tradeSize*lotSize)*swap;
@hankeys regarding intraday, the code actually utilizes a swap hour instead of that xdays simple way, clonex went the whole nine yards and put in tripple swap day etc.
Attachment swaps.jpg added
1 night trades, only one 2 night trade and the computation is different, why?
they should be the same as MT4 which is nothing that tricky,
MT4 getting their values from the symbol's every day/week not sure about the time.., but when you backtest a strategy using MT4's backtester it just takes the static fixed values of the swaps and thats it.
That means that we can also use it like we use any other parameter like Spread / Slippage / Commission which we already currently got built into SQX,
Just set a the current Symbol's Swaps values and keep them static fixed across the building/retests stages task, it will be just as the MT4's backtester, which is exactly what we want!,
The benefits of that if we will have Swaps built into SQX rather than just a What-IF test are:
The values of the Swaps will be saved into Strategy so we can role it through other tasks with those swaps already calculated into the strategy's results,
We can create a Custom made MonteCarlo to manipulate the Swaps values just like we can with Spread,Slippage, etc..,
We can finally export the strategy with the swaps and import it into QA4, we will have more accurate results with swaps thats the whole point.
@Hankeys I've found another bug too Ill fix it.
so maybe negative swap value means positive
so i will rather make commisions as red negative values, not those positive ones