Membantu penunjuk hilo
Results 1 to 5 of 5

Thread: Membantu penunjuk hilo

  1. #1

  2. #2
    Kod dimasukkan/ --------------------------------------------- --------------------- /| HighLow_Custom.mq4 |/ ----------------------------------------------- ------------------- #property indior_chart_window #property indior_buffers 5 #property indior_color1 DodgerBlue #property indior_color2 Chocolate #property indior_color3 DodgerBlue #property indior_color4 HotPink #property indior_color5 HotPink/- --- buffer indior double ExtMapBuffer1 # 91; # 93 ;; double ExtMapBuffer2 # 91; # 93 ;; double ExtMapBuffer3 # 91; # 93 ;; double ExtMapBuffer4 # 91; # 93 ;; double ExtMapBuffer5 # 91; # 93 ;; tali luaran Time_Frame_value = 0, M1, M5, M15, M30, H1, H4, D1, W1, MN1; rentetan luaran Time_Frame = D1; int timeFrame;/ ----------------------------------------------- ------------------- /| Fungsi permulaan indir custom |/ ----------------------------------------------- ------------------- int init () {if (Time_Frame == M1) {timeFrame = PERIOD_M1; } lain jika (Time_Frame == M5) {timeFrame = PERIOD_M5; } else if (Time_Frame == M15) {timeFrame = PERIOD_M15; } else if (Time_Frame == M30) {timeFrame = PERIOD_M30; } lain jika (Time_Frame == H1) {timeFrame = PERIOD_H1; } else if (Time_Frame == H4) {timeFrame = PERIOD_H4; } lain jika (Time_Frame == D1) {timeFrame = PERIOD_D1; } else if (Time_Frame == W1) {timeFrame = PERIOD_W1; } else if (Time_Frame == MN1) {timeFrame = PERIOD_MN1; } else {timeFrame = 0; } jika (timeFrame lt; Tempoh ()) {Isyarat (Tempoh masa mestilah lebih tinggi daripada semasa); deinit (); } SetIndexBuffer (0, ExtMapBuffer1); SetIndexStyle (0, DRAW_LINE); SetIndexBuffer (1, ExtMapBuffer2); SetIndexStyle (1, DRAW_LINE); SetIndexBuffer (2, ExtMapBuffer3); SetIndexStyle (2, DRAW_LINE); SetIndexBuffer (3, ExtMapBuffer4); SetIndexStyle (3, DRAW_LINE); SetIndexBuffer (4, ExtMapBuffer5); SetIndexStyle (4, DRAW_LINE); kembali (0); }/ ---------------------------------------------- -------------------- /| Fungsi deinitialization indior kustom |/ ----------------------------------------------- ------------------- int deinit () {Comment (); kembali (0); }/ ---------------------------------------------- -------------------- /| Fungsi lelaran indior kustom |/ ----------------------------------------------- ------------------- int start () {shift int, i, CurDay, BarCount; double DayMax, DayMin; double DayOpen, DayClose, Purata; untuk (shift = Bars-1; shiftgt; = 0; shift--) {int timeFrameIndex = iBarShift (NULL, timeFrame, Time # 91; shift # 93 ;, true); jika (CurDay! = iTime (NULL, timeFrame, timeFrameIndex)) {for (i = BarCount; igt; = 0; i--) {ExtMapBuffer1 # 91; shift i # 93; = DayMax; ExtMapBuffer2 # 91; shift i # 93; = (DayMax DayMin)2; ExtMapBuffer3 # 91; shift i # 93; = DayMin; ExtMapBuffer4 # 91; shift i # 93;= (DayMax DayMin) * 0.25; ExtMapBuffer5 # 91; shift i # 93; = (DayMax DayMin) * 0.75; } CurDay = iTime (NULL, timeFrame, timeFrameIndex); BarCount = 0; DayMax = 0; DayMin = 1000; DayOpen = Buka # 91; shift # 93 ;; } jika (DayMax lt; Tinggi # 91; peralihan # 93 {DayMax = Tinggi # 91; peralihan # 93 ;; } jika (DayMin gt; Rendah # 91; peralihan # 93 {DayMin = Rendah # 91; peralihan # 93 ;; } BarCount = BarCount 1; } untuk (i = BarCount; igt; = 0; i--) {ExtMapBuffer1 # 91; shift i # 93; = DayMax; ExtMapBuffer2 # 91; shift i # 93; = (DayMax DayMin) * 0.50; ExtMapBuffer3 # 91; shift i # 93; = DayMin; ExtMapBuffer4 # 91; shift i # 93; = DayMin (DayMax-DayMin) * 0.25; ExtMapBuffer5 # 91; shift i # 93; = DayMin (DayMax-DayMin) * 0.75; } DayClose = Tutup # 91; 0 # 93 ;; Purata = (DayMax DayMin)2; kembali (0); }/ ---------------------------------------------- -------------------- * Komen (DayMin, DoubleToStr (ExtMapBuffer3 # 91; 0 # 93 ;, Digit), n, .25, DoubleToStr (ExtMapBuffer4 # 91; 0 # 93 ;, Digit), n, .50, DoubleToStr (ExtMapBuffer2 # 91; 0 # 93 ;, Digit), n, .75, DoubleToStr (ExtMapBuffer5 # 91; 0 # 93; DayMax, DoubleToStr (ExtMapBuffer1 # 91; 0 # 93 ;, Digit), n,); *

  3. #3
    Terima kasih kawan. Saya suka kaedah anda.

  4. #4
    Saya masih memerlukan label pada setiap baris yang menunjukkan tahap harga kerana saya menggunakan 2 indors pada masa yang sama. Sesiapa boleh membantu saya? Tolong ... Terima kasih terlebih dahulu

  5. #5
    1 Lampiran bolehkah seseorang meletakkan pilihan peralihan pada indior ini? (yang sama dengan benang ini, tetapi saya akan hantar di sini juga) terima kasih, ~ Tim
    https://www.justgetforex.com/attachm...1094153859.mq4

Kebenaran Posting

  • Anda tidak boleh menghantar thread baru
  • Anda tidak boleh membalas kiriman
  • Anda tidak boleh mengedit siaran anda
  • Anda tidak boleh menyiarkan lampiran
  •  
  • Kod BB Hidup
  • Smilies Hidup
  • Kod [IMG] adalah Hidup
  • Kod [VIDEO] adalah Hidup
  • Kod HTML Tidak Hidup
Polisi Kuki
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.