Download MetaTrader 5

Speed up my code

To add comments, please log in or register
DiDi
12
DiDi  
I have an imaginary code - 
First question :
I have to get just "bid" and "ask" value for each tick, it's faster with the "MqlTick" structure, or "SymbolInfoDouble" ? 
Second question :
I have (for example) 3 indicator : a moving average "MA" - an average true range "ATR" - an average directional movement index "ADX", it's faster to use the handle "iMA" -"iATR" - "iADX", or write their codes to my program [it's possible to write their code in just one program?] ?
Third question :
I have 1 or more custom indicators : it's faster to use the handle "iCustom", or write their codes to my program?

I hope you can understand what I mean. I'm not so good with english.

Thanks whoever aswer in advise.  
Mohamad Zulhairi Baba
1601
Mohamad Zulhairi Baba  
DiDi:
I have an imaginary code - 
First question :
I have to get just "bid" and "ask" value for each tick, it's faster with the "MqlTick" structure, or "SymbolInfoDouble" ? 
Second question :
I have (for example) 3 indicator : a moving average "MA" - an average true range "ATR" - an average directional movement index "ADX", it's faster to use the handle "iMA" -"iATR" - "iADX", or write their codes to my program [it's possible to write their code in just one program?] ?
Third question :
I have 1 or more custom indicators : it's faster to use the handle "iCustom", or write their codes to my program?

I hope you can understand what I mean. I'm not so good with english.

Thanks whoever aswer in advise.  


Faster than what?? speed of light?

  1. https://docs.mql4.com/predefined // Predefined variable 
  2. https://docs.mql4.com/indicators // Pre programmed custom indicator
  3. Depend, if you have the mql file for custom indicator, and it's favorable to transfer into your program.
    otherwise if you don't, just use iCustom.

Documentation on MQL5: Technical Indicators
Documentation on MQL5: Technical Indicators
  • www.mql5.com
Technical Indicators - Reference on algorithmic/automated trading language for MetaTrader 5
To add comments, please log in or register