how to write current ask price is greater than moving average New comment [Deleted] 2012.07.31 13:52 i am trying to write some code saying current bar ask price is greater than current bar simple moving average (5ma, close price, simple.) is this correct: MarketInfo(Symbol(),MODE_ASK)> iMA(NULL, NULL,5,0,MODE_SMA,PRICE_CLOSE,0) and current bar bid price is less than the current bar 5 moving average: MarketInfo(Symbol(),MODE_BID)< iMA(NULL, NULL,5,0,MODE_SMA,PRICE_CLOSE,0) thanks for your help Simple Question how to get the tick price How to code? dineshydv 2012.07.31 14:16 #1 Please use this to post code . . . it makes it easier to read. For timeframe, replace NULL with 0. Have you referred iMA documentation at this ??? Paul B 2012.07.31 14:18 #2 Why not just use: Ask>iMA(NULL,0,5,0,MODE_SMA,PRICE_CLOSE,0) Bid<iMA(NULL,0,5,0,MODE_SMA,PRICE_CLOSE,0) [Deleted] 2012.07.31 22:03 #3 thank you very much! New comment
i am trying to write some code saying
current bar ask price is greater than current bar simple moving average (5ma, close price, simple.)
is this correct:
MarketInfo(Symbol(),MODE_ASK)> iMA(NULL, NULL,5,0,MODE_SMA,PRICE_CLOSE,0)
and
current bar bid price is less than the current bar 5 moving average:
MarketInfo(Symbol(),MODE_BID)< iMA(NULL, NULL,5,0,MODE_SMA,PRICE_CLOSE,0)
thanks for your help