Bar + 1
Author: andyk364
Creation Date: 4/18/2009 7:37 AM
profile picture

andyk364

#1
Hello,
I notice that most of the entry/exit code includes within the bracket "Bar + 1". (eg. BuyAtClose(Bar + 1, etc..)
Can someone please explain, what does this do differently to just having "Bar" ? (eg. BuyAtClose(Bar, etc...)

profile picture

Eugene

#2
Bars, Loops, and Bar + 1

Although it belongs to the WL4 Knowledge Base, it fits WL5 perfectly.
profile picture

andyk364

#3
Thanks.
profile picture

andyk364

#4
I have read the link and understood that a reason to use "Bar+1" would be to avoid 'peeking'.

I'm only using 'AtClose' orders and believe that I can use just "Bar" without having any 'peeking' issues - is this correct?

What are the other trading implications mentioned in this extract from the linked article? -
"(AtClose orders are actually an exception to this rule, but use of this signal type has other trading implications.) "


profile picture

Eugene

#5
By the way, now in the WL5 Wiki:
Bars, Loops, and bar + 1

QUOTE:
I'm only using 'AtClose' orders and believe that I can use just "Bar" without having any 'peeking' issues - is this correct?

Yes.
QUOTE:
What are the other trading implications mentioned in this extract from the linked article? -

For example, see the WealthScript Programming Guide -

* Programming Trading Strategies > Peeking
* Programming Trading Strategies > Alerts - How to: Alert for AtClose Signals

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).