protectedoverridevoidOnBarUpdate()
{
// Entry condition
if(Close[0]>SMA(20)[0])
EnterLong();
}
What about the follow code, Is it true for every bar update that satisfies the condition "Close[0] > SMA(20)[0]", a long market order with name LongSignal will be submitted?
protectedoverridevoidOnBarUpdate()
{
// Entry condition
if(Close[0]>SMA(20)[0])
EnterLong("LongSIgnal");
}
Comment