how to multiple indicator ? ( mql4)

 

the question may be funny to someone , but ...... I created an indicator but it only works on one currency pair. How can I make it work on different timefrimes and many other instruments ?

Anyone could help me ?

Thanks :) 

 

It should work on other currency pairs quite simply, just use Symbol() in place of all your currency pair names.

Another difference between currency pairs might be the size of a point, so make sure to check that if you need to.

Similarly with timeframes you can use Period() in place of timeframes, although i'm not sure how to help you otherwise.

 
  1. Jay Tolar: Symbol() in place of all your currency pair names. Similarly with timeframes you can use Period() in place of timeframes, 

    You have it backwards. He wants other symbols/TF.


  2. maniun: but it only works on one currency pair. How can I make it work on different timefrimes and many other instruments ?
    You can't use any Predefined Variable for other symbols/TFs.

  3. "Doesn't work" is meaningless — just like saying the car doesn't work. Doesn't start, won't go in gear, no electrical, missing the key, flat tires — meaningless.
         How To Ask Questions The Smart Way. 2004
              When asking about code

    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.

  4. On MT4: Unless the chart is that specific symbol(s)/TF(s) referenced, you must handle 4066/4073 errors before accessing candle/indicator values.
              Download history in MQL4 EA - Forex Calendar - MQL4 programming forum - Page 3 #26 № 4 2019.05.20