eugen6786789776
Новичок
- Регистрация
- 07.02.17
- Сообщения
- 37
- Реакции
- 2
eugen6786789776 не предоставил никакой дополнительной информации.
#######CCI
input longLength = 14;
input CCIOversold = -200;
input CCIOverbought = 200;
def price = close;
def LCCI = CCI(length = longLength);
#def sCCI_BUY = LCCI crosses above CCIOverbought;
#def sCCI_SELL = LCCI crosses below CCIOversold;
#########WATERFALL
def WaterfallDn = if (close[3] <= open[3] and close[2] <= open[2] and close[1] <= open[1] and close[0] <= close[1]) then 1 else 0;
def WaterfallUp = if (close[3] >= open[3] and close[2] >= open[2] and close[1] >= open[1] and close[0] >= close[1]) then 1 else 0;
##############VC
input Overbought = 8;
input Slightly_Overbought = 6;
input Oversold = -8;
input Slightly_Oversold = -6;
def FA = Average((high + low) / 2, 5);
def VU = Average(Max(high - low, close - close[1]), 5) * 0.2 + 0.00001;
def VCHigh = Max(Min((high - FA) / VU, 15), 0);
plot ValueChartsSsell =if VCHigh crosses Slightly_Overbought and LCCI crosses above CCIOverbought then 1 else 0;
ValueChartsSsell.SetDefaultColor(Color.WHITE);
ValueChartsSsell.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
Alert(ValueChartsSsell, "PUT Alert", Alert.BAR, Sound.Ring);
plot ValueChartsOsell =if VCHigh crosses Overbought and LCCI crosses above CCIOverbought then 1 else 0;
ValueChartsOsell.SetDefaultColor(Color.WHITE);
ValueChartsOsell.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
Alert(ValueChartsOsell, "PUT Alert", Alert.BAR, Sound.Ring);
def VCLow = Min(Max((low - FA) / VU, -15), 0);
plot ValueChartsSbuy = if VCLow crosses Slightly_Oversold and LCCI crosses below CCIOversold then 1 else 0;
ValueChartsSbuy.SetDefaultColor(Color.WHITE);
ValueChartsSbuy.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
Alert(ValueChartsSbuy, "CALL Alert", Alert.BAR, Sound.Ring);
plot ValueChartsObuy = if VCLow crosses Oversold and LCCI crosses below CCIOversold then 1 else 0;
ValueChartsObuy.SetDefaultColor(Color.WHITE);
ValueChartsObuy.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
Alert(ValueChartsObuy, "CALL Alert", Alert.BAR, Sound.Ring);
#AssignBackgroundColor(if (ValueChartsObuy > 0 or ValueChartsSbuy>0) then Color.DARK_GREEN else if(ValueChartsSsell > 0 or #ValueChartsOsell>0) then Color.DARK_red else Color.CURRENT);
input longLength = 14;
input CCIOversold = -200;
input CCIOverbought = 200;
def price = close;
def LCCI = CCI(length = longLength);
#def sCCI_BUY = LCCI crosses above CCIOverbought;
#def sCCI_SELL = LCCI crosses below CCIOversold;
#########WATERFALL
def WaterfallDn = if (close[3] <= open[3] and close[2] <= open[2] and close[1] <= open[1] and close[0] <= close[1]) then 1 else 0;
def WaterfallUp = if (close[3] >= open[3] and close[2] >= open[2] and close[1] >= open[1] and close[0] >= close[1]) then 1 else 0;
##############VC
input Overbought = 8;
input Slightly_Overbought = 6;
input Oversold = -8;
input Slightly_Oversold = -6;
def FA = Average((high + low) / 2, 5);
def VU = Average(Max(high - low, close - close[1]), 5) * 0.2 + 0.00001;
def VCHigh = Max(Min((high - FA) / VU, 15), 0);
plot ValueChartsSsell =if VCHigh crosses Slightly_Overbought and LCCI crosses above CCIOverbought then 1 else 0;
ValueChartsSsell.SetDefaultColor(Color.WHITE);
ValueChartsSsell.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
Alert(ValueChartsSsell, "PUT Alert", Alert.BAR, Sound.Ring);
plot ValueChartsOsell =if VCHigh crosses Overbought and LCCI crosses above CCIOverbought then 1 else 0;
ValueChartsOsell.SetDefaultColor(Color.WHITE);
ValueChartsOsell.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
Alert(ValueChartsOsell, "PUT Alert", Alert.BAR, Sound.Ring);
def VCLow = Min(Max((low - FA) / VU, -15), 0);
plot ValueChartsSbuy = if VCLow crosses Slightly_Oversold and LCCI crosses below CCIOversold then 1 else 0;
ValueChartsSbuy.SetDefaultColor(Color.WHITE);
ValueChartsSbuy.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
Alert(ValueChartsSbuy, "CALL Alert", Alert.BAR, Sound.Ring);
plot ValueChartsObuy = if VCLow crosses Oversold and LCCI crosses below CCIOversold then 1 else 0;
ValueChartsObuy.SetDefaultColor(Color.WHITE);
ValueChartsObuy.SetPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
Alert(ValueChartsObuy, "CALL Alert", Alert.BAR, Sound.Ring);
#AssignBackgroundColor(if (ValueChartsObuy > 0 or ValueChartsSbuy>0) then Color.DARK_GREEN else if(ValueChartsSsell > 0 or #ValueChartsOsell>0) then Color.DARK_red else Color.CURRENT);