Login Page - Create Account

Support Board


Date/Time: Fri, 03 May 2024 09:27:04 +0000



[Programming Help] - How to ensure the proper tick placement of an automated order entry

View Count: 707

[2018-11-01 00:06:27]
User689856 - Posts: 5
I have the Trading System-Based on Alert Condition set to evaluate at bar close and I've modified it use limit orders so that say when the close price of a bar is 100.01 the limit will be placed at 100.01.

This works great most of the time but sometimes when the market moves to fast the buy limit is placed at 100.02 or 100.03 as an example. Is there a way to ensure the limit order is never placed higher than the exact tick of the closed bar that triggered it to alert in the first place?

So if the bar closes at 100.01 then it will not be entered higher than 100.01 even if the market moved too fast.

I understand limit orders will not always be filled at the price it is set, this question is about the placement of the limit order in the first place though.
[2018-11-01 19:19:54]
Sierra Chart Engineering - Posts: 104368
From our perspective we do not know the answer to this, because you are setting the limit price. So why is there a problem with the limit price not being as set?
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing
[2018-11-02 00:33:16]
User689856 - Posts: 5
What is happening is that at a few times in the day the market does a sudden very fast move and this triggers my alert condition that is set to enter the limit at the close of the bar, but by the time the system enters the limit since the market was so rapid where it moves instantly up a few ticks within a split second my limit is placed a tick or two higher than the close of the bar where it was intended to be set because it seems to be chasing the price.

Since these moments happen at random through the day I would prefer for my alert condition to not be placed higher (if a buy entry) than the original tick value that it was intended to be set (it's intended limit set location being the exact tick of the close of the bar that triggers it in the first place).

I'm not concerned with what the limit gets filled as that isn't guaranteed of course, but I want to be sure that at the least the limit is entered at the exact close of the bar I want it to and no where else.

Thanks
[2018-11-02 19:11:22]
Sierra Chart Engineering - Posts: 104368
You can access the close price of any chart bar. Refer to:
ACSIL Interface Members - Variables and Arrays: sc.BaseDataIn[][] / sc.BaseData[][]
Sierra Chart Support - Engineering Level

Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy:
https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation

For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service:
Sierra Chart Teton Futures Order Routing

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account