Hey there,
I am looking to program an ISeries that is based on fair value, which is the average bid/ask of an instrument on every bar.
This is the only data I can use for accuracy since the instrument is fairly illiquid and does not trade.
Is there already an example of this?
I am also not quite sure what the Close bars actually mean. Is it based on last traded data? Or is it based on the bid/ask?
Many thanks.
Historical bid/ask levels for an instrument
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Historical bid/ask levels for an instrument
Hello trademonkey,
You can write your own bar constructor or use the new class CustomInstrument that was added in MultiCharts 9.0: it allows accessing the data series loaded by the DataLoader with the help of IInstrument interface. The bars of such data series are tied to the bars of the main data series based on time. Sample code can be found here.
That is also possible to plot the bid/ask average using an indicator. An example using Spread-Diff indicator can be found here.
https://www.multicharts.com/trading-sof ... uote_Field
You can write your own bar constructor or use the new class CustomInstrument that was added in MultiCharts 9.0: it allows accessing the data series loaded by the DataLoader with the help of IInstrument interface. The bars of such data series are tied to the bars of the main data series based on time. Sample code can be found here.
That is also possible to plot the bid/ask average using an indicator. An example using Spread-Diff indicator can be found here.
How to select the quote field for the chart:I am also not quite sure what the Close bars actually mean. Is it based on last traded data? Or is it based on the bid/ask?
https://www.multicharts.com/trading-sof ... uote_Field
Re: Historical bid/ask levels for an instrument
In your example is not fully disclosed the topic of using CustomInstrument.
Firstly it is not clear how to request to the historical bid / ask
Second, how to use historical bid / ask on playback?
Firstly it is not clear how to request to the historical bid / ask
Second, how to use historical bid / ask on playback?
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Historical bid/ask levels for an instrument
At the moment changing the quote field is not supported. We will add this feature in one of the future versions of MultiCharts .NET.Firstly it is not clear how to request to the historical bid / ask
Re: Historical bid/ask levels for an instrument
How it will work?At the moment changing the quote field is not supported. We will add this feature in one of the future versions of MultiCharts .NET.Firstly it is not clear how to request to the historical bid / ask
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Historical bid/ask levels for an instrument
In one of the future versions CustomInstrument will be extended to accept a new property - QuoteField. It will allow loading not only Trade data using CustomInstrument, but also Ask and Bid data.
Re: Historical bid/ask levels for an instrument
1. Is CustomInstrument will used in playback?In one of the future versions CustomInstrument will be extended to accept a new property - QuoteField. It will allow loading not only Trade data using CustomInstrument, but also Ask and Bid data.
2. Can I combine Ask and Bid and Trade in one CustomInstrument?
3. What difference between DataLoader and CustomInstrument?
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Historical bid/ask levels for an instrument
1. No1. Is CustomInstrument will used in playback?
2. Can I combine Ask and Bid and Trade in one CustomInstrument?
3. What difference between DataLoader and CustomInstrument?
2. No
3. CustomInstrument bars are tied to the bars of the main data series based on time. With DataLoader you need to build bars yourself.
Re: Historical bid/ask levels for an instrument
You can make a request to CustomInstrument can be used in the mode of playback? To check the quality of trade strategies1. No1. Is CustomInstrument will used in playback?
2. Can I combine Ask and Bid and Trade in one CustomInstrument?
3. What difference between DataLoader and CustomInstrument?
2. No
3. CustomInstrument bars are tied to the bars of the main data series based on time. With DataLoader you need to build bars yourself.
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Historical bid/ask levels for an instrument
You can submit a feature request to the Project Management of our web site so other users can vote for it and we can see the real demand for this feature: https://www.multicharts.com/pm/
Re: Historical bid/ask levels for an instrument
Can you get me link with CustomInstrument new feature for info about it?You can submit a feature request to the Project Management of our web site so other users can vote for it and we can see the real demand for this feature: https://www.multicharts.com/pm/