Login Page - Create Account

Support Board


Date/Time: Tue, 28 May 2024 17:13:31 +0000



Study Trading: Triggered Limit Order Entry

View Count: 3232

[2016-08-12 13:55:58]
User295967 - Posts: 32
Can the study Trading: Triggered Limit Order Entry from Sierra do the following:

Assuming market goes long. On Chart DOM I click with mouse on buy column at e.g. 18555 (YM)while price is below 18555. A kind of Stop limit order is then visible in the DOM buy column at 18555.
When market price then reaches 18555, a limit order is placed on the DOM for the exchange at 18554.
The order is in my case an OCO.

Assuming market goes short. On Chart DOM I click with mouse on sell column at e.g. 18555 (YM)while price is above 18555. A kind of Stop limit order is then visible in the DOM sell column at 18555.
When market price then reaches 18555, a limit order is placed on the DOM for the exchange at 18556.
The order is in my case an OCO.

QUESTION: Can the study Trading: Triggered Limit Order Entry from Sierra do this ? Can I apply it to the chart DOM of Sierra?
[2016-08-12 17:07:42]
Sierra Chart Engineering - Posts: 104368
Basically what you are asking for is a Stop-Limit order with a negative offset. That is not supported in Sierra Chart.

The Trading: Triggered Limit Order Entry study does not do this.

What do you mean by this:
The order is in my case an OCO.
In relation to everything else you are describing, this does not make sense.
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
[2016-08-12 18:29:19]
User295967 - Posts: 32
I am sorry if I was not clear.
Executing an OCO order as limit order with a negative offset is standard supported in Ninjatrader, so it may make sense to some trading strategies. I do not defend Ninjatrader nor want to start any comparison - the reason I am here at Sierra says enough.

In my scalping case the market need to be entered at a certain level, but only if another level has been met before. It all comes down to entering the market at a better position when certain conditions are met. So e.g. I only want to go long at price 10, but only after market touched price level 11 (Try to see it as a kind of pullback). In order to avoid human errors the process need to be automated at DOM level.

I also see at Sierra help function the following tekst under the study Triggered Limit Order Entry Study:
Order Lines
1.Trigger Line: The price to which price must reach in order for an entry order to be placed.
2.Order Line: The price at which the order will be placed once the Trigger Line is reached.
That si the logic I am looking for. But what is the rationale that this study does not work on the Sierra DOM?

I also read in the forum in the thread called Stop Limit with Negative Offset (01-22-2011 start) that a user called Kiwi states: Sierra does support stop limits with negative offsets. Kiwi states that if yu trigger your entry based on price passing a point; if you know that X% of times price will retrace Y points; then you can Judge if the price improvement outweights the trades missed and use a negative stop limit offset to get the correct entry price. Perhaps Kiwi's wordings make my intentions more clear.

I made video on Youtube showing the Ninja DOM reflecting my requirement. When you see this you better understand what I would like to schieve in SIerra.
A Stop Limit Order is placed at price 1227,7 with mouseclick anticipating market going short.
At second 29 price level 1227,7 is hit and a Limit order is placed automatically at 1227,8.
At second 34 market gets back and the limit order at 1227,8 is executed resulting in an OCO to exchange with 2 targets adn one Stoploss.
Here link https://youtu.be/4EVGTi5nEaE
Date Time Of Last Edit: 2016-08-12 20:26:34
[2016-08-13 13:50:45]
Sierra Chart Engineering - Posts: 104368
This actually might be possible with CQG if they support a negative offset for a Stop-Limit order.

Refer to the documentation for Stop-Limit orders:
Order Types: Stop-Limit

Try setting a negative offset of -1 and see if that works with CQG.

You can also modify this study to accomplish what you need:
Order Types: Triggered Limit Order Entry Study


Here is the relevant documentation:
https://www.sierrachart.com/index.php?page=doc/BuildCustomStudiesDLL.html
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
[2016-08-13 17:17:49]
User295967 - Posts: 32
I can only work with the chart DOM. I can not use the chart trader.

1. From the chart DOM I am not able to built the scenario I need. How can I first specify the stop limit order with a negative offset and THEN implement the OCO I require?

2. The triggered limit order entry study seems to be working only from Chart trader. So even if I change the study. it will still be executed from chart trader - which I do not want as I can only trade from the chart DOM.

Perhaps I overlook items, so I appreciate your guidelines if how to implement the required functionality from the chart DOM instead of chart trader. After all: what is the rationale that this support only sems to work from chart trader and not chart DOM?
[2016-08-14 00:14:30]
Sierra Chart Engineering - Posts: 104368
A negative Limit offset is supported for Stop-Limit orders but it is dependent upon the Trading service which in your case is CQG. But that is not relevant if you use the TriggeredLimitOrderEntryStudy.

