Alert.BasisPrice is zero for sell orders?
Author: fred9999
Creation Date: 3/4/2015 6:04 PM
profile picture

fred9999

#1
I wrote a simple code in order to on top New Pane to see signals for today:

CODE:
Please log in to see this code.


Order for opening positions are well:



But in order to close a position, exit price is always zero:




Probably doing something wrong. Could you tell?
profile picture

Eugene

#2
Wealth-Lab uses BasisPrice only for sizing Positions. Consequently, Alert.BasisPrice only makes sense for entry orders.

P.S. Next time you might want to attach screenshots directly to your post via "Add Attachments" (file must be PNG/JPG below 2-3MB in size). No need in external sources for posting pictures.
profile picture

Eugene

#3
Workaround using Alert.Position.Tag property:

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

fred9999

#4
Thanks for the reply
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).