Login Page - Create Account

Support Board


Date/Time: Sun, 28 Apr 2024 05:04:13 +0000



Block timing for turning on Algo system

View Count: 926

[2020-05-31 22:35:52]
User994498 - Posts: 27
Hi,
I am in the process of automating signals that were created by a third party. I am using the automated system based on alert condition. Is there anyway to start it at some time, stop it for 65 mins, and then start it up again? I only see one start and one end time. I would want to start it at 00:00:00EST stop it at 16:54:59EST and then start it again at 18:01:00 EST. Is there a way to do this within sierra chart or will I have to contact the creator of the signals?

Please let me know!
Jordan
[2020-05-31 23:34:23]
User994498 - Posts: 27
I was just thinking: would it work if I duplicated the current "trading system based on alert condition" studies and just had one group run form 00:00:01EST-16:54:00EST and another group run from 18:01:00EST to 00:00:00? And just to make sure I understand what this would do: this would prevent my algo from trading in between 4:54pmEST and 6pmEST. Is this correct?
[2020-06-01 00:07:45]
Ackin - Posts: 1865
If someone was making signals for you, it should be easy for them to create a time filter. There is no direct item in Sierrachart as such.

In my forum among members, we have treated, for example, through a study that directly ban trading at the user defined time. It can also be solved via Spreadsheet. Or directly by blocking in the study you use if the devoleper adjusts it for you.

(temporary solution): use the Sierra Time Range Highlight study and combine its output with your signal and use the Colorbar study in the formula with "AND". The output of this will be the input to the automatic trading system.

Another way is to use an alert in a colorbar study for time - outside this time-range, your signal will not be displayed ....
[2020-06-01 00:55:28]
User994498 - Posts: 27
Well I have 4 "Trading system based on alert" studies. One for buy entry, one for buy exit, one for short entry, one for short exit. Can't I just dupe them and change the times in which they work and just not include 4:54pmEST-6pm EST?
[2020-06-01 01:01:34]
Ackin - Posts: 1865
You can ... I've written you a few ways to solve ... I don't know what's best for you. It is quick to use alerts to try / for tests. Later.... If you want to trade live - then I would go the ACSIL study for speed and stability ......
[2020-06-01 01:09:51]
User994498 - Posts: 27
The algo that the "Trading System based on Alert Condition" studies are running off of is written in ASCL so wouldn't it be more like using two separate studies, both all coded in ASCL? Thus, would there really be that much of a difference (a reasonable recognizable difference) in the speed and stability?
[2020-06-01 01:10:18]
User994498 - Posts: 27
two separate algos** not two separate studies
[2020-06-01 13:03:05]
User994498 - Posts: 27
Hi,
I recently ran a backtest with this system using the two groups of two identical groups of algos with exact start and end times. One group starts at 00:00:01 and goes till 16:54:00 and the other starts at 18:01:00 and goes till 00:00:00. Can you please explain why in the trade history, I see it taking trades in the 17:00:00 hour and this method does not flatten all positions at 16:54:00 and ban it until 18:01:00?

Thanks,
Jordan
[2020-06-01 13:16:20]
Ackin - Posts: 1865
Can you please explain why in the trade history, I see it taking trades in the 17:00:00 hour and this method does not flatten all positions at 16:54:00 and ban it until 18:01:00?

I can only tell you "why" in the studies I have created.

btw Your previous question:
ACSIL is very stable, I have several years of testing various systems. Alerts or spreadsheets are not a problem either. The problem is the pieces are glued together and this is done by most people here on the forum. Without deeper knowledge and experience, situations and moments of surprise arise as to why something ended the trade or why we are still in a position. Many aspects affect the priority of the sequence of commands, multitimeframe strategies also have their specifics. Everything is real and you can achieve great system stability ... if it is approached with all possible points of view, what can happen there in the background of the program.
[2020-06-01 13:25:15]
User994498 - Posts: 27
So the best way to do it is to have the dev create a direct time ban on trading within the code?
[2020-06-01 13:29:25]
User994498 - Posts: 27
Also, is there something in the works that will allow users, in the inputs of the "Trading System based on Alert Condition" study to directly ban trading during certain times? It seems like it would be a very easy feature to add.
[2020-06-01 13:41:05]
Ackin - Posts: 1865
So the best way to do it is to have the dev create a direct time ban on trading within the code?
Yes, ask him to add a user time field where you will then be able to select a time interval (algo enabled / algo disabled) in the settings. This is the purest adjustment.


would be a very easy feature to add.
ok... so the whole conversation about stability above was probably misunderstood by you .....

have a nice day and good luck
[2020-06-02 19:07:47]
Sierra Chart Engineering - Posts: 104368
In regards to post #1 you need to make changes to the Trading System Based on Alert Condition study to do this:
How to Build an Advanced Custom Study from Source Code

You just need to implement a check for an additional set of times.
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
[2020-06-03 17:28:02]
User994498 - Posts: 27
Thank you. Someone was able to help me out. Another quick question: Is it possible to have two sets of risk mgmt. settings for an automated trading system so one for US RTH and one for the evening and overnight sessions?

Let me know!

Thanks!

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

Login

Login Page - Create Account