For a long limit entry, I want the entry order to be placed at the closest tick above the 15 period EMA. For example if the EMA is at 828.35 I want the limit order to be placed at 828.50. If the EMA is at 828.50, I want the limit order to be placed at 828.75. I just need it to work on the ES at the moment but I'd like it to work on all markets eventually.
My current code that doesn't give the correct entry is...
myEntryOrder = EnterLongLimit(DefaultQuantity, EMA(Close, 15)[0] + 1 * TickSize , "Long Entry");
Thanks for any help.
Kevin
span.jajahWrapper { font-size:1em; color:#B11196; text-decoration:underline; } a.jajahLink { color:#000000; text-decoration:none; } span.jajahInLink:hover { background-color:#B11196; }
Comment