Convert a small piece of code from pinescript (TradingView) to cAlgo/C# (cTrader)

Job ID: 33929438

Budget: €8 – €30 EUR

Hello, i have written around 8 lines of code to create a small visual helping tool in TradingViews "pinescript" but i need it converted to work in cTraders cAlgo which uses C#.
There is not much going on, the code just looks at the candle size (opening, closing, high and low prices) and gives those candles a different color based on some ifs. Should be a quick task if you have programming experience and the coding logic is already available