Execution flow of WealthScripts in realtime ?
Author: zanek
Creation Date: 8/21/2009 12:14 AM
profile picture



I checked the programming guide but could not find an answer to this question. Do either of you know how the Wealthscript programs are run in realtime ? By that, I mean, does WLP call Execute() on every bar in realtime while the market is open ?

My assumption is that it calls Execute() within my class for every bar, I iterate through the last N bars (in a for loop) from the past up to the present, and then signal WLP to buy or sell. Is the flow of that correct ?

I guess I could test this easily by creating a unique file during Paper testing when the market is open , right after Execute() is called, but I figured I would ask.

Thanks in advance !
profile picture



WL5, like its predecessor, calls Execute() when the current bar closes and a new bar starts.
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).