I found some samples to set daily profit target. but I do not know how to set the total profit target for each trade for the strategy, for example:
for current strategy running, I have 2 positions, one is long ES, another one is long CL. I want to close all 2 positions when the total real time profit of (1 ES + 1 CL) >= $500.
Can anyone help me to code this?
Thank you!
Comment