Hi guys,
Newbie here. I have searched the Help docs extensively, particularly in the area of portfolio.positions_value etc. however, I have not found any option for me to feed in the VALUE of my most RECENT BUY price (whether that was a year ago or a day ago).
The task at hand is extremely simple, here's a pseudo code to clarify:
Buy at price X
Sell when price is > X
(Obviously I have a whole algorithm with various conditions but it's just this very SIMPLE bit that I haven't cracked yet)
Your help would be massively appreciated!