This will work (with some additional filler code):
OnBarUpdate()
{
EnterLong("long entry");
}
OnPositionUpdate()
{
ExitLongStop("long stop", "long entry");
ExitLongLimit("long target", "long entry");
}
OnBarUpdate()
{
EnterLong("long entry");
ExitLongStop("long stop", "long entry");
ExitLongLimit("long target", "long entry");
}

Comment