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

[amibroker] BB Indicator values for same bar change when scrolling chart


  • Date: Wed, 16 Dec 2009 14:29:22 -0000
  • From: "cvanhaesendonck" <carl.van@xxxxxxxxxx>
  • Subject: [amibroker] BB Indicator values for same bar change when scrolling chart

PureBytes Links

Trading Reference Links

Very strange here: I just applied an indicator on an indicator, in this case Bollinger Band on RMI indicator. When, and only when, the B bands are squeezing, do I have this: the value of the BBand top and bottom totally change, FOR THE SAME BAR, when I scroll the chart a little bit to the left or to the right. No only does the value changes but I can see the change on the chart with the BBand having its shape modified.
Below is the formula, can someone explain this ???

Many thanks,
Carl

_SECTION_BEGIN("RMI");

period = Param( "Period", 20, 1, 200, 1 );
momentum = Param( "Momentum", 5, 1, 200, 1 );
uplevel=Param("uplevel",66,50,100,1);
downlevel=Param("downlevel",34,0,50,1);
Plot( RMI(period, momentum), _DEFAULT_NAME(), ParamColor( "Color", colorBlack ), ParamStyle("Style"),0,-1  );
PlotOHLC( RMI(period, momentum),RMI(period, momentum),50,RMI(period, momentum), "", IIf( RMI(period, momentum) > 50, colorGreen, colorRed ), styleCloud | styleClipMinMax, downlevel, uplevel,0,-1 ); 

Plot( uplevel, _DEFAULT_NAME(), colorGreen, styleDashed  );
Plot( downlevel, _DEFAULT_NAME(), colorGreen, styleDashed  );


_SECTION_END();

_SECTION_BEGIN("Bollinger Bands");
P = ParamField("Price field",-1);
Periods = Param("Periods", 20, 2, 300, 1 );
Width = Param("Width", 2, 0, 10, 0.05 );
//Color = ParamColor("Color", colorBlack );
Style = ParamStyle("Style");
Plot( BBandTop( P, Periods, Width ), "BBTop" + _PARAM_VALUES(), colorWhite, Style ); 
Plot( BBandBot( P, Periods, Width ), "BBBot" + _PARAM_VALUES(), colorWhite, Style ); 
Plot( MA( P, Periods), "Avg" + _PARAM_VALUES(), colorBlack, styleDashed );
_SECTION_END();



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

**** 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:
    amibroker-digest@xxxxxxxxxxxxxxx 
    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/