gfxsettextcolor() expects the argument to be a number not an array. Bill ----- Original Message ----- From: Mohammed To: [email protected] Sent: May 19, 2009 12:56 PM Subject: [amibroker] Re: Multiple color.
Hi, I got error saying: Error 5. Argument # 1 Has incorrecttype ( the function expects different argument type Here). I expect to change price color depandng to macd cross. Regards --- 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. > ------------------------------------ **** IMPORTANT PLEASE READ **** This group is for the discussion between users only. This is *NOT* technical support channel. TO GET TECHNICAL SUPPORT send an e-mail directly to SUPPORT {at} amibroker.com TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at http://www.amibroker.com/feedback/ (submissions sent via other channels won't be considered) For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG: http://www.amibroker.com/devlog/ Yahoo! Groups Links
