幫助hilo指示器
Results 1 to 5 of 5

Thread: 幫助hilo指示器

  1. #1

  2. #2
    插入的代碼// --------------------------------------------- --------------------- /| HighLow_Custom.mq4 |/ ----------------------------------------------- ------------------- #property indior_chart_window #property indior_buffers 5 #property indior_color1 DodgerBlue #property indior_color2巧克力#property indior_color3 DodgerBlue #property indior_color4 HotPink #property indior_color5 HotPink/ - --- indior buffers double ExtMapBuffer1#91;#93 ;; double ExtMapBuffer2#91;#93 ;; double ExtMapBuffer3#91;#93 ;; double ExtMapBuffer4#91;#93 ;; double ExtMapBuffer5#91;#93 ;;外部字符串Time_Frame_value = 0,M1,M5,M15,M30,H1,H4,D1,W1,MN1; extern字符串Time_Frame = D1; int timeFrame;/ ----------------------------------------------- ------------------- /|自定義indior初始化函數|/ ----------------------------------------------- ------------------- int init(){if(Time_Frame == M1){timeFrame = PERIOD_M1; } else if(Time_Frame == M5){timeFrame = PERIOD_M5; } else if(Time_Frame == M15){timeFrame = PERIOD_M15; } else if(Time_Frame == M30){timeFrame = PERIOD_M30; } else if(Time_Frame == H1){timeFrame = PERIOD_H1; } else if(Time_Frame == H4){timeFrame = PERIOD_H4; } else if(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; } if(timeFrame lt; Period()){Alert(時間幀必須高於當前時間); 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);返回(0); }/ ---------------------------------------------- -------------------- /|定制indior deinitialization功能|/ ----------------------------------------------- ------------------- int deinit(){Comment();返回(0); }/ ---------------------------------------------- -------------------- /|自定義indior迭代功能|/ ----------------------------------------------- ------------------- int start(){int shift,i,CurDay,BarCount;雙DayMax,DayMin;雙倍DayOpen,DayClose,Avg; for(shift = Bars-1; shiftgt; = 0; shift--){int timeFrameIndex = iBarShift(NULL,timeFrame,Time#91; shift#93;,true); if(CurDay!= iTime(NULL,timeFrame,timeFrameIndex)){for(i = BarCount; igt; = 0; i--){ExtMapBuffer1#91; shift i#93; = DayMax; ExtMapBuffer2#91;移 I#93; =(DayMax DayMin)/2; ExtMapBuffer3#91;移 I#93; = DayMin; ExtMapBuffer4#91;移 I#93;=(DayMax DayMin)* 0.25; ExtMapBuffer5#91;移 I#93; =(DayMax DayMin)* 0.75; } CurDay = iTime(NULL,timeFrame,timeFrameIndex); BarCount = 0; DayMax = 0; DayMin = 1000; DayOpen = Open#91; shift#93 ;; if(DayMax lt; High#91; shift#93;){DayMax = High#91; shift#93 ;; } if(DayMin gt; Low#91; shift#93;){DayMin = Low#91; shift#93 ;; } BarCount = BarCount 1; } for(i = BarCount; igt; = 0; i--){ExtMapBuffer1#91; shift i#93; = DayMax; ExtMapBuffer2#91;移 I#93; =(DayMax DayMin)* 0.50; ExtMapBuffer3#91;移 I#93; = DayMin; ExtMapBuffer4#91;移 I#93; = DayMin (DayMax-DayMin)* 0.25; ExtMapBuffer5#91;移 I#93; = DayMin (DayMax-DayMin)* 0.75; DayClose =關閉#91; 0#93 ;;平均=(DayMax DayMin)/2;返回(0); }/ ---------------------------------------------- -------------------- * Comment(DayMin,DoubleToStr(ExtMapBuffer3#91; 0#93;,Digits),n,.25,DoubleToStr(ExtMapBuffer4# 91; 0#93;,Digits),n,.50,DoubleToStr(ExtMapBuffer2#91; 0#93;,Digits),n,.75,DoubleToStr(ExtMapBuffer5#91; 0#93;,Digits),n, DayMax,DoubleToStr(ExtMapBuffer1#91; 0#93;,Digits),n,); *

  3. #3
    謝謝,我的朋友。我喜歡你的方法。

  4. #4
    我仍然需要每行顯示價格水平的標籤,因為我同時使用2個印花稅。有人可以幫我嗎?請...提前謝謝你

  5. #5
    1附件是否可以任何人在這個indior上換班? (它與此主題相同,但無論如何我都會在這裡張貼)謝謝,〜蒂姆
    https://www.forex-pedia.com/attachme...1094153859.mq4

發布權限

  • 您不可發布新主題
  • 您不可回复
  • 您不可發布附件
  • 您不可編輯您的帖子
  •  
  • BB代碼是打開的
  • 表情符號是打開的
  • [IMG]代碼是打開的
  • [視頻]代碼是打開的
  • HTML代碼是關閉的
forex-pedia網站使用cookie 文字跟蹤
forex-pedia.com網站使用cookie 文字跟蹤,某些設定已經固定。您可以點擊此處閱讀我們的Cookie使用說明。 請點擊右鍵接受我們的cookies。如果您選擇繼續使用forex-pedia.com網站,我們將認為您接受我們的cookies。