Indicator kotorey doyot vam znat kuda tekushey 1 chas svecha idot, vnis eli noveh:
---- CODE ----
#--------------------------------------------------------------
# OHLC4 Labels
# Copyright © 2014 // airquest // smart-trading.world-record.ch
# Developed with/for ru
.binaryeasy.club
#--------------------------------------------------------------
input timeFrame = {default "1 HOUR", "1 MIN", "2 MIN", "3 MIN", "4 MIN", "5 MIN", "10 MIN", "15 MIN", "20 MIN", "30 MIN", "2 HOURS", "4 HOURS", DAY, "2 DAYS", "3 DAYS", "4 DAYS", WEEK, MONTH, "OPT EXP"};
input HideLines = yes;
#--------------------------------------------------------------
plot OpenMTF = open (period = timeFrame)[0];
plot HighMTF = high (period = timeFrame)[0];
plot LowMTF = low (period = timeFrame)[0];
plot CloseMTF = close(period = timeFrame)[0];
#--------------------------------------------------------------
plot OpenBullish = if OpenMTF > CloseMTF then OpenMTF else Double.NaN;
plot OpenBearish = if OpenMTF < CloseMTF then OpenMTF else Double.NaN;
#--------------------------------------------------------------
OpenBullish.SetPaintingStrategy(PaintingStrategy.ARROW_DOWN);
OpenBearish.SetPaintingStrategy(PaintingStrategy.ARROW_UP);
HighMTF.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
LowMTF.SetPaintingStrategy(PaintingStrategy.HORIZONTAL);
CloseMTF.SetPaintingStrategy(PaintingStrategy.DASHES);
OpenMTF.SetPaintingStrategy(PaintingStrategy.DASHES);
#--------------------------------------------------------------
OpenBullish.SetDefaultColor(Color.RED);
OpenBearish.SetDefaultColor(Color.GREEN);
HighMTF.SetDefaultColor(Color.GREEN);
LowMTF.SetDefaultColor(Color.RED);
CloseMTF.SetDefaultColor(Color.GRAY);
OpenMTF.SetDefaultColor(Color.GRAY);
#--------------------------------------------------------------
HighMTF.AssignValueColor(if HighMTF > OpenMTF then Color.GREEN else Color.WHITE);
LowMTF.AssignValueColor(if LowMTF < OpenMTF then Color.RED else Color.WHITE);
#--------------------------------------------------------------
OpenMTF.SetHiding(HideLines);
HighMTF.SetHiding(HideLines);
LowMTF.SetHiding(HideLines);
CloseMTF.SetHiding(HideLines);
#--------------------------------------------------------------
OpenBullish.SetHiding(HideLines);
OpenBearish.SetHiding(HideLines);
#--------------------------------------------------------------
def OpenBullishCond = if OpenMTF > CloseMTF then 1 else 0;
def OpenBearishCond = if OpenMTF < CloseMTF then 1 else 0;
#--------------------------------------------------------------
AddLabel(OpenBearishCond,timeFrame+ " GREEN: Trade Long Signals", Color.GREEN);
AddLabel(OpenBullishCond,timeFrame+ " RED: Trade Short Signals", Color.RED);
---- CODE ----