How to schedule a 15-min Strategy in Strategy Monitor once a day?
Author: topbooks
Creation Date: 2/18/2019 10:03 PM
profile picture

topbooks

#1
I need run a Wealth-lab script with 15 minute bar just once at each day end. I want do it in "Strategy monitor", so it is done automatically.

If possible? How?

Thanks a lot.
profile picture

Eugene

#2
Before answering I'd like to learn what kind of script is this. What does it do? Why do you think it should be run at day end rather than each 15 minutes?
profile picture

topbooks

#3
It run on 15m chart, to calc last hour price and volume etc action vs the whole day, the output data will be used for daily chart.
So, let says, I run 5pm today, I got past 400 days last hours trading info. this info now can show up in daily chart.

But seems if it is introday script, it cannot be scheduled run just once per day.
If you can modify "Strategy Monitor" make it can do so, then I do not have to open each script, click it run each day.

If you need more info, please let me know.
Thank you so much, you are the best!
profile picture

Eugene

#4
Add a time condition to your code to skip Strategy execution before of after certain time span:

CODE:
Please log in to see this code.
profile picture

Cone

#5
If you really just need it to run once at the close of the market for the current day, and take into account special hours closing times, then this should work. Assumes U.S. Stock market or data provider with Market Manager support.

CODE:
Please log in to see this code.
profile picture

topbooks

#6
Thank you both. I will try out.
William
profile picture

topbooks

#7
It works! I wish I am good with c# programing like you. Appreciate your help!
Great website, great work!
William
profile picture

Eugene

#8
At your service.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).