When you refer to an OCO order you are actually referring to Attached Orders:
Attached Orders

So those are supported.

It sounds like you just simply want a Limit order that is sent when a trigger price has been met. So therefore use this study:

Order Types: Triggered Limit Order Entry Study

The documentation has been updated for that study with a reference to how to add a study to a Trading DOM.

Update to the latest prerelease with Help >> Download Prerelease to be able to use that study on a Trading DOM.

If you have anything further, please be extremely brief and to the point. We have already spent more than enough time on this.
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
Date Time Of Last Edit: 2016-08-14 00:14:57
[2016-08-14 02:57:45]
Sierra Chart Engineering - Posts: 104368
In the next release we will enhance the study to automatically set the limit order the specified number of ticks from the trigger price. So you can just set one price.
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
[2016-08-15 20:42:18]
User295967 - Posts: 32
1.Trigger Line: The price to which price must reach in order for an entry order to be placed.
2.Order Line: The price at which the order will be placed once the Trigger Line is reached.

On chart DOM with prerelease the trigger line behaviour is not as per above correct describtion.
Price must go BEYOND the trigger line before attached order is placed on order line - and that is not correct.

See Youtube video showing incorrect behaviour study.
https://youtu.be/kV0MMRQzBiA
Second 5/6 placement trigger and order prices
Second 11 market trades at trigger line, but no attachment order at order line
Second 54 market trades again at trigger line, but no attachment order at order line
Second 69 market trades BEYOND trigger line, only then attachment order at order line.
[2016-08-15 22:36:27]
Sierra Chart Engineering - Posts: 104368
Not sure why this is the case but we will solve this in the next release and make further improvements to make the study easier to use.
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
[2016-08-16 02:07:07]
Sierra Chart Engineering - Posts: 104368
This is solved in prerelease 1454.



There is new Input setting to automatically set the limit price based upon a certain number of ticks from the trigger price and it is automatically determined to be a buy or sell.
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
Date Time Of Last Edit: 2016-08-16 02:07:58
[2016-08-17 09:03:24]
User295967 - Posts: 32
Question: Can left mouse in study be assigned to place trigger and associated order level automatically on chart DOM?

(edit later)SOLVED. Autohotkey does this job
Date Time Of Last Edit: 2016-08-17 10:40:44
[2016-10-20 17:02:25]
User295967 - Posts: 32
SC 1473. Chart DOM. Study Triggered Limit Order Entry.
Applying Trigger Price by right mouse click and then select left mouse set trigger price.

Problem: Sometimes the trigger price will not be set, but immediatly the attached order will be executed a a different location: the current price.
How can I Ensure the trigger price wil be set and not the execution of the attached order?
Same behaviour in the previous version of SC.
[2016-10-20 17:48:27]
Sierra Chart Engineering - Posts: 104368
You must be doing something incorrectly with setting the prices causing a limit order to be immediately sent. Refer to:
http://www.sierrachart.com/index.php?page=doc/OrderTypes.html#TriggeredLimitOrderEntryStudy
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
[2016-10-30 20:23:31]
User295967 - Posts: 32
I keep getting wrong behaviour of the TriggeredLimitOrderEntry Study.
I made video on YouTube showing adding study to Chart DOM and how the Study behaves incorrectly.
Please see https://youtu.be/SH5priAko9o
Sierra version 1473 (but same behaviour was also on previous version).
[2016-10-30 23:07:33]
Sierra Chart Engineering - Posts: 104368
That order entry study was originally designed to be used on a chart with visible price bars. It is getting triggered by the High and Low values of the last price bar that you do not see.

We know why this is happening and it will be solved in the next release.
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
Date Time Of Last Edit: 2016-10-30 23:07:44
[2016-11-03 14:37:30]
User295967 - Posts: 32
Testing shows that in version 1480 this is not solved.
[2016-11-03 17:02:51]
Sierra Chart Engineering - Posts: 104368
We apologize for this. The changes we did were incomplete. We are fixing this now. Thank you for pointing this out.
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
[2016-11-03 17:35:51]
Sierra Chart Engineering - Posts: 104368
This is now resolved and we have tested it.

Follow the instructions here to update to the latest "prerelease":
http://www.sierrachart.com/index.php?page=doc/download.php#FastUpdate

The version number is the same.
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
[2016-11-07 14:12:10]
User295967 - Posts: 32
In version 1481 the study lacks Input Name "Text". Now one can not see on DOM if study is active.
In version 1478 the study still had the Input Name "Text".
See attached files.

