If I have condition to buy, and than want to print "buy":
protected override void OnBarUpdate()
{
// Condition for long
if (Close[1] < Close[2])
{
Enter_long = Close[0] + SMA()[1];
Print("EnterLong="+Enter_long);
}

Comment