I want a condition to have the 8 ema on the 60min chart to be > then the current bid price...I'm using the following:
iMA(NULL,60,8,0,MODE_EMA,PRICE_CLOSE,pos) > Bid;
But, nothing is changing with the indicator I am writing this for. I have a 60min chart open also...any thoughts???
And:
'pos' is the following:
int start()
{
int counted_bars=IndicatorCounted();
//---- check for possible errors
if (counted_bars<0) return(-1);
//---- last counted bar will be recounted
if (counted_bars>0) counted_bars--;
int pos=Bars-counted_bars;
iMA(NULL,60,8,0,MODE_EMA,PRICE_CLOSE,pos) > Bid;
But, nothing is changing with the indicator I am writing this for. I have a 60min chart open also...any thoughts???
And:
'pos' is the following:
int start()
{
int counted_bars=IndicatorCounted();
//---- check for possible errors
if (counted_bars<0) return(-1);
//---- last counted bar will be recounted
if (counted_bars>0) counted_bars--;
int pos=Bars-counted_bars;