- กรกฎาคม 27, 2017
- โพสโดย: ทีมงาน Forex Wiki
- หมวดหมู่: MQ5
ไม่มีความคิดเห็น
1692
1557
Growth of the code อนุญาโตตุลาการหลายราย 1.000 .
แปรผันจาก 1.000 :
-
- ที่ปรึกษาผู้รอบรู้จะเริ่มในวันที่ PERIOD_M1 เท่านั้น (ดูด้านล่างด้วยเหตุผล, ดู กรอบเวลา พารามิเตอร์ ).
- ตอนนี้ที่ปรึกษารายนี้ซื้อขายสองสัญลักษณ์โดยตรง. The second character is taken from the static array ExtArrSymbols :
String ExtArrSymbols [ 20 ] = ; //+------------------------------------------------------------------+ //| การเริ่มต้นที่มีความรู้ดำเนินการ | //+------------------------------------------------------------------+ ภายใน 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 "ขาย":
- เดอะ กรอบเวลา 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 = ไอไทม์ ( 0 , m_symbol_one.Title () , InpTimeFrame ); ถ้า (time_0 == prevtime) return ; 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: