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

RE: [amibroker] plot different color if the higher timeframe is trending



PureBytes Links

Trading Reference Links

I like to revist the list of functions every few months:

http://www.amibroker.com/guide/afl/afl_index.php?m=2

d 

> -----Original Message-----
> From: amibroker@xxxxxxxxxxxxxxx 
> [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of murthysuresh
> Sent: Friday, October 12, 2007 7:04 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] plot different color if the higher 
> timeframe is trending
> 
> hello
> I am using 5 minute chart and want to plot the adx blue if the adx 
> in  15 minute timeframe is increasing. so i put this piece of code 
> together. i am not convinced that it works. what i see is that it 
> shows blue of the 5 minute adx is increasing. am i useing ithe 
> multitimeframe incorrectly?
> 
> 
> _SECTION_BEGIN("ADX");
> ADXIncreasingIn15MinuteCompressed=colorBlue;
> if (Interval()==60*5){
> 	ADX15MinuteCompressed = TimeFrameCompress( ADX(), 
> in15Minute ); 
> 	ADXIncreasingIn15MinuteCompressed=IIf((ADX()>Ref(ADX(),-
> 1)) ,colorBlue,colorYellow);
> 	ADXIncreasingin15MinuteExpanded=TimeFrameCompress( 
> ADXIncreasingIn15MinuteCompressed, in15Minute ); 
> 
> }
> range = Param("Periods", 14, 2, 200, 1 );
> Plot( ADX(range), _DEFAULT_NAME(), ADXIncreasingIn15MinuteCompressed, 
> ParamStyle("ADX style", styleThick ) );
> Plot( PDI(range), "+DI", ParamColor( "+DI color", colorGreen ), 
> ParamStyle("+DI style") );
> Plot( MDI(range), "-DI", ParamColor( "-DI color", colorRed ), 
> ParamStyle("-DI style") );
> _SECTION_END();
> 
> seede
> 
> 
> 
> 
> Please note that this group is for discussion between users only.
> 
> To get support from AmiBroker please send an e-mail directly to 
> SUPPORT {at} amibroker.com
> 
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
> 
> For other support material please check also:
> http://www.amibroker.com/support.html
>  
> Yahoo! Groups Links
> 
> 
> 
> 



Please note that this group is for discussion between users only.

To get support from AmiBroker please send an e-mail directly to 
SUPPORT {at} amibroker.com

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/

For other support material please check also:
http://www.amibroker.com/support.html
 
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/