Selling positions not purchased via Wealth-Lab?
Author: jheffez
Creation Date: 7/3/2014 2:49 PM
profile picture

jheffez

#1
Hello,

In my code I would like to place sell trades for positions that Wealth-Lab is not aware of. For example, my code strategy needs to place a sell order for stocks I purchased in the past or via fidelity web site or activetrader pro. I don’t know how to do it since the “LastActivePosition” in (SellAtMarket(bar + 1, LastActivePosition, Bars.Symbol) is not active and therefore Wealth-Lab won’t execute. So, I either need to obtain the positions to let Wealth-Lab know I have active positions. Or, somehow force wealth to place a Sell (not manually, but in the code). Please help

Thank you,
J
profile picture

Eugene

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