Hey guys, sorry to insist on the below as nobody answered. Perhaps will I be luckier this time - pls read:
--- In [email protected], "cvanhaesendonck" <carl....@...> wrote: > > 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(); >
