While developping a strategy I had a problem to place an entry order.
So I used the builder to make sure I was not doing something wrong. I made it simple with 2 diffferent strategy to check:
If fast EMA cross above slow EMA then place order
If fast SMA cross above slow SMA then place order
if (CrossAbove(EMA1, EMA2, 1))
{
EnterLong(Convert.ToInt32(DefaultQuantity), "");
}
if (CrossAbove(SMA1, SMA2, 1))
{
EnterLong(Convert.ToInt32(DefaultQuantity), "");
}
Everything is fine with EMA crossing but nothing happen with SMA (in playback).
Any idea why when SMA is crossing there is no order placed ?
Thank you
Comment