123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184 |
- RSV = (close - lowest(low, 5)) / (highest(high, 5) - lowest(low, 5)) * 100;
- K0 = smma(RSV, 3, 1);
- K = K0;
- D = smma(K0, 2, 1);
- J1 = (3 * K0 - 2 * D);
- plot(J1, title='J1', color='yellow');
- J2 = ma(J1, 2);
- MAV = (2 * close + high + low) / 4;
- VR1 = lowest(low, 21);
- VR2 = highest(high, 21);
- SK = ema((MAV - VR1) / ( VR2 - VR1) * 100,8);
- plot(SK, title='SK', color='white');
- SD = ema(0.667 * SK[1] + 0.333 * SK, 1);
- plot(SD, title='SD', color='cyan');
- SJ = 3 * SK - 2 * SD;
- A1 = close[2];
- A2 = smma(max(close - A1, 0), 7, 1) / sma(abs(close - A1), 7, 1) * 100;
- 波段介入点 = A2 < 19 ? 19 : 0
- plot(波段介入点, title='波段介入点', color='white');
- VAR1 = (low[1] + open[1] + close[1] + high[1]) / 4;
- VAR2 = smma(abs(low - VAR1), 13, 1) / smma(max(low - VAR1, 0), 10, 1);
- VAR3 = ema(VAR2, 10);
- VAR4 = lowest(low, 33);
- VAR5 = ema(low <= VAR4 ? VAR3 : 0, 3);
- 主力进场 = VAR5 > VAR5[1] ? VAR5 : 0;
- plot(主力进场, title='主力进场', color='red');
- show_var5 = VAR5 > VAR5[1];
- plotColumn(VAR5, title='VAR5', color='red', fill=true, display=show_var5);
- plotColumn(VAR5, title='VAR5', color='000055', fill=true, display=show_var5);
- plotColumn(VAR5, title='VAR5', color='000077', fill=true, display=show_var5);
- plotColumn(VAR5, title='VAR5', color='000099', fill=true, display=show_var5);
- plotColumn(VAR5, title='VAR5', color='0000BB', fill=true, display=show_var5);
- plotColumn(VAR5, title='VAR5', color='0000DD', fill=true, display=show_var5);
- plotColumn(VAR5, title='VAR5', color='0000FF', fill=true, display=show_var5);
- 洗盘 = VAR5 < VAR5[1] ? VAR5 : 0;
- plot(洗盘, title='洗盘', color='green');
- plotColumn(VAR5, title='VAR5', color='green', fill=true, display=!show_var5);
- plotColumn(VAR5, title='VAR5', color='005500', fill=true, display=!show_var5);
- plotColumn(VAR5, title='VAR5', color='007700', fill=true, display=!show_var5);
- plotColumn(VAR5, title='VAR5', color='009900', fill=true, display=!show_var5);
- plotColumn(VAR5, title='VAR5', color='00BB00', fill=true, display=!show_var5);
- plotColumn(VAR5, title='VAR5', color='00DD00', fill=true, display=!show_var5);
- plotColumn(VAR5, title='VAR5', color='00FF00', fill=true, display=!show_var5);
- VAR12 = smma(abs(VAR1 - high), 13, 1) / smma(max(VAR1 - high, 0), 10, 1);
- VAR13 = ema(VAR12, 10);
- VAR14 = highest(high, 33);
- VAR15 = ema(high >= VAR14 ? VAR13 : 0, 3);
- 冲顶 = VAR15 > VAR15[1] ? VAR15 : 0;
- plot(冲顶, title = '冲顶', color='FF00FF');
- show_var15 = VAR15 > VAR15[1];
- plotColumn(VAR15, title='VAR15', color='FF00FF', fill=true, display=show_var15);
- plotColumn(VAR15, title='VAR15', color='550055', fill=true, display=show_var15);
- plotColumn(VAR15, title='VAR15', color='770077', fill=true, display=show_var15);
- plotColumn(VAR15, title='VAR15', color='990099', fill=true, display=show_var15);
- plotColumn(VAR15, title='VAR15', color='BB00BB', fill=true, display=show_var15);
- plotColumn(VAR15, title='VAR15', color='DD00DD', fill=true, display=show_var15);
- plotColumn(VAR15, title='VAR15', color='FF00FF', fill=true, display=show_var15);
- 主力出场 = VAR15 < VAR15[1] ? VAR15 : 0;
- plot(主力出场, title = '主力出场', color='yellow');
- plotColumn(VAR15, title='VAR15', color='yellow', fill=true, display=!show_var15);
- plotColumn(VAR15, title='VAR15', color='005555', fill=true, display=!show_var15);
- plotColumn(VAR15, title='VAR15', color='007777', fill=true, display=!show_var15);
- plotColumn(VAR15, title='VAR15', color='009999', fill=true, display=!show_var15);
- plotColumn(VAR15, title='VAR15', color='00BBBB', fill=true, display=!show_var15);
- plotColumn(VAR15, title='VAR15', color='00DDDD', fill=true, display=!show_var15);
- plotColumn(VAR15, title='VAR15', color='00FFFF', fill=true, display=!show_var15);
- X_1 =(close - ma(close, 13)) / ma(close, 13) * 20;
- X_2 =(close - ma(close, 4)) / ma(close, 4) * 20;
- 红柱 = smma(X_1, 3, 1);
- plot(红柱, title = '红柱', color='red');
- 蓝柱 = smma(X_2, 3, 1);
- plot(蓝柱, title = '蓝柱', color='cyan');
- plotColumn(红柱, title='红柱', color='red', fill=true, display=(红柱 < 红柱[0.5] && 红柱 > 0));
- plotColumn(红柱, title='红柱', color='green', fill=true, display=(红柱 < 红柱[1] && 红柱 > 0));
- plotColumn(红柱, title='红柱', color='red', fill=true, display=(红柱 > 红柱[1] && 红柱 > 0));
- plotColumn(蓝柱, title='蓝柱', color='00DDFF', fill=true, display=(蓝柱 < 蓝柱[1] && 蓝柱 > 0));
- plotColumn(红柱, title='红柱', color='FFDD00', fill=true, display=(红柱 > 红柱[1] && 红柱 < 0));
- plotColumn(红柱, title='红柱', color='FFCC00', fill=true, display=(红柱 < 红柱[1] && 红柱 < 0));
- plotColumn(蓝柱, title='蓝柱', color='magenta', fill=true, display=(蓝柱 > 蓝柱[1] && 蓝柱 < 0));
|