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

[amibroker] TimeFrameSet( in1Minute) in a 1 minute frame stuck the plotting



PureBytes Links

Trading Reference Links

Hello,

In a 1 minute frame, I plot this formula with no TimeFrameSet() and no 
TimeFrameRestore(), it's OK.

I keep a 1 minute frame, I put TimeFrameSet( in1Minute) before and 
TimeFrameRestore() after, it does not plot.

The idea is to plot ( in1Minute) and ( in1Minute * 3). But the first 
step to put TimeFrameSet( in1Minute) is messy.

Any help appreciated.

Best regards




// 9trading 006
// Copyright 9Trading.com



Plot( 100, "", 7, styleLine );
Plot( -100, "", 7, styleLine );
n = Param( "per", 7, 2, 25, 1 );

//TimeFrameSet( in1Minute);

ys1 = ( High + Low + Close * 2 ) / 4;
rk3 = EMA( ys1, n );
rk4 = StDev( ys1, n );
rk5 = ( ys1 - rk3 ) * 100 / rk4;
rk6 = EMA( rk5, n );
UP = EMA( rk6, n );
DOWN = EMA( up, n );
Oo = IIf( up < down, up, down );
Hh = Oo;
Ll = IIf( up < down, down, up );
Cc = Ll;
barcolor2 = IIf( Ref( oo, -1 ) < Oo AND Cc < Ref( Cc, -1 ), colorBlue, 
IIf( up > down, colorGreen, colorRed ) );
PlotOHLC( Oo, hh, ll, Cc, "Mod 1m " , barcolor2, styleCandle );

//TimeFrameRestore();


//Plot( TimeFrameExpand( PlotOHLC( Oo, hh, ll, Cc, "Modified " , 
barcolor2, styleCandle ), in1Minute), "\n 1 min bars", colorBlue);



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

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