- जुलाई 27, 2017
- के द्वारा प्रकाशित किया गया: विदेशी मुद्रा विकी टीम
- वर्ग: MQ5
कोई टिप्पणी नहीं
1692
1557
Growth of the code बहु मध्यस्थता 1.000 .
से विविधताएँ 1.000 :
-
- जानकार सलाहकार केवल PERIOD_M1 पर प्रारंभ होता है (कारण के लिए नीचे देखें, see the निर्धारित समय - सीमा पैरामीटर ).
- अब यह सलाहकार सीधे दो प्रतीकों पर व्यापार करता है. The second character is taken from the static array ExtArrSymbols :
String ExtArrSymbols [ 20 ] = ; //+------------------------------------------------------------------+ //| जानकार आरंभीकरण प्रदर्शन करते हैं | //+------------------------------------------------------------------+ int यहाँ OnInit()
- The precept of opening positions is modified:
- Now the brand new place "खरीदना" might be opened solely when the present worth is under the bottom place "खरीदना";
- The brand new place "बेचना" might be opened solely when the present worth is increased than the best place of "बेचना":
- The निर्धारित समय - सीमा parameter is entered - now you'll be able to optimize on any interval of the graph. The Knowledgeable Advisor itself works solely when a brand new bar seems on the principle image (on the image on which the Knowledgeable Advisor is operating):
// + ----------------------------------------------- ------------------- + // | Knowledgeable tick perform | // + ----------------------------------------------- ------------------- + void OnTick () { // --- we work solely on the time of the beginning of latest bar static datetime prevtime = 0 ; datetime time_0 = iTime ( 0 , m_symbol_one.Title () , InpTimeFrame ); अगर (time_0 == prevtime) वापस करना ; Prevtime = time_0;
यहीं, the variable InpTimeFrame is our enter parameter निर्धारित समय - सीमा . इस प्रकार, relying on the worth of the enter parameter निर्धारित समय - सीमा, we will make the EA work on any timeframe!
The outcomes of the take a look at for EURUSD: