挿入コード// --------------------------------------------- --------------------- /| HighLow_Custom.mq4 |/ ----------------------------------------------- ------------------- #property indior_chart_window #property indior_buffers 5 #property indior_color1 DodgerBlue #property indior_color3 DodgerBlue #property indior_color4 HotPink #property indior_color5 HotPink/ - ---内部バッファが2倍になる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。外部文字列Time_Frame = D1; int timeFrame;/ ----------------------------------------------- ------------------- /|カスタムインド初期化機能|/ ----------------------------------------------- ------------------- int init(){if(Time_Frame == M1){timeFrame = PERIOD_M1;}そうでなければ(Time_Frame == M5){timeFrame = PERIOD_M5;そうでなければ(Time_Frame == M15){timeFrame = PERIOD_M15;そうでなければ(Time_Frame == M30){timeFrame = PERIOD_M30;そうでなければ(Time_Frame == H1){timeFrame = PERIOD_H1;そうでなければ(Time_Frame == H4){timeFrame = PERIOD_H4;そうでなければ(Time_Frame == D1){timeFrame = PERIOD_D1;そうでなければ(Time_Frame == W1){timeFrame = PERIOD_W1;そうでなければ、(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)を返します。/ -------------------------------------------------- -------------------- /|カスタムインイニシャル初期化解除関数// ----------------------------------------------- ------------------- int deinit(){Comment();} (0)を返します。/ -------------------------------------------------- -------------------- /|カスタムの内部反復関数// ----------------------------------------------- ------------------- int start(){intシフト、i、CurDay、BarCount;ダブルDayMax、DayMin。 double DayOpen、DayClose、Avg。 (shift = Bars-1; shiftgt; = 0; shift--){int timeFrameIndex = iBarShift(NULL、timeFrame、Time#91; shift#93;、true); if(CurDay!= iTime(NULL、timeFrame、timeFrameIndex)){((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 =オープン#91;シフト#93;; (DayMax lt; High#91; shift#93;){DayMax = High#91; shift#93;; (DayMin gt;低#91;シフト#93;){DayMin =低#91;シフト#93;;} BarCount = BarCount 1; }(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 =閉じる#91; 0#93 ;; Avg =(DayMax DayMin)/2; (0)を返します。/ -------------------------------------------------- -------------------- *コメント(DayMin、DoubleToStr(ExtMapBuffer3#91; 0#93;、数字)、n、.25、DoubleToStr(ExtMapBuffer4#) 91; 0#93;、桁数)、n、.50、DoubleToStr(ExtMapBuffer2#91; 0#93;、桁数)、n、.75、DoubleToStr(ExtMapBuffer5#91; 0#93;、桁数)、n、 DayMax、DoubleToStr(ExtMapBuffer1#91; 0#93;、数字)、n、); *
1添付ファイルこのインディアにシフトオプションを置くことができる人はいますか? (このスレッドと同じものですが、とにかくここに投稿します)ありがとう、〜Tim
https://www.forexgroove.com/attachme...1094153859.mq4