[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: Multiple color.



PureBytes Links

Trading Reference Links

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 amibroker@xxxxxxxxxxxxxxx, "Mohammed" <softnews2003@xxx> 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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/amibroker/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/amibroker/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:amibroker-digest@xxxxxxxxxxxxxxx 
    mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx

<*> To unsubscribe from this group, send an email to:
    amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/