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

[amibroker] Re: Crazy indicator value



PureBytes Links

Trading Reference Links

Hi murthysuresh,

Thanks for reply, and I couldn't find the post. Can you please let me know which one?

Regards


--- In amibroker@xxxxxxxxxxxxxxx, "murthysuresh" <money@xxx> wrote:
>
> read up my earlier postings on a similar issue. i had also posted work around given by amibroker support.
> --- In amibroker@xxxxxxxxxxxxxxx, "Mohammed" <softnews2003@> wrote:
> >
> > Hi,
> > 
> > I write the following code to plot MACD four hours value in the fifteen minute time frame. BUT the value showing it is not equal to the value showing in four hours timeframe, I found that the value show in fifteen minute which I plot is for the previous bar in 4 hours timeframe.
> > -------------
> > 			TimeFrameSet( 4*3600 );
> > 
> > 				FOUR_HOURS_MACD =MACD();
> > 				FOUR_HOURS_SIGNAL = Signal(12);
> > 				
> > 			TimeFrameRestore();
> > 
> > 				FOUR_HOURS_MACD = TimeFrameExpand(FOUR_HOURS_MACD, 4*3600 );
> > 				FOUR_HOURS_SIGNAL = TimeFrameExpand(FOUR_HOURS_SIGNAL, 4*3600 );
> > 
> > 
> > 		FOUR_HOURS_MACDValue = StrFormat("4M %g", FOUR_HOURS_MACD, SelectedValue( ROC( FOUR_HOURS_MACD, 0 )));
> > 		FOUR_HOURS_SIGNALValue = StrFormat("4S %g", FOUR_HOURS_SIGNAL, SelectedValue( ROC( FOUR_HOURS_SIGNAL, 0 )));
> > 
> > 				
> > 			GfxSelectFont( "Arial", 9, 700 ); 
> > 			GfxSetBkMode( 3 ); 
> > 			GfxSetTextColor( colorPaleBlue ); 
> > 			pxHeight = Status( "pxchartheight" );
> > 			T = pxHeight;
> > 
> > 			x5 = 172; 
> > 			GfxTextOut( FOUR_HOURS_MACDValue , x5, t -85);
> > 			GfxTextOut( FOUR_HOURS_SIGNALValue , x5, t -60);
> > --------------
> > Any one can explain why it is not showing the latest value. And it shows the previous value?
> > 
> > Regards.
> > Moh
> >
>




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

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

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/