Hallo,
ich habe ein Problem bei der Umsetzung eines Indikators. Der Code lautet wie folgt:
{Zeile 1} Const SL: Low>Ref(low,-1) and Ref(low,-1)<Ref(low,-2); {Swing-Low}
{Zeile 2} Const SH: High<Ref(high,-1) and Ref(high,-1)>Ref(high,-2); {Swing-High}
{Zeile 3} Const BW:If(SL=1,1,If(SH=1,0,0));
{Zeile 4} Ref(BW,1)
Wie kann ich die Zeile 4 so ändern, dass folgendes erreicht wird:
BW=1 wenn SL=true und zwar solange 1 bis SH=true dann BW=0
Chartman