Hi,
I'll appreciate it if anyone can solve this problem.
I'm a live auto trader with MC8.7, broker is IB and use IB data. There are 4 charts in my workspace, GC, CL, SI, HG with same strategy in SA mode. I use setpercenttrailling in my script, in GC, after meet the target, the set-exit order generated then cancelled immediately(see attached jpg), but the other instruments are normal, not be cancelled and then filled. Could anyone answer me why? is any setting wrong about GC?
And further after that, if I turn-off auto-trade(keep the GC position), then turn-on, the setpercenttrailling order generated again, and won't be cancelled until it is filled. Why?
Thanks for your answer.
set exit order be cancelled issue
set exit order be cancelled issue
- Attachments
-
- set order cancelled.JPG
- (134.09 KiB) Downloaded 767 times
- TJ
- Posts: 7746
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2225 times
Re: set exit order be cancelled issue
What are the chart resolutions for all of the instruments?Hi,
I'll appreciate it if anyone can solve this problem.
I'm a live auto trader with MC8.7, broker is IB and use IB data. There are 4 charts in my workspace, GC, CL, SI, HG with same strategy in SA mode. I use setpercenttrailling in my script, in GC, after meet the target, the set-exit order generated then cancelled immediately(see attached jpg), but the other instruments are normal, not be cancelled and then filled. Could anyone answer me why? is any setting wrong about GC?
And further after that, if I turn-off auto-trade(keep the GC position), then turn-on, the setpercenttrailling order generated again, and won't be cancelled until it is filled. Why?
Thanks for your answer.
Re: set exit order be cancelled issue
Thanks TJ,
data1 is 1 tick, data2 is 1hrs, IOG.
For GC, the new order is generated only when the price made a new High base on entryprice, but cancelled immediately, if no new high, new order won't be generated, that's because you can see 4~5 times new order was generated. The set-exit order can't be reserved in GC, however, the other charts/instruments can be generated and reserved then filled.
data1 is 1 tick, data2 is 1hrs, IOG.
For GC, the new order is generated only when the price made a new High base on entryprice, but cancelled immediately, if no new high, new order won't be generated, that's because you can see 4~5 times new order was generated. The set-exit order can't be reserved in GC, however, the other charts/instruments can be generated and reserved then filled.
- TJ
- Posts: 7746
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2225 times
Re: set exit order be cancelled issue
If data1 is 1 tick, then why do you need to use IOG?Thanks TJ,
data1 is 1 tick, data2 is 1hrs, IOG.
For GC, the new order is generated only when the price made a new High base on entryprice, but cancelled immediately, if no new high, new order won't be generated, that's because you can see 4~5 times new order was generated. The set-exit order can't be reserved in GC, however, the other charts/instruments can be generated and reserved then filled.
Re: set exit order be cancelled issue
I use average line to set my entry and exit point. I thought IOG can make the line consistent smooth. Actually, I don't really know about IOG. Is that will be a problem to the setpercenttrailling? but the strategy is applied to all my charts.
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: set exit order be cancelled issue
Hello Thomashck,I use average line to set my entry and exit point. I thought IOG can make the line consistent smooth. Actually, I don't really know about IOG. Is that will be a problem to the setpercenttrailling? but the strategy is applied to all my charts.
There is no need in IOG if you use 1 tick as data series 1 where our signals are calculated. Please read about how IOG affects auto trading.
If the order status is "Cancelled", please make sure there are no error messages coming from your broker in the Logs tab of Order and Position Tracker window.
If an order is cancelled, most likely the conditions for its generations are not met any longer. Please read this article to learn how to trace order generation conditions from your script.
Re: set exit order be cancelled issue
Thanks, Andrew, it's helpfull.There is no need in IOG if you use 1 tick as data series 1 where our signals are calculated. Please read about how IOG affects auto trading.
I checked the logs, there was no any error message. The conditions for the order generations are still there. After my first post, it happened twice again, and only on GC, never happened on others.If the order status is "Cancelled", please make sure there are no error messages coming from your broker in the Logs tab of Order and Position Tracker window.
If an order is cancelled, most likely the conditions for its generations are not met any longer. Please read this article to learn how to trace order generation conditions from your script.
I really need to solve this problem.
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: set exit order be cancelled issue
Please prepare the script with the prints demonstrating the conditions are met, but no order is sent and come to our live chat during working hours (6:30 am – 4:00 pm EST) to let our operators connect to your computer remotely in order to study the issue and help you.I checked the logs, there was no any error message. The conditions for the order generations are still there. After my first post, it happened twice again, and only on GC, never happened on others.
I really need to solve this problem.
Re: set exit order be cancelled issue
few days ago, it generated the order successfully, I tried to change some check box, like "Optimize Order flow" or "No. of digits after decimal"...I don't recall how, but GC generated set-exit order and filled finally......but I still keep on try to find out what cause it happen, in case it happen again...
- Andrew MultiCharts
- Posts: 1587
- Joined: 11 Oct 2011
- Has thanked: 931 times
- Been thanked: 559 times
Re: set exit order be cancelled issue
Thanks for the update. If the issue bothers you again, please come to our live chat to demonstrate the issue.