Different multipliers when merging historical with RT data
-
- Posts: 72
- Joined: 20 Apr 2014
- Has thanked: 9 times
- Been thanked: 8 times
Different multipliers when merging historical with RT data
Is there a way to handle different multipliers in futures when building a chart merging historical and real-time data? For example TS data has NYBOT Sugar (SB) with a price around 15, but data from Openecry has prices around 0.15. Putting them on the same chart is not workable.
- Henry MultiСharts
- Posts: 9165
- Joined: 25 Aug 2011
- Has thanked: 1264 times
- Been thanked: 2957 times
Re: Different multipliers when merging historical with RT da
Hello DaveAronow,
That is possible to adjust the price values for the TS instrument.
You need to add the price multiplier (*0.01) to the end of the description of the required TS instrument in the QuoteManager.
Once that is done you need to reopen all the workspaces that are using this instrument.
You also need to disconnect the OEC broker profile, go to the symbol mapping, delete all lines using this instrument.
Then add the symbol mapping for this instrument.
That is possible to adjust the price values for the TS instrument.
You need to add the price multiplier (*0.01) to the end of the description of the required TS instrument in the QuoteManager.
Once that is done you need to reopen all the workspaces that are using this instrument.
You also need to disconnect the OEC broker profile, go to the symbol mapping, delete all lines using this instrument.
Then add the symbol mapping for this instrument.
-
- Posts: 72
- Joined: 20 Apr 2014
- Has thanked: 9 times
- Been thanked: 8 times
Re: Different multipliers when merging historical with RT da
Henry,
Thanks for this will try it.
Along the same lines is it possible to make this kind of adjustment for trading? For example if one data feed returns the price for Orange Juice futures as 122.10, but my broker uses 1.2210, how can I automate trading without ending up with orders sent as 122.10 (which will never fill)?
Dave
Thanks for this will try it.
Along the same lines is it possible to make this kind of adjustment for trading? For example if one data feed returns the price for Orange Juice futures as 122.10, but my broker uses 1.2210, how can I automate trading without ending up with orders sent as 122.10 (which will never fill)?
Dave
- JoshM
- Posts: 2195
- Joined: 20 May 2011
- Location: The Netherlands
- Has thanked: 1544 times
- Been thanked: 1565 times
- Contact:
Re: Different multipliers when merging historical with RT da
By diving prices by 100 I suppose:Along the same lines is it possible to make this kind of adjustment for trading? For example if one data feed returns the price for Orange Juice futures as 122.10, but my broker uses 1.2210, how can I automate trading without ending up with orders sent as 122.10 (which will never fill)?
Code: Select all
if (longCondition) then
Buy 1 contracts next bar at (Close / 100) limit;
-
- Posts: 72
- Joined: 20 Apr 2014
- Has thanked: 9 times
- Been thanked: 8 times
Re: Different multipliers when merging historical with RT da
Josh this works (and is a slick idea that I should have thought of) but I think I still have a problem when it relates to the automated stop losses or profit targets. Then again I could just code those out manually and handle them....By diving prices by 100 I suppose:Along the same lines is it possible to make this kind of adjustment for trading? For example if one data feed returns the price for Orange Juice futures as 122.10, but my broker uses 1.2210, how can I automate trading without ending up with orders sent as 122.10 (which will never fill)?
If Orange Juice futures closed at 122.10, that would send a limit order priced at 1.221.Code: Select all
if (longCondition) then
Buy 1 contracts next bar at (Close / 100) limit;
- JoshM
- Posts: 2195
- Joined: 20 May 2011
- Location: The Netherlands
- Has thanked: 1544 times
- Been thanked: 1565 times
- Contact:
Re: Different multipliers when merging historical with RT da
That's true, `SetStopLoss()` and `SetProfitTarget()` make our live most of the time easier, but they lack flexibility (like specifying a correct stop or limit price). So you'll unfortunately need to code those out manually, yes.I think I still have a problem when it relates to the automated stop losses or profit targets. Then again I could just code those out manually and handle them....