I have numerous examples. One is attached. Is there something I'm missing about this?
I have set calculate on bar close to false
Here's the code:
protected override void OnBarUpdate()
{
{
// Condition set 1
if (CrossAbove(Close, Swing(SwingPower).SwingHigh, 1))
{
EnterLongLimit(GetCurrentAsk());
}
// Condition set 2
if (CrossBelow(Close, Swing(SwingPower).SwingLow, 1))
{
EnterShortLimit(GetCurrentBid());
}
}
}
Comment