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

[amibroker] Re: Help : Trying to plot a 15 min StochD on a 3 min chart



PureBytes Links

Trading Reference Links

I'm only comparing the 10 min  StochD(  15 , 3, 3) expanded on the 3
min chart to a 10 min StochD(  15 , 3, 3)  on a 10 min chart and they
are different. The TWO code snippets below will hopefully will help
clear up the confusion.

This code is running on a  3 MIN Chart:

_SECTION_BEGIN("Test");

T2 = 600; // 10 min

TimeFrameSet( T2 );
tstoch10 = StochD( 15 , 3, 3);
TimeFrameRestore();

/* expand T2 stoch */
tstoch10 = TimeFrameExpand( tstoch10, T2);


Plot( tstoch10, _DEFAULT_NAME(), ParamColor( "Color", colorCycle ),
ParamStyle("Style") );
_SECTION_END();


This code is running on a 10 MIN chart:


_SECTION_BEGIN("Test");


tstoch10 = StochD( 15 , 3, 3);
Plot( tstoch10, _DEFAULT_NAME(), ParamColor( "Color", colorCycle ),
ParamStyle("Style") );

_SECTION_END();

They are giving me different values at time during the day where they
should be the same.  If I do the same thing on a 2 min chart and
compare this code to a 10 min chart then at the correct time frames
they are the same.

Thanks,
Mark



--- In amibroker@xxxxxxxxxxxxxxx, "apfxtrader" <apfx@xxx> wrote:
>
> You have different parameters on tstoch10 and tstoch. Correct it and
> they will perfectly match on a 10 min timeframe.
> 
> 
> 
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "mbluhm2001" <mbluhm2001@> wrote:
> >
> > Thanks for your suggestion but it works the same way with the
> > different name. Any other ideas?
> > 
> > Thanks,
> > Mark
> > 
> > 
> > 
> > --- In amibroker@xxxxxxxxxxxxxxx, "Terry" <MagicTH@> wrote:
> > >
> > > I think you can't change an array from the same array.
> > > Try a different name for the expansion such as:
> > > 
> > > /* expand T2 stoch */
> > > tstoch10expanded = TimeFrameExpand( tstoch10, T2);
> > > --
> > > Terry
> > > 
> > > -----Original Message-----
> > > From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx]
> > On Behalf
> > > Of mbluhm2001
> > > Sent: Wednesday, January 24, 2007 10:32
> > > To: amibroker@xxxxxxxxxxxxxxx
> > > Subject: [amibroker] Help : Trying to plot a 15 min StochD on a 3
> > min chart
> > > 
> > > I'm trying to plot the 10 min StochD onto a 3 min time frame chart
> > > using the code below. I get the two StochD but when I compare the 10
> > > min StochD on this chart to a 10min chart with the StochD they don't
> > > match. Can someone tell me what I'm doing wrong?
> > > 
> > > Thanks,
> > > Mark
> > > 
> > > 
> > > 
> > > _SECTION_BEGIN("Test");
> > > 
> > > T2 = 600;  // 10 min
> > > 
> > > TimeFrameSet( T2 );
> > > tstoch10 = StochD( 15 , 3, 3); 
> > > TimeFrameRestore();
> > > 
> > > /* expand T2 stoch */
> > > tstoch10 = TimeFrameExpand( tstoch10, T2);
> > > 
> > > tstoch = StochD( 15 , 5, 9); 
> > > 
> > > 
> > > Plot( tstoch10, _DEFAULT_NAME(), ParamColor( "Color", colorCycle ),
> > > ParamStyle("Style") );
> > > Plot( tstoch, _DEFAULT_NAME(), ParamColor( "Color", colorCycle ),
> > > ParamStyle("Style") );
> > > 
> > > 
> > > _SECTION_END();
> > > 
> > > 
> > > 
> > > 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
> > >
> >
>



Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.17.9/650 - Release Date: 1/24/2007 4:06 PM