I
found some TJ code on multi-timeframes (forgot where).
Look's
interesting and very clean. Any thoughts on why the
variable
MTMACD
is returning {EMPTY} would be appreciated. I have
the
chart
set to daily with historical 1 minute data, pretty sure it's
setup
correctly. At a loss, thanks again.
--jeff
Count
= 0;
result = 0;
for( i = 10; i <= 300; i++ )
{
TimeFrameSet( i * in1Minute );
m = MACD(12, 26 );
TimeFrameRestore();
m = IIf( TimeFrameExpand( m, i * in1Minute ) > 0, 1, -1 );
result = result + m;
Count++;
}
AddToComposite( result / Count, "~MACD"+Name(), "X" );
Buy=1;
x = Foreign("~MACD"+Name(),"C");
Plot( x, "MTMACD", colorBlue , styleThick ) ;
PlotGrid(0.5 );
PlotGrid(-0.5);
result = 0;
for( i = 10; i <= 300; i++ )
{
TimeFrameSet( i * in1Minute );
m = MACD(12, 26 );
TimeFrameRestore();
m = IIf( TimeFrameExpand( m, i * in1Minute ) > 0, 1, -1 );
result = result + m;
Count++;
}
AddToComposite( result / Count, "~MACD"+Name(), "X" );
Buy=1;
x = Foreign("~MACD"+Name(),"C");
Plot( x, "MTMACD", colorBlue , styleThick ) ;
PlotGrid(0.5 );
PlotGrid(-0.5);
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 other support material please check also:
http://www.amibroker.com/support.html
YAHOO! GROUPS LINKS
- Visit your group "amibroker" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
