Support Board
Date/Time: Sun, 06 Jul 2025 20:58:55 +0000
[Programming Help] - Trading System Based on Alert Condition Using 2 Different Time Frames
View Count: 1968
[2019-04-06 16:16:36] |
cmet - Posts: 708 |
Hoping someone can help me figure out whether or not the following is possible and if so, how to do it. I've been through the documentation and simply can't figure it out. What I want to do: 1. Use a 12 tick range bar as a setup condition 2. Use a 5 tick range chart to time the entry 3. Automate the process using Trading System Based on Alert Condition (if possible) or the Spreadsheet I can easily plot the 12 tick range bars onto a faster chart without issue using Study Price/Overlay. I can also easily setup the entry condition using Color Bar/Trading System Based on Alert Condition on the 5 tick chart. What I cannot seem to do is to incorporate the 12 tick bar as a "filter" for the 5 tick bars so that entry signals are only in the direction of the previous 12 tick bar. For example: The previous 12 tick range bar closes up. I now want to enter a long trade based on the 5 tick chart and only once per 12 tick bar. Vice versa for short. Right now, if I reference the ID.SG#'s from the Study/Price Overlay of the 12 tick bars, it seems to be ignored. Example (ID:2 is the 12 tick range bar overlay SG4 = Last, SG2 = High): =AND(ID:2.SG4[-1] = ID:2.SG2[-1], C[-1] = L, C = H) Can this be done at all using Trading System based on Alert Condition? If not, can someone point me to any alternatives? Appreciate it. Date Time Of Last Edit: 2019-04-06 16:21:59
|
[2019-04-06 18:12:09] |
John - SC Support - Posts: 40745 |
Your references to the study IDs is incorrect. You want to reference them as ID2, not ID:2. This is probably where your issue is. Refer to the documentation here: Study/Chart Alerts And Scanning: Referencing Other Studies on the Chart For the most reliable, advanced, and zero cost futures order routing, use the Teton service: Sierra Chart Teton Futures Order Routing Date Time Of Last Edit: 2019-04-06 18:12:43
|
[2019-04-06 18:31:48] |
cmet - Posts: 708 |
Thanks but that's not it. ID:2 and ID2 are interchangeable. Either one can be used. Changing that didn't affect anything. |
To post a message in this thread, you need to log in with your Sierra Chart account: