need convert code TS to AB

#1
Heloo..........Guys.....i am a trader , just joint on this forum
i need help to convert this Tradestation code to be AFL Amibroker
==================================

Inputs: Color(Cyan), LowColor(Yellow), ClimaxColor(Red), ChurnColor(Green),
climaxChurnColor(Magenta), LowChurnColor(White), AvgColor(Red);
Variables: BarColor(Cyan);

BarColor = Color;
Value1 = V;
Value2 = V*Range;
If Range <> 0 then Value3 = V/Range;
Value4 = Average(Value1,100);
If Value1 = Lowest(Value1,20) then BarColor = LowColor;
If Value2 = Highest(Value2,20) then BarColor = ClimaxColor;
If Value3 = Highest(Value3,20) then BarColor = ChurnColor;
If Value2 = Highest(Value2,20) and Value3 = Highest(Value3,20) then BarColor = ClimaxChurnColor;
If Value3 = Lowest(Value3,20) then BarColor = LowChurnColor;
Plot1(Value1,"Volume",BarColor);
Plot2(Value4,"Avg",AvgColor);

======================================
appreciated your attention :)

Regrads
IndoTrader
 

Similar threads