Strucutre of programm

 

hi,

i want to create an EA which has 3-5 profit targets for every trade in a hedging account. is the best way to achieve this is by placing 3-5 different trades and setting different TPs? Are there any other potentially more efficient ways to achieve this?

 
Your topic has been moved to the section: Expert Advisors and Automated Trading
Please consider which section is most appropriate — https://www.mql5.com/en/forum/172166/page6#comment_49114893
 
luccc: i want to create an EA which has 3-5 profit targets for every trade in a hedging account. is the best way to achieve this is by placing 3-5 different trades and setting different TPs? Are there any other potentially more efficient ways to achieve this?

Separate trades with different T/P is the easiest to achieve, especially for a beginner coder on a "hedging" account.

Another option is a single trade for the full volume and then applying a partial close at the various profit price levels which is ideal for "netting" account, but this requires better coding skills.

Both options have advantages and disadvantages.