Need OnBalancevolume,obvmodified, MACDTwoLines with any Average choice,, TOS version

The following are all TOS codes very small very simple Please can someone convert these to tradeovate. OBV and MACD is available in custom indicators but not as exact as follows.

CODE#1

TD Ameritrade IP Company, Inc. © 2020

declare lower;

input length = 7;
input signalLength = 10;
input averageType = AverageType.EXPONENTIAL;

def obv = reference OnBalanceVolume();

plot OBVM = MovingAverage(averageType, obv, length);
plot Signal = MovingAverage(averageType, OBVM, signalLength);

OBVM.SetDefaultColor(GetColor(8));
Signal.SetDefaultColor(GetColor(2));

CODE#2

TD Ameritrade IP Company, Inc. © 2008-2020

declare lower;

plot OBV = TotalSum(Sign(close - close[1]) * volume);

OBV.SetDefaultColor(GetColor(8));

CODE#3

TD Ameritrade IP Company, Inc. © 2007-2020

declare lower;

input fastLength = 12;
input slowLength = 26;
input MACDLength = 9;
input averageType = AverageType.EXPONENTIAL;

plot Value = MACD(fastLength, slowLength, MACDLength, averageType).Value;
plot Avg = MACD(fastLength, slowLength, MACDLength, averageType).Avg;
plot ZeroLine = 0;

Value.SetDefaultColor(GetColor(1));
Avg.SetDefaultColor(GetColor(8));
ZeroLine.SetDefaultColor(GetColor(0));