"Run this Strategy now" with daily bars
Author: Bionian
Creation Date: 11/14/2009 7:55 AM
profile picture

Bionian

#1
I have a strategy which uses daily bars and buys based on opening prices. If I update my data at 9:35am and select "Run this Strategy now" when the update is finished, will this strategy use the most recent price in place of the daily closing price?

Thanks-
Rick

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

Eugene

#2
If you update the data at 9:35, then:

1) if your data provider doesn't support partial daily bar, then it shouldn't make difference because no today's data will be loaded
2) but if it does (like Yahoo!) and the partial bar option is enabled, then you'll be basing your decisions upon an incomplete bar. The point is that your strategy uses Low[bar] and many indicators based on the closing price, so although the Open[bar] will be valid, the rest of the bar (H,L,C) does not exist until 4:00 PM. These will be just partial H,L, and C.

I've reorganized the code a bit:
CODE:
Please log in to see this code.
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).