I'm getting some trouble to add a condition in my strategy.
Actually i would like to add a condition on a portfolio strategy which trigger another condition after a certain date if my portfolio P&L is above certain amount.
I Don't know if we might use "Portfolio_NetProfit" only between a set of dates, for example between the first of january 2024 and today.
The dummy code of what i want to do is :
Code: Select all
if "Portfolio_NetProfit" between (1240101) and today is >= 1000 then...
Can someone help me to code it?
Many thanks in advance.