Ea doesn’t open a new position on another symbol

 
Hi everyone, I’m new in mql5 programming and I’m trying to create my ea, but I’ve a problem.
In this ea when a position is open on a symbol, it doesn’t open another position on a different symbol.. I don’t kwon if it’s a code or logic problem. Thank you for your help
 

This might help you:

    Before learning to code in MQL5 learn to search as there's virtually nothing that hasn't already been programmed for MT4/MT5 and is ready for you!
    => Search in the articles: https://www.mql5.com/en/articles
    => Search in the codebase: https://www.mql5.com/en/code
    => Search in general: https://www.mql5.com/en/search or via Google with: "site:mql5.com .." (forgives typos and variants)
    If you place the cursor on an MQL function and press F1, you will see the reference directly, many with examples to copy and paste - the fastest form to code!
    https://www.mql5.com/en/articles/496
    https://www.mql5.com/en/articles/100
    https://www.mql5.com/en/articles/599
    https://www.mql5.com/en/search#!keyword=cookbook
    and for debugging: https://www.metatrader5.com/en/metaeditor/help/development/debug
    learn to read and understand the error!

MQL5 Articles
MQL5 Articles
  • www.mql5.com
MQL5 Programming Articles
 
Carl Schreiber #:

This might help you:

    Before learning to code in MQL5 learn to search as there's virtually nothing that hasn't already been programmed for MT4/MT5 and is ready for you!
    => Search in the articles: https://www.mql5.com/en/articles
    => Search in the codebase: https://www.mql5.com/en/code
    => Search in general: https://www.mql5.com/en/search or via Google with: "site:mql5.com .." (forgives typos and variants)
    If you place the cursor on an MQL function and press F1, you will see the reference directly, many with examples to copy and paste - the fastest form to code!
    https://www.mql5.com/en/articles/496
    https://www.mql5.com/en/articles/100
    https://www.mql5.com/en/articles/599
    https://www.mql5.com/en/search#!keyword=cookbook
    and for debugging: https://www.metatrader5.com/en/metaeditor/help/development/debug
    learn to read and understand the error!

Thank you!! I tried a lot of solution but I haven't solve the problem.. now I can continue to search...

 
Carl Schreiber #:

This might help you:

    Before learning to code in MQL5 learn to search as there's virtually nothing that hasn't already been programmed for MT4/MT5 and is ready for you!
    => Search in the articles: https://www.mql5.com/en/articles
    => Search in the codebase: https://www.mql5.com/en/code
    => Search in general: https://www.mql5.com/en/search or via Google with: "site:mql5.com .." (forgives typos and variants)
    If you place the cursor on an MQL function and press F1, you will see the reference directly, many with examples to copy and paste - the fastest form to code!
    https://www.mql5.com/en/articles/496
    https://www.mql5.com/en/articles/100
    https://www.mql5.com/en/articles/599
    https://www.mql5.com/en/search#!keyword=cookbook
    and for debugging: https://www.metatrader5.com/en/metaeditor/help/development/debug
    learn to read and understand the error!

Thank you, I solved the problem.. :)

 
Gabriele Zuccala #:

Thank you, I solved the problem.. :)

See: "Heaven helps those who help themselves"

:)

 
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
Reason: