mjj38
- ago
I added the continuous ES future symbol from IQFeed (@ES#C) to Market and Symbols.


When I backtest that symbol using 1 contract it doesn't seem to be applying the point value.


am I doing something wrong?
0
648
Solved
7 Replies

Reply

Bookmark

Sort
Cone8
 ( 26.65% )
- ago
#1
Select Preferences > Backtest > Futures Mode

By the way, if you're going to test the contract months, you should change that record to @ES#C, Create a Copy, and change the copy to @ES###. Then it will match symbols like @ESZ22, @ESH23, etc.
0
Best Answer
mjj38
- ago
#2
Thank you Cone
1
mjj38
- ago
#3
Is there a reason Futures Mode isn't either linked to the symbol you are referencing or the strategy setting instead of a global setting? I'm confused on how I run a mixture of stock and future strategies at the same time.
0
Glitch8
 ( 8.38% )
- ago
#4
When Futures Mode is enabled, the point value, tick, margin, etc will still only be applied if the SecurityType is Futures, Options, or something else that makes sense. SecurityType.Stock won't use these properties.
1
Cone8
 ( 26.65% )
- ago
#5
Futures Mode "enabled" is what you'd always expect. The only time you might need to turn it off is if you need to test/trade a stock symbol that's the same as a futures symbol that you've defined. It's hard to think of a case for that, but they're out there.
1
mjj38
- ago
#6
Thanks guys. I've been manually switching that for years. Too funny.
0
Cone8
 ( 26.65% )
- ago
#7
Note!
If you use wildcards to define futures contracts, then the probability of matching stock symbols increases a lot.

Short of using Regex, it sure would help to introduce another wildcard symbol that matched only digits, instead of any character.

For example -
Use # to match digits only and * for any character. That way ES*# could only match ESM3 and not ESMV, a stock symbol.
0

Reply

Bookmark

Sort