You could switch to Ninjatrader and it would be like this, they have C# within the product:
Assumes closes[0] is a 10 minute chart:
if((Closes[0][0]-Closes[0][12])>10)
{
Print("The condition was triggered, close [0] greater " + Time[0]);
}
if((Closes[0][12]-Closes[0][0])>10)
{...