PureBytes Links
Trading Reference Links
|
I remember from previous posts that using Setbarsrequired will solve this issue. But it did not help.
//I'm using :
SetBarsRequired( 100, 0 );
TimeFrameSet ( in1Minute*5 ) ;
nEMA1 = EMA ( V, 30 ) ;
nEMA1 = Ref ( EMA ( V, 30 ), -1 ) ;
nEMA2 = Ref ( EMA ( V, 30 ), -2 ) ;
nEMA3 = Ref ( EMA ( V, 30 ), -3 ) ;
nEMA4 = Ref ( EMA ( V, 30 ), -4 ) ;
nEMA5 = Ref ( EMA ( V, 30 ), -5 ) ;
nPercent = ( ( V/nEMA1)-1 ) * 100 ;
nPercent1 = ( ( Ref ( V,-1)/nEMA1)-1 ) * 100 ;
nPercent2 = ( ( Ref ( V,-2)/nEMA2)-1 ) * 100 ;
nPercent3 = ( ( Ref ( V,-3)/nEMA3)-1 ) * 100 ;
nPercent4 = ( ( Ref ( V,-4)/nEMA4)-1 ) * 100 ;
nPercent5 = ( ( Ref ( V,-5)/nEMA5)-1 ) * 100 ;
TimeFrameRestore () ;
nPercent = TimeFrameExpand ( nPercent, in5Minute ) ;
nPercent_1bar = TimeFrameExpand ( nPercent1, in5Minute ) ;
nPercent_2bar = TimeFrameExpand ( nPercent2, in5Minute ) ;
nPercent_3bar = TimeFrameExpand ( nPercent3, in5Minute ) ;
nPercent_4bar = TimeFrameExpand ( nPercent4, in5Minute ) ;
nPercent_5bar = TimeFrameExpand ( nPercent5, in5Minute ) ;
filter = 1
AddColumn ( nPercent, "Npercent",1) ;
//end
//compare to indicator :
Period = Param("EMA Period", 30, 1, 100, 1 );
nEMA = MA(V, Period) ;
nPercent = ( (V/nEMA)-1 ) * 100 ;
above_avg = IIf ( nPercent > 0, colorGreen, Null ) ;
Plot( nPercent, " Vol % over average ", IIf (nPercent > 0, colorGreen, colorRed ), ParamStyle ( "Style") ) ;
//end
Any help is appreciated
thanks
tony
On 12/13/05, Qitrader <yiupang91@xxxxxxxxx> wrote:
Well, I ran an exploration and added a column for npercent and the
results differ from the chart. Does anyone know how to resolve this
issue?
thanks
tony
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 other support material please check also:
http://www.amibroker.com/support.html
YAHOO! GROUPS LINKS
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 other support material please check also:
http://www.amibroker.com/support.html
SPONSORED LINKS
YAHOO! GROUPS LINKS
|