private int FirstBar[Index];
private int SecondBar[Index];
protected override void Initialize()
{
// To learn more about cTrader Automate visit our Help Center:
// https://help.ctrader.com/ctrader-automate
Print(Message);
}
public override void Calculate(int index)
{
// Calculate value at specified index
// Result[index] =
if(FirstBar > SecondBar)return;
else if(FirstBar< SecondBar)
Chart.DrawHorizontalLine("LsLine",4,Color.Red);
}
Assuming this is an indicator.