Net Profit in a script
Author: bhos4000
Creation Date: 12/1/2009 2:10 AM
profile picture

bhos4000

#1
How can I access 'net profit' in a script? eg. net profit on a specific bar or date.
profile picture

Eugene

#2
Please see NetProfitAsOfBar and NetProfitAsOfBarPercent in the QuickRef (Position object).
profile picture

bhos4000

#3
ok, thanks. This per position.

Where can I access the total equity (the values of the equity curve) on specific bar or date in a script?
profile picture

Eugene

#4
You will access the total equity in PosSizers starting from version 5.6. This is the recommended way.

There's an arcane way of accessing the portfolio equity in a Strategy (unsupported):

WealthScript Techniques | Interacting Dynamically with Portfolio Level Equity
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).