if (CrossAbove(MACD(5, 15, 10), 0, 1)
&& Close[0] > WMA(WMAfilter)[0])
{
AtmStrategyCreate(Action.Buy, OrderType.Market, 0, 0,
TimeInForce.Day, GetAtmStrategyUniqueId(), "atm2",
GetAtmStrategyUniqueId());
DrawArrowUp("My up arrow" + CurrentBar, false, 0, Low[0] + -4 * TickSize, Color.Lime);
PlaySound(@"C:\Program Files\NinjaTrader 7\sounds\45CrossUP.wav");
}

Comment