Not logged in

Forums

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

Forums>EA Wizard>Strategy Samples>DROPDOWN MENU TO USE LOTS OR MM

  • #197866 |
    Participant
    22 Posts

    Hello

    How can I create a dropdown menu where I can choose between Lots or %Risk for each trade?

    My target is to use the same EA with the option to choose Lots or %Risk for the trades.

    THANKS

    #197887
    Administrator
    635 Posts

    Hello,

    the dropdown could be done but there is much easier way to do this i.e. by creating two separate “enter order” rules. One will use fixed lot size while the other one will use %risk for an entry order. They will be distinguished by a input variable called for example “usePercentRisk”. If usePercentRisk = 0 the first condition becomes valid, if usePercentRisk = 1 the other one becomes valid. Let me know if you need an example on this or if you have any other questions

    #197898
    Participant
    22 Posts

    Hello

     

    Again you are one step beyond.  😀👏

     

    Thanks for your smart and simple solution.

    Regards

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

You must be logged in to reply to this topic.