Tick value of /MES not returning correct values.

Questions about MultiCharts .NET and user contributed studies.
User avatar
ernay
Posts: 14
Joined: 08 Jun 2020
Has thanked: 9 times

Tick value of /MES not returning correct values.

Postby ernay » 17 Jun 2020

I'm printing out the contract specs of /MES like this:

Code: Select all

Output.WriteLine("MinMove:" + Bars.Info.MinMove.ToString() + "\tPriceScale:" + Bars.Info.PriceScale.ToString() + "\tBigPointValue:" + Bars.Info.BigPointValue.ToString());
It prints out the following:

Code: Select all

MinMove:1 PriceScale:10000 BigPointValue:10
For /MES, I'm trying to get to the minimum tick increment of $0.25 programmatically.
Is this a bug or is there a more reliable way to get the contract specs here?

Thanks,
Ernie

User avatar
JoshM
Posts: 2195
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1544 times
Been thanked: 1565 times
Contact:

Re: Tick value of /MES not returning correct values.

Postby JoshM » 19 Jun 2020

Usually to calculate the tick size it's: (minmove / pricescale) * bigpointvalue.

Given your output I don't think your instrument settings for MES are correct in the QuoteManager. It probably has to be:

- Big point value: 5
- Min movement: 25
- Price scale: 1/100

(Just to confirm, I'm talking about the Micro E-mini S&P 500 Futures. If you mean another instrument, then your QuoteManager settings are probably correct.)

User avatar
ernay
Posts: 14
Joined: 08 Jun 2020
Has thanked: 9 times

Re: Tick value of /MES not returning correct values.

Postby ernay » 19 Jun 2020

I think you're right. For some reason the /MES settings from CME are:

price scale 1/10000
min movement 1
big point value 10

This is the setting for /ES, not the micro. Interesting. I guess maybe a bug? The /MES as you mentioned should be
- Big point value: 5
- Min movement: 25
- Price scale: 1/100

Thanks for replying.

User avatar
Vlada MultiCharts
Posts: 293
Joined: 22 Apr 2020
Has thanked: 8 times
Been thanked: 76 times

Re: Tick value of /MES not returning correct values.

Postby Vlada MultiCharts » 29 Jun 2020

Hello Ernie,

The PriceScale keyword in PowerLanaguage Editor returns a value different from the one specified in Price Scale in QuoteManager.
If the symbol has Price Scale = 1/10000 in QuoteManager, the code will return PriceScale = 10000.


Return to “MultiCharts .NET”