2 set of strategies for Profit target

Questions about MultiCharts and user contributed studies.
toyutim
Posts: 3
Joined: 21 Aug 2023
Has thanked: 1 time

2 set of strategies for Profit target

Postby toyutim » 20 Oct 2023

Hi all, I combine two strategies into one code. So, there are 2 type of profit target code (setprofittarget_pt(xx)). How can i specify which one for which entry?

For other type of exit, it can set sth like "from entry ("XXX")" to specify which position to be closed. But i have no idea of profittarget type? thanks

User avatar
TJ
Posts: 7743
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2222 times

Re: 2 set of strategies for Profit target

Postby TJ » 20 Oct 2023

SetProfitTarget and SetStopLoss are Global Exits. They are applied to the account instead of individual trades.

If you need to manage trades individually, you will need to code the management individually.


Return to “MultiCharts”