Cross instrument trading pair
-
- Posts: 67
- Joined: Thu Nov 01, 2018 1:50 pm
- Has thanked: 38 times
- Been thanked: 9 times
Cross instrument trading pair
Hi,
Whilst trading the cross instrument trading pair, the api plugin escape seems to be using the data of the "minor" instrument.
These plugins need to enabled on a instrument basis, so If one enables it on the "major" instrument, it does NOT get applied to the "minor" one. if one enables this api on the "minor" instrument, this works, but uses the data of the "minor" instrument.
The expected behaviour would be that "in a cross instrument trading pair, the api would move the limit orders on the "minor" instrument based on the data from the "major" instrument.
Please advice.
Thanks
Whilst trading the cross instrument trading pair, the api plugin escape seems to be using the data of the "minor" instrument.
These plugins need to enabled on a instrument basis, so If one enables it on the "major" instrument, it does NOT get applied to the "minor" one. if one enables this api on the "minor" instrument, this works, but uses the data of the "minor" instrument.
The expected behaviour would be that "in a cross instrument trading pair, the api would move the limit orders on the "minor" instrument based on the data from the "major" instrument.
Please advice.
Thanks
- Attachments
-
- Capture.JPG (35.26 KiB) Viewed 8280 times
-
- Posts: 554
- Joined: Mon Jul 09, 2018 11:18 am
- Has thanked: 25 times
- Been thanked: 86 times
-
- Posts: 67
- Joined: Thu Nov 01, 2018 1:50 pm
- Has thanked: 38 times
- Been thanked: 9 times
Re: Cross instrument trading pair
Hi AndreyR,
Did you manage to see the issue I was highlighting?
Thanks
Did you manage to see the issue I was highlighting?
Thanks
-
- Posts: 554
- Joined: Mon Jul 09, 2018 11:18 am
- Has thanked: 25 times
- Been thanked: 86 times
Re: Cross instrument trading pair
Hi SuperDriveGuy,
although the issue exists I am not sure if it will be fixed soon because there are higher priority issues. if it's blocking you, you may want to fix it yourself. Start from this class
https://github.com/BookmapAPI/DemoStrat ... ategy.java
although the issue exists I am not sure if it will be fixed soon because there are higher priority issues. if it's blocking you, you may want to fix it yourself. Start from this class
https://github.com/BookmapAPI/DemoStrat ... ategy.java
-
- Posts: 67
- Joined: Thu Nov 01, 2018 1:50 pm
- Has thanked: 38 times
- Been thanked: 9 times
Re: Cross instrument trading pair
Hi AndreyR,
Thanks for the feedback.
I am aware of the strategies use and their code, what I don't know is "How to use the data from one instrument, to place trades on another instrument".
If you can point me towards a code snippet or example, it will be much appreciated!
Thanks
Thanks for the feedback.
I am aware of the strategies use and their code, what I don't know is "How to use the data from one instrument, to place trades on another instrument".
If you can point me towards a code snippet or example, it will be much appreciated!
Thanks
-
- Posts: 67
- Joined: Thu Nov 01, 2018 1:50 pm
- Has thanked: 38 times
- Been thanked: 9 times
Re: Cross instrument trading pair
I am aware that this strategy has no idea about cross instrument trading, and that was my question. Since it is available in a cross-instrument trading context, it seems odd that its not applied. The reason for raising this support ticket was to find out how to go about making it "cross-instrument" aware, if you will. Since I can trade cross-instrument, where I am clicking on the "major" instrument", but the trades are being placed in the "minor" instrument. there must be some code or api I can call. Any help is much appreciated. Thanks
-
- Posts: 554
- Joined: Mon Jul 09, 2018 11:18 am
- Has thanked: 25 times
- Been thanked: 86 times
Re: Cross instrument trading pair
Hi SuperDriveGuy,
I can prevent using 'minor' instrument's data by unticking the 'Enabled for [minor instrument]' box in the 'Enable' section of the Escape strategy for the 'minor' instrument tab (activating Escape strategy for a cross-trading pair ticks both boxes in by default in my case).
Let me know if that partially solves the issue for you.
I can prevent using 'minor' instrument's data by unticking the 'Enabled for [minor instrument]' box in the 'Enable' section of the Escape strategy for the 'minor' instrument tab (activating Escape strategy for a cross-trading pair ticks both boxes in by default in my case).
Let me know if that partially solves the issue for you.
- Attachments
-
- Clipboard01.jpg (68.58 KiB) Viewed 7103 times
-
- Posts: 67
- Joined: Thu Nov 01, 2018 1:50 pm
- Has thanked: 38 times
- Been thanked: 9 times
Re: Cross instrument trading pair
Thanks AndreyR,
Much appreciated. I have "unchecked" the "enable" for the minor instrument. I will confirm, how I get along.
Regards
Much appreciated. I have "unchecked" the "enable" for the minor instrument. I will confirm, how I get along.
Regards
-
- Posts: 67
- Joined: Thu Nov 01, 2018 1:50 pm
- Has thanked: 38 times
- Been thanked: 9 times
Re: Cross instrument trading pair
Hi AndreyR,
I tried this on replay and it does NOT move/cancel the order for the "minor" instrument. I tried the same replay(same date/time) for the "major" and it works fine ie moves/cancels the order.
In your example you should confirm whether the order was placed in the "major" or "minor" instrument. I also noticed in your example, cross pair trading in NOT enabled i.e. the "cross pair trading" has not been "START"ed.
Thanks
I tried this on replay and it does NOT move/cancel the order for the "minor" instrument. I tried the same replay(same date/time) for the "major" and it works fine ie moves/cancels the order.
In your example you should confirm whether the order was placed in the "major" or "minor" instrument. I also noticed in your example, cross pair trading in NOT enabled i.e. the "cross pair trading" has not been "START"ed.
Thanks
-
- Posts: 554
- Joined: Mon Jul 09, 2018 11:18 am
- Has thanked: 25 times
- Been thanked: 86 times
Re: Cross instrument trading pair
That's because there was the 'minor' MESU9 instrument tab active.I also noticed in your example, cross pair trading in NOT enabled
EDITED: sorry for a misconception from my side
Thank you for your remarks.