SHARE
TWEET

--- part134325

selnomeria Mar 21st, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.        
  2.                 //debug
  3.                 if (Debug_Show_MarketRegimePlot<>"") then begin
  4.                     if( (Debug_Show_MarketRegimePlot="1" and BarComplete_)  OR   Debug_Show_MarketRegimePlot="2") then begin
  5.                         //make lines simulative related to current chart's price-area
  6.                         value12 = maxlist(MarketRegime_ma_1_val,MarketRegime_ma_2_val);
  7.                         value13 = maxlist(MarketRegime_ma_1_val,MarketRegime_ma_3_val);
  8.                         value14 = maxlist(MarketRegime_ma_2_val,MarketRegime_ma_3_val);
  9.                         value22 = minlist(MarketRegime_ma_1_val,MarketRegime_ma_2_val);
  10.                         value23 = minlist(MarketRegime_ma_1_val,MarketRegime_ma_3_val);
  11.                         value24 = minlist(MarketRegime_ma_2_val,MarketRegime_ma_3_val);
  12.                         value1 = iff( MarketRegime_ma_1_val> value14, 1, iff(MarketRegime_ma_1_val<value24, -1, 0 ) );
  13.                         value2 = iff( MarketRegime_ma_2_val> value13, 1, iff(MarketRegime_ma_2_val<value23, -1, 0 ) );
  14.                         value3 = iff( MarketRegime_ma_3_val> value12, 1, iff(MarketRegime_ma_3_val<value22, -1, 0 ) );
  15.                         value9 = tc_DrawDot( close+value1*tt_AvgBarHeight,  yellow,  6, BarDateTime );
  16.                         value9 = tc_DrawDot( close+value2*tt_AvgBarHeight,  cyan,    6, BarDateTime );
  17.                         value9 = tc_DrawDot( close+value3*tt_AvgBarHeight,  magenta, 6, BarDateTime );
  18.                     end;
  19.                 end;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top