Candle Paint help

MBF

Active member
2019 Donor
Hi everyone. This is a Trade Station script of a candle paint code. Can anyone help me in transcribing it for me to TOS?

Code:
Input: BarLength(16), ATRLength(9), ATRMultiple(2.5);

Variable: SwingDirection(0);

SwingDirection = LBRSwing(BarLength, ATRLength, ATRMultiple);

If CurrentBar > 1 Then Begin

If SwingDirection = 1 then
Begin
PlotPaintBar(High, Low, Open, Close, "LongShort", Green, Default);
End;

If SwingDirection = -1 Then
Begin
PlotPaintBar (High, Low, Open, Close, "LongShort", Red, Default);
End;
 

Similar threads

Top