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

[amibroker] MTMACD and time band


  • Date: Sat, 13 Mar 2010 15:51:37 -0800
  • From: L V Gandhi <lvglist@xxxxxxxxx>
  • Subject: [amibroker] MTMACD and time band

PureBytes Links

Trading Reference Links



I got the following code from Thomasz article on MTF.
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);

I want to use it for plotting only for a month from the last trading day instead of all data. Though I know functions BeginValue and EndValue are there. I am not sure of how to use it? Can some point me modifying this in that direction, please.


__._,_.___


**** 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/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___