AbdooooooAustralian Dollar/Japanese YenFX:AUDJPYfxabotext_bos_lbl.set_textcolor(bearCss) if not stop_crossed and showIdm ext_idm.set_xy1(stopx, stopy), ext_idm.set_xy2(n+15, stopy) ext_idm_lbl.set_xy(n+15, stopy), ext_idm_lbl.set_style(label.style_label_down) ext_idm.set_color(idmCss), ext_idm_lbl.set_textcolor(idmCss) else ext_idm.set_color(na) ext_idm_lbl.set_textcolor(na) //---------------------------------------------------------------------------------------------------------------------} //Plots //---------------------------------------------------------------------------------------------------------------------{ plot(showCircles ? topMS : na, 'Swing High', color.new(bearCss, 50), 5, plot.style_circles, offset = -len) plot(showCircles ? btmMS : na, 'Swing Low', color.new(bullCss, 50), 5, plot.style_circles, offset = -len) //---------------------------------------------------------------------------------------------------------------------} // ------------------------------------ MTF Candles -------------------------------------- type Candle float o float c float h float l int o_idx int c_idx int h_idx int l_idx box body line wick_up line wick_down type Trace line o line c line h line l label o_l label c_l label h_l label l_l type Imbalance box b int idx type CandleSettings bool show string htf int max_display type Settings int max_sets color bull_body color bull_border color bull_wick color bear_body color bear_border color bear_wick int offset int buffer int htf_buffer int width bool trace_show color trace_o_color string trace_o_style int trace_o_size color trace_c_color string trace_c_style int trace_c_size color trace_h_color string trace_h_style int trace_h_size color trace_l_color string trace_l_style int trace_l_size string trace_anchor bool label_show color label_color string label_size bool fvg_show color fvg_color bool vi_show color vi_color bool htf_label_show color htf_label_color string htf_label_size bool htf_timer_show color htf_timer_color string htf_timer_size type CandleSet Candle candles Imbalance imbalances CandleSettings settings label tfName label tfTimer type Helper string name = "Helper" Settings settings = Settings.new() var CandleSettings SettingsHTF1 = CandleSettings.new() var CandleSettings SettingsHTF2 = CandleSettings.new() var CandleSettings SettingsHTF3 = CandleSettings.new() var CandleSettings SettingsHTF4 = CandleSettings.new() var CandleSettings SettingsHTF5 = CandleSettings.new() var CandleSettings SettingsHTF6 = CandleSettings.new() var Candle candles_1 = array.new(0) var Candle candles_2 = array.new(0) var Candle candles_3 = array.new(0) var Candle candles_4 = array.new(0) var Candle candles_5 = array.new(0) var Candle candles_6 = array.new(0) var Imbalance imbalances_1 = array.new() var Imbalance imbalances_2 = array.new() var Imbalance imbalances_3 = array.new() var Imbalance imbalances_4 = array.new() var Imbalance imbalances_5 = array.new() var Imbalance imbalances_6 = array.new() var CandleSet htf1 = CandleSet.new() htf1.settings := SettingsHTF1 htf1.candles := candles_1 htf1.imbalances := imbalances_1 var CandleSet htf2 = CandleSet.new() htf2.settings := SettingsHTF2 htf2.candles := candles_2 htf2.imbalances := imbalances_2 var CandleSet htf3 = CandleSet.new() htf3.settings := SettingsHTF3 htf3.candles := candles_3 htf3.imbalances := imbalances_3 var CandleSet htf4 = CandleSet.new() htf4.settings := SettingsHTF4 htf4.candles := candles_4 htf4.imbalances := imbalances_4 var CandleSet htf5 = CandleSet.new() htf5.settings := SettingsHTF5 htf5.candles := candles_5 htf5.imbalances := imbalances_5 var CandleSet htf6 = CandleSet.new() htf6.settings := SettingsHTF6 htf6.candles := candles_6 htf6.imbalances := imbalances_6 //+------------------------------------------------------------------------------------------------------------+// //+--- Settings ---+// //+------------------------------------------------------------------------------------------------------------+// htf1.settings.show :=