My Script runs on a different pair, rather than the currently open chart. MT4

 

Hello!

Please I'm trying to run my script but each time i run it, it doesn't run in my current open chart.


I'm currently on the XAUUSD(Gold) and each time I compile and run my script it runs on EURUSD, and I'm tired of dragging it to my current open chart.

Currently running on MT4 with MQL4

 
  1. “Tired of dragging it?” then make it an EA. A script only runs once by definition.
  2. Why are you compiling it?
  3. Do you really expect an answer? There are no mind readers here and our crystal balls are cracked.

    Always post all relevant code.
         How To Ask Questions The Smart Way. 2004
              Be precise and informative about your problem

    We can't see your broken code.

    Fix your broken code.

    With the information you've provided — we can only guess. And you haven't provided any useful information for that.

Reason: