running a WL 5.1 program continuously
Author: haytac
Creation Date: 11/30/2008 10:56 AM
profile picture

haytac

#1
Hi,

I am using WL 5.1 to run a program. The time scale I use is 5 minutes.

I need to click 'go' to get updated price values so that the program runs again to compute including the last price values.

Is there a way to automate this so that every so often the program runs again.

Thanks!
profile picture

Eugene

#2
What do you have in mind?

A. Is there a static datasource like ASCII (updated in the background by your "program") that you intend to turn into pseudo real time?

B. Or the term "program" should be treated as a WealthScript-based trading Strategy?

In other words, it's not yet clear.
profile picture

Cone

#3
Clicking "Go" doesn't give the script access to updated prices in a streaming chart if the larger interval is not complete. If you want to run the script once every minute, then use 1 minute bars instead. Use the timeframe functions to build indicators based on the 5-minute interval. If a Provider supports them, you can even use sub 1-minute bars or even tick bars for more frequent updates.
profile picture

haytac

#4
I would like my Wealth Lab Strategy to run continuously in 1 minute update mode. In other words instead of clicking 'go' I would like the Strategy to do this autonomously.

Can you please tell me how to do this?

Thanks,
profile picture

Eugene

#5
QUOTE:
In other words instead of clicking 'go' I would like the Strategy to do this autonomously.

In other words, do what clicking "Streaming" on a 1-minute chart does, but in any time scale?
profile picture

haytac

#6
Thank you for your patience. It turns out the Strategy Monitor runs a Strategy at regular intervals to generate alerts (I have not checked this out yet --my strategy does not have an alert yet-- but the monitor says it keeps running it). However, while it runs the Strategy it does not update the associated Strategy window. Can this be made to happen?
profile picture

Cone

#7
QUOTE:
the Strategy it does not update the associated Strategy window.
Did you click the "Streaming" button?

profile picture

Eugene

#8
QUOTE:
However, while it runs the Strategy it does not update the associated Strategy window. Can this be made to happen?


Strategy Monitor runs its own compiled copy of a Strategy, there is no associated strategy window.
profile picture

haytac

#9
If you right click on a strategy line in the strategy window there is a function called 'OPen this strategy in a strategy window' which works. However, this window does not update in the time scale. One must click 'go'.

The nice thing about having this capability is to see one's startegy working real time. This way one gets an idea of an approaching signal.

It would be nice for the strategy monitor to send an update signal to the strategy windows that have been opened this way.

Thanks!
profile picture

Cone

#10
haytac, it's not going to work that way, sorry. If you want to see it in realtime (updating) in a Strategy Window, you have to turn on Streaming.

It's a convenience to "open this strategy in a strategy window", but these are two separate tools that have no other connection between them.
profile picture

haytac

#11
Cone, thanks. I have 'streaming' on the lower right hand corner. But, it does not update itself every 1 minute, say. I have to click 'go'. Is there a way for it to refresh each 1 minute (or whatever time scale that was assigned to this window)?

Kind of like the quote window that updates every few seconds by itself.
profile picture

Cone

#12
No, there's no way to do that on a 1-minute chart.

A 1-min streaming window will update once every minute if there's been a trade in the interval. If it's not working that way, you've got a problem that we've never seen.