How to get the Input Names "Text" back in version 1481?
imageStudy with Text Input Name version 1478.png / V - Attached On 2016-11-07 14:11:50 UTC - Size: 26.09 KB - 262 views
imageStudy WITHOUT Text Input Name version 1481.png / V - Attached On 2016-11-07 14:12:00 UTC - Size: 23.7 KB - 310 views
Attachment Deleted.
[2016-11-07 20:33:55]
Sierra Chart Engineering - Posts: 104368
We took that setting out but we can see it is useful so we will put it back.
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
[2016-11-08 04:42:39]
Sierra Chart Engineering - Posts: 104368
The additional text display for the Triggered Limit Order Entry study has been restored in 1483.
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
[2016-11-10 19:53:12]
User295967 - Posts: 32
Version 1483. Inconsistent behaviour.
1. Suddenly instead of trigger setting an order is executed immediatly. If I remove study from DOM and then re-apply, the option for set trigger is not visible in menu (after right-click).

2.I also had instances where trigger was set and the option cancel order (after right-click) is not visible. Then study has to be removed in order to remove the trigger setting from DOM.

Which information do you need? I have it all recorded on video.
The DOM has invisible 1 sec chart.
When I remove study, exit SC, Open SC, apply study ==> all works fine until incosistent behaviour occurs again.

EDIT: I found scenario to reproduce the above item nr. 2.
1. Logoff/Logon SC.
2. Add study to DOM
3. Keep repeating: Set Trigger, Cancel order
4. After a while inconsistency is there: Option cancel order is no longer there.
5. Only way to remove the trigger set is to remove the study.
Date Time Of Last Edit: 2016-11-10 20:21:44
[2016-11-11 05:04:04]
Sierra Chart Engineering - Posts: 104368
We can see a case where older last trade price data from prior triggering is being used for triggering after setting a new Trigger price. This could potentially cause an unexpected trigger. This is solved.

As far as a problem with the menu commands. This we cannot reproduce and really makes no sense and we do not see how this could be a problem but we went through the code and made a couple of small changes but it does not seem as though this is going to make any difference.
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
Date Time Of Last Edit: 2016-11-11 05:05:50
[2016-11-11 05:28:13]
Sierra Chart Engineering - Posts: 104368
To test the changes update to the latest prerelease:
https://www.sierrachart.com/index.php?page=doc/download.php#FastUpdate

The version number is the same.

We are wondering if the problem with the menu commands is something at the operating system level.
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
Date Time Of Last Edit: 2016-11-11 05:28:45
[2016-11-11 09:55:49]
User295967 - Posts: 32
Inconsistency still there with menu commands.
Video at https://youtu.be/Y44QEmPxIOQ Showing inconsistent behaviour menu commands.

Actions I did:
1. Latest pre-release as per SC guidelines installed
2. Open SC and add study
3. Use Autohotkey script. MButton press will generate {RButton} and then {Up 1} and then {ENTER}
4. Video start at 00:00 : repetition of set trigger and cancel order
5. Video at appr. 01:20 : Trigger price is set, but option cancel order is not available in menu commands
6. Video at appr. 01:35 : Remove study from DOM
7. Video at appr. 01:50 : Add study to DOM. but option trigger price is not available in menu commands

Note: when the actions of point 3. above are executed with longer timeintervals, the same result will eventually occur. I am not technical at all, but perhaps memory issue?

Order sent immediatly instead of trigger being set.
I also still notice that sometimes an order is executed immediatly instead of setting the trigger. Trigger action done far away from current price. Not visible chart in DOM is 1 second chart to avoid issues with range of current or last bar. When order is executed I do Flatten on DOM and retry. For some attempts the orders keep executed immediatly and suddenly the study works again as designed and trigger will be set instead of orders executed immediatly (In between I do not remove the study or close down SC to refresh the system).
I made video at https://youtu.be/-z5sSZXRm0Y
System has not been touched for appr. 50 minutes then I do the following:
1. at video 00:07 use autohotkey for setting trigger far away from price , but instead order submitted immediatly
2. at video 00:26 flateen and cancel all from DOM
3. at video 00:33 manually set trigger far away from price, but instead order submitted immediatly
4. at video 00:47 suddenly all works well again. Autohotkey and/or manually setting trigger works as designed.
Note: After a while suddenly orders will be submitted immediatly instead of the trigger being set far away from price.

Note: After removal of study due to malfunctioning, it is added again to DOM. After adding the tekst Limit Trigger:not set is visible in DOM. Right mouse click then does not show option of set trigger.Only restart of SC will cause to show option of set trigger after right mouse click.

OS: Win 7 Professional 64 bit SP 1 i5 4GB Windows performance index rating 5,9. Just running SC (with one chart open without indicators and one DOM) and light videorecorder HyperCam 2. No mail, games etc. as this is order entry laptop.
Date Time Of Last Edit: 2016-11-11 14:22:22

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

Login

Login Page - Create Account