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

[amibroker] Multi Time Frame Indicator example



PureBytes Links

Trading Reference Links

Hello

I had a go at trying to modify one of Tomasz Janeczko's sample multi 
time frame scaning formulas. All i get showing up is MTRSI = {empty}. 
Any ideas as to why this is would be greatly appreciated?




Count = 0; 
result = 0; 
final = 0;

for( i = 5; i <= 360; i = i + 5 ) 
{ 
   TimeFrameSet( i * in1Minute ); 
   m = RSI(); 
   TimeFrameRestore(); 
    
   m = TimeFrameExpand( m, i * in1Minute ); 
    
   result = result + IIf( m > 70, 1, IIf( m < 30, -1, 0 ) ); 
   Count++; 
} 

final = result / Count;
plot( final, "MTRSI", colorBlue, styleThick );
plot( EMA(final, 7), "EMA(MTRSI,7)", colorLightGrey);




------------------------------------

**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

*********************
TO GET TECHNICAL 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/