Hai sana, adakah sesiapa yang tahu bagaimana saya akan menambah masa mula dan tamat masa untuk penunjuk ini sepanjang hari, jadi tidak akan menutup?

Ini benar-benar untuk Metatrader 5.

Kod dimasukkan/ --------------------------------------------- --------------------- /| ColorBars.mq5 |/| Hakcipta 2009-2017, MetaQuotes Software Corp .. |/| http://www.mql5.com |/p ----------------------------------------------- ------------------- #property copyright 2009-2017, MetaQuotes Software Corp. #property link http://www.mql5.com #property indior_chart_window #property indior_buffers 5 #property indior_plots 1/- plot ColorBars #property indior_label1 ColorBars #property indior_type1 DRAW_COLOR_BARS #property indior_color1 Green, Red #property indior_label1 Open; High; Low; Close/- indior buffer double ExtOpenBufferNumber 91; # 93 ;; double ExtHighBufferNumber 91; # 93 ;; double ExtLowBuffer # 91; # 93 ;; double ExtCloseBuffer # 91; # 93 ;; double ExtColorsBuffer # 91; # 93 ;;/ ----------------------------------------------- ------------------- /| Fungsi permulaan penunjuk kustom |/ ----------------------------------------------- ------------------- void OnInit ()/- indiors SetIndexBuffer (0, ExtOpenBuffer, INDICATOR_DATA); SetIndexBuffer (1, ExtHighBuffer, INDICATOR_DATA); SetIndexBuffer (2, ExtLowBuffer, INDICATOR_DATA); SetIndexBuffer (3, ExtCloseBuffer, INDICATOR_DATA); SetIndexBuffer (4, ExtColorsBuffer, INDICATOR_COLOR_INDEX);/- tidak menunjukkan data penunjuk dalam DataWindow PlotIndexSetInteger (0, PLOT_SHOW_DATA, false);/- menetapkan Petunjuk KetepatanSetInteger (INDICATOR_DIGITS, _Digits);/ ----------------------------------------------- ------------------- /| Fungsi lelaran indikator khusus |/ ----------------------------------------------- ------------------- int OnCalculate (const int rates_total, const int prev_calculated, const datetime time # 91; # 93 ;, const double available # 91; # 93; , bilangan double high # 91; # 93 ;, const double low # 91; # 93 ;, const double close # 91; # 93 ;, const long tick_volume # 91; # 93 ;, const volume long # 91; # 93; , sebilangan int penyebaran # 91; # 93; -RRB-/- pembolehubah tambahan int I = 0; bool vol_up = true;/- menetapkan kedudukan untuk permulaan jika (tidak terputus)- mulakan pengiraan semasa (tidak; rate_total!) IsStopped ()) ExtOpenBuffer # 91; I # 93; = buka # 91; # 93 ;; ExtHighBuffer # 91; I # 93; = large # 91; I # 93 ;; ExtLowBuffer # 91; I # 93; = dikurangkan # 91; I # 93 ;; ExtCloseBuffer #