Custom stock trading indicator script Tradovate

Job ID: 32632468

Budget: $10 – $30 USD

I have a simple custom indicator in thinkorswim and need converted for tradovate. I hope you have knowledge of trading software. Must start and finish within a few hours.

Here is code from thinkorswim that needs to be converted

input RiskUnit = 150;
input buffer = .00;
input digits = 0;


def price = close(priceType = PriceType.LAST);
def candleRangeBull = price - low + buffer;
def candleRangeBear = high - price + buffer;
def BullRisk = (RiskUnit) / round(candleRangeBull);
def BearRisk = (RiskUnit) / round(candleRangeBear);
def BullRisk1 = rounddown(Bullrisk, digits);
def BearRisk1 = rounddown(Bearrisk, digits);
def o = open;
AddLabel(yes, "Risk: " + AsDollars(RiskUnit) + " Ele : "+ (if price > o then BullRisk1 else BearRisk1), if price > o then Color.GREEN else Color.RED);

https://tradovate.github.io/custom-indicators/
Related categories: JavaScript Metatrader