Not logged in
Viewing 2 posts - 1 through 2 (of 2 total)

Forums>AlgoWizard / EA Wizard>General Discussion>Move SL to multiple Orders ?

  • #257466 |
    Participant
    126 Posts

    Hello, i like to use multiple orders trail with “Move SL to” conduction.
    My EA counts up magic number … variable  “magicLong + 2”  for every new long Position.

    Now i like to move SL all orders. How can i do that ?

    regards

    #257477
    tomas262
    Administrator
    1823 Posts

    It is not possible to move like 10 stop-losses at once.

    You could make a workaround like “hidden stop-loss” meaning the original stops would remain the same but you would setup a condition to protect open profit.

    The condition can be set like a classic trailing stop or move-to-breakeven. For example you can add a variable “minProfit (int)” and setup a condition:

    If (Open P/L $ (magic = 0)) > 100 Then minProfit = 0;

    Now setup another conditions like

    If (Open P/L $ (magic = 0)) <= minProfit Then Close All Positions;

    This way all trades (positions) will be exited when profit falls to zero or breakeven

    Let me know if you need any other help with this

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.