ktsernosov
Местный
- Регистрация
- 06.02.14
- Сообщения
- 436
- Реакции
- 468
ktsernosov не предоставил никакой дополнительной информации.
#barcounter
input length = 3;
def up = open < close;
def down = open > close;
plot c1 = sum(up,length)==length;
plot c2 = sum(down,length)==length;
c1.setPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
c2.setPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
Alert(condition = c1, text = "cond1", "alert type" = Alert.BAR, sound = Sound.Ding);
Alert(condition = c2, text = "cond2", "alert type" = Alert.BAR, sound = Sound.Ding);
input length = 3;
def up = open < close;
def down = open > close;
plot c1 = sum(up,length)==length;
plot c2 = sum(down,length)==length;
c1.setPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_UP);
c2.setPaintingStrategy(PaintingStrategy.BOOLEAN_ARROW_DOWN);
Alert(condition = c1, text = "cond1", "alert type" = Alert.BAR, sound = Sound.Ding);
Alert(condition = c2, text = "cond2", "alert type" = Alert.BAR, sound = Sound.Ding);
Последнее редактирование модератором: