Setting a Button & display or trigger to set Long / Short or Both trading

 

Hi..


I would like to set a button to turn off Buy/Sells & or toggle between the three (Buy/Sell/Both).

or at least display what the trading is set to (using the Common option)

Or use an indicator to set the Order direction.


For example.. I have an EA that opens both Buy and Sells, but I want to use another indicator to turn off Live trading or set to Only Buys or Only Sells.

Is there a global variable that i can use?


thanks

Any help or direction would be greatly appreciated.

 
Kristina Suh: I would like to set a button to … Is there a global variable that i can use?… Any help or direction …
  1. Help you with what? You haven't stated a problem, you stated a want. You have only four choices:
    1. Search for it.
    2. Beg at
    3. MT4: Learn to code it.
      MT5: Begin learning to code it. If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into yours.
    4. or pay (Freelance) someone to code it.
                Hiring to write script - General - MQL5 programming forum
    We're not going to code it for you (although it could happen if you are lucky or the problem is interesting.) We are willing to help you when you post your attempt (using CODE button) and state the nature of your problem.
              No free help

  2. I assume you meant terminal variables; they have nothing to do with your question.
Reason: