Login Page - Create Account

Support Board


Date/Time: Tue, 21 Jan 2025 07:41:58 +0000



Post From: Report Possible Bug: sc.SellEntry() Incorrectly Displays Order Fills

[2018-08-02 15:29:17]
Richard Chinn - Posts: 28
UPDATE

I added some code to help debugging.

It appears the issue is in the sc.SellEntry function. I have watched it happen several times this morning.

My debugging code gave me the following information:


Chart: ESU8-CME 1 Min #1 | Study: ATM Short Term | DEBUG: Entry Buy is order type | 2018-08-02 11:13:08 *
Chart: ESU8-CME 1 Min #1 | Study: ATM Short Term | DEBUG: A BUY ENTRY attempt was Successful | 2018-08-02 11:13:08 *
Chart: ESU8-CME 1 Min #1 | Study: ATM Short Term | DEBUG: Exit Sell is order type | 2018-08-02 11:13:59 *
Chart: ESU8-CME 1 Min #1 | Study: ATM Short Term | DEBUG: A SELL EXIT attempt was UNsuccessful | 2018-08-02 11:13:59 *
Chart: ESU8-CME 1 Min #1 | Study: ATM Short Term | Order entry skipped because only one trade per bar is allowed. | 2018-08-02 11:13:59 *

A Successful BUY Position is established
In the same bar an Unsuccessful SELL Position is attempted
The Unsuccessful SELL attempt is shown on the chart (I have Checked Trade>>Show Order Fills) as a Sell -1@____
It was unsuccessful so the BUY position is not closed

The BUG is the display of a SELL attempt as an actual SELL on the chart