I created a trading robot that uses strategy based on MA and RSI to open and close trades and ATR indicator to determine stop losses. I also need to set up maximum daily drawdown and position size and ~3 time sessions in which I want the robot to open and close trades.
It works in TradingView via Pine script, but I have struggles coding it in C# for cTrader.
Can you code it for me? I`ll provide you with the code from Pine script, C# code that I have so far and complex task. I assume that it is an easy job for someone who understands the basis. The pine script has around 40 lines of code.