Hi everyone,

I am new to Quantconnect, I used to code with NinjaTrader that is also in C# but is not exactly the same syntax.
Could you please help me to translate this very basic strategy from NT to QuantConnect ?

if (Close[0] && (Close[0]/Open[0]-1)>-0.01)
{
EnterLong(100, "");
}

if (Close[0]>Open[0]
&& (Close[0]/Open[0]-1)>0.01)
{
EnterShort(100, "");
}

// Exit conditions
if(Position.MarketPosition==MarketPosition.Long
&& GetCurrentAsk() {
ExitLong();
}

if(Position.MarketPosition==MarketPosition.Short
&& GetCurrentAsk()>High[1])
{
ExitShort();
}


Thank you in advance.
Chris