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();

Reply via email to