I just make a quick test, but find many huge difference.
Very disappointed that this occured again.
Setting in MC as below,
Commission is 1%% of contract value, slippage is 10 per contract, and the reserved bars is 100
It does not matter what timeframe it is.
Attachment Retest.cfx added
Attachment Sessions.xml added
Attachment Sessions2.xml added
Error while running project 'Retester'. Cannot invoke "com.strategyquant.tradinglib.backtest.LoadedData.getMarketData()" because "this.loadedData" is null
And I have 6 sessions for different symbols groups, Sessions2.xml
SQ X can run with the sesstions N0230 and N0100,
But get the same error with others, N2300, N2330, dayc, dayif, dayT.
The problem is the backtester can't prepare the backtest data using the session from D1 data you have provided.
Please try to import minute data into SQ instead of daily, then it should work.
I tried on a different symbol which was imported as minute data and there was no problem
Attachment Strategy 42153.sqx added
Attachment Strategy 421104.sqx added
Attachment Build.cfx added
Attachment SHFErb HOT 1 Minute.7z added
I tested the minute data from Multicharts. The result is still very frustrating.
But I want to trade on the daily bars for some reason. And the sessions setting should only affect the higher timeframe data generating from minute data. Because the test precision for Multicharts is only selected timeframe only, so I would like use the daily bar directly. This makes it easier to deal with gaps when contracts rolling. (https://www.tradesignal.com/adjusted-futures-contracts/?lang=en)
Attachment 202131SHFE_Rb98_Day-D1-NoSession.csv added
Attachment Strategy 32167.sqx added
I would like to do more testing and find that it's actually a data reason. I use the daily bar without time column field. And SQ would fill the time filed with 0:00 when set the sessions.
When I correct the data with time column as 15:00, it works.
But this is not the main reason for the difference in SQ and Multihcarts. Another strategy for example. trades in SQ is 82 and that is 318 in multicharts.
Status changed from Waiting for information to Fixed
there was a problem that SQ couldn't handle complicated session patterns.
It assumed every day session is defined on a single line.
I have added support for multiline day session patterns. I was testing on various timeframes and session settings (including your N2300) and now it looks much better.
There's no big differences between SQ and MC, the equity charts are well aligned.
This change will be included in B131 final release.
Best regards,
Tomas
Attachment compare.png added
Attachment signal 139113.png added
Attachment Strategy 137145.sqx added
Attachment Strategy 139113.sqx added
Attachment Strategy 139115.sqx added
Attachment Strategy 140167.sqx added
Attachment Strategy 21104.sqx added
Attachment Strategy 325139.sqx added
1, Now the sessions works well with Multicharts regular data, except the volume. But all the strategy didn't use volume.
2, The difference still exists, even I use the higher timeframe data exported from Multicharts directly. There are many differences in trading signals in some strategy. It's not sessions matter, I guess.
I do this with this setting.
In SQ,
commision 0.04% the equity
spread 0
slippage 0
reserved bars 100
In MC,
commision 0.02% of the equity
slippage 0
reserved bars 100
The profit will be slightly different since the decduction method of the commission or slippage are not exactly the same. But the trading signals should be exactly the same, or 99.99%. In fact the number of trades in many strategies differs too much. You will find a lot of differences on the trading signal charts.
Please check this again. Thank you.
Please wait for B131, you should be able to get matching results.
By the way are you sure the session N2300 in SQ is correctly defined compared to Multicharts session?
I had to remove the last session element Fri 21:00 - Fri 23:00, otherwise Multicharts won't let me save the session.
Because I have had strategies produced for multicharts that dont work at all in the platform. If not can this be looked at seriously for B131 or 132? I dont know why it was removed previously
Attachment sessions eod in MC.png added
Attachment sessions in SQ adjust.png added
Since there are sessions templates in my MC and I cannot scroll through them, I have never noticed this detail before.
I try to set it from scratch and find something.
You should set the last session of Friday as EOD. It's not the exchange's rule, but by the Multicharts's method. The 15 minutes bar in MC shows that.
It may not affect the timeframe lower than 60 minute from 1 minute data, I guess. I have checked this, the 60 minutes data's price generated by SQ and MC is the exactly same. It could affect the 2 hours, 4hours, or Day timeframe bar data generated.
Attachment SHFErb HOT 30 minute.txt added
Attachment Strategy 487101.sqx added
Attachment Strategy 148112.sqx added
Attachment Strategy 481178.sqx added
Attachment Data.xml added
Attachment Sessions.xml added
Attachment Instruments.xml added
Attachment 1.png added
Attachment 2.png added
1, Sessions works well except for the volume. Fortunately, I just use the price part in strategy. I have compared the 60 minutes, 1 hours, 30 minutes, the OHLC prices are exactly the same with Multicharts's.
2, These strategies, no matter whether they are generated from 1 minute data, or on the trading time frame data directly from Multicharts, their performance is extremely different from that in the Multicharts. Few of them are the similar.
I took a look at the strategy 221180 and in Strategy Config, I can see you used NoSession in trading options.
The strategy uses CloseWeekly which is sensitive to session settings. Please try to set the session in trading options accordingly to your Multicharts settings.
Let me know if it helped.
Best regards,
Tomas