Hi,
I'm trying to turn my stategy into a screener. So I run it on the latest bar (Bars.Count - 1), but when I get a signal and BuyAtMarket(bar+1) is called, it returns no Position object (null).
This I can also see in my PosSizer (which I'm also making applicable to a screener), when SizePosition is called, the first Position argument is null, rendering it useless for me, because I use Position.Tag to add additional info about the to-be-sized position.
Is this normal?
Do I do something wrong?
Thanks,
Wouter
Size:
Color:
A Position cannot be created on a future bar, so all BuyAt (and ShortAt) signals will return null in a screener and in all cases when the entry signal is an Alert.
Size:
Color:
Size:
Color: