ATR และนรก 5 หลัก
Results 1 to 2 of 2

Thread: ATR และนรก 5 หลัก

  1. #1
    ฉันเปลี่ยนรหัสต่อไปนี้เพื่อลองรับ ATR ในอาคารเพื่อแสดง 5 หลักในหน้าต่างข้อมูล สิ่งที่ฉันเพิ่มทั้งหมดคือ Indoor Digits (Digits); มันยังคงแสดงตัวเลข 4 หลักในหน้าต่างข้อมูล

    ใช่ฉันรวบรวมใหม่ปิดและรีสตาร์ท MT4 เป็นต้นและอื่น ๆ ยังไม่ไป

    นี่คือรหัส:
    ใส่รหัส/ --------------------------------------------- --------------------- /| ATR.mq4 |/| ลิขสิทธิ์© 2005, MetaQuotes Software Corp. |/| # 91; URL # 93; http:/www.metaquotes.net/#91;url # 93; |/ ----------------------------------------------- ------------------- #property ลิขสิทธิ์ลิขสิทธิ์© 2005, MetaQuotes Software Corp. # คุณสมบัติ link # 91; url # 93; http:/www.metaquotes.net# 91;url # 93; #property indior_separate_window #property indior_buffers 1 #property indior_color1 DodgerBlue/---- พารามิเตอร์อินพุตภายนอก int AtrPeriod = 14;/---- บัฟเฟอร์คู่ AtrBuffer # 91; # 93 ;; double TempBuffer # 91; # 93 ;;/ ----------------------------------------------- ------------------- /| ฟังก์ชันกำหนดค่าเริ่มต้น indior แบบกำหนดเอง |/ ----------------------------------------------- ------------------- int init () {string short_name;/---- 1 บัฟเฟอร์เพิ่มเติมที่ใช้สำหรับการนับ IndiorBuffers (2); IndiorDigits (ตัวเลข);/---- indior line SetIndexStyle (0, DRAW_LINE); SetIndexBuffer (0, AtrBuffer); SetIndexBuffer (1, TempBuffer);/---- ชื่อสำหรับ DataWindow และ indior subwindow label short_name = ATR ( AtrPeriod ); IndiorShortName (SHORT_NAME); SetIndexLabel (0, SHORT_NAME);/---- SetIndexDrawBegin (0, AtrPeriod);/---- คืน (0); }/ ---------------------------------------------- -------------------- /| ช่วงจริงโดยเฉลี่ย/ ----------------------------------------------- ------------------- int start () {int i, counted_bars = IndiorCounted ();/---- ถ้า (Barslt; = AtrPeriod) return (0);/---- ศูนย์เริ่มต้นถ้า (counted_barslt; 1) สำหรับ (i = 1; ilt; = AtrPeriod; i ) AtrBuffer # 91; Bars-i # 93; = 0.0;/---- i = Bars-counted_bars-1; ในขณะที่ (igt; = 0) {double high = high # 91; i # 93 ;; double low = ต่ำ # 91; i # 93 ;; ถ้า (i == Bars-1) TempBuffer # 91; i # 93; = สูง - ต่ำ; อื่น {double prevclose = ปิด # 91; i 1 # 93 ;; TempBuffer # 91; I # 93; = MathMax (สูง prevclose) -MathMin (ต่ำ prevclose); } ผม--; }/---- ถ้า (counted_barsgt; 0) counted_bars--; int limit = Bars-counted_bars; สำหรับ (i = 0; ilt; limit; i ) AtrBuffer # 91; i # 93; = iMAOnArray (TempBuffer, Bars, AtrPeriod, 0, MODE_SMA, i);/---- คืน (0); }/ ---------------------------------------------- --------------------

  2. #2

การขออนุญาตโพส

  • ห้ามโพสข้อความใหม่
  • ห้ามโพสตอบ
  • ห้ามแนบไฟล์
  • ห้ามแก้ไขโพส
  •  
  • รหัส BB เปิด
  • Smilies ปิด
  • รหัส [IMG] เปิด
  • รหัส [VIDEO] เปิด
  • รหัส HTML ปิด
นโยบาย Cookie
นโยบาย Cookie: เว็บไซต์ thaitradeforex มีการใช้ cookies และสำหรับการดำเนินการเยี่ยมชมเว็บไซต์ ท่านได้ยอมรับในสิ่งนี้ สำหรับข้อมูลเพิ่มเติมโปรดอ่าน 'Cookie Disclosure'.