I believe that the problem is that you are passing an array to a function that is expecting a scaler. You could probably use the SelectedValue function on the (MACD() > Signal()) condition to figure the current color in the same way that you are using it to figure the current close.
Mike --- In [email protected], "Mohammed" <softnews2...@...> wrote: > > > Hi Frends, > > I'm using this code to show price in color depanding to my intery point. > > For example : > > mycolor = IIf(MACD() > Signal(), colorGreen, colorRed); > > Current_Close = StrFormat(" %g ", C, SelectedValue( ROC( C, 1 ) ) ); > > GfxSelectFont( "Arial Black", 15, 700 ); > > GfxSetBkMode( 1 ); > > GfxSetTextColor( mycolor ); > > pxHeight = Status( "pxchartheight" ); > > t = pxHeight; > > x5 = 10; > > GfxTextOut( Current_Close, x5, t -95); > > Any one can help Please. > > Regards. >
