Not logged in
Viewing 5 posts - 1 through 5 (of 5 total)
  • #113870 |
    Customer
    72 Posts

    This is the variable which is a positive number

    Attachments in this forum are visible only for registered users.

     

    This is the P&L

    Attachments in this forum are visible only for registered users.

     

     

    and this is the code

    Attachments in this forum are visible only for registered users.

     

    It does not work, should I leave the SL variable (Max_Loss_in_Currency) value as positive?

    #131080
    Moderator
    1559 Posts

    Hi JS17,

     

    I am trying to test this. Will let you know.

    #131081
    Customer
    72 Posts

    Thankyou Tomas

    #131096
    Moderator
    1559 Posts

    I would guess you need to change the exit condition from PL >= Max_Loss to PL <= Max_Loss since you want to close position when open P/L is less then -1 * Max_Loss

    You can also attach your EA Wizard file in the EA Wizard private forum thread in case this does not solve your problem.

    #131097
    Customer
    72 Posts

    Tomas, I will try that and if it does not work then I will do as you say – thankyou

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

You must be logged in to reply to this topic.