Thanks Cas I will have play with your code and see how it works. A number of guys helped with a solution for a MA crossover, ribbon indicator. You can see their responses in previous emails. If you can't access them let me know and I will forward them on. A MA cross-over, ribbon indicator will allow me to hide the MA's on the price chart which makes everything easier to read. Basically, I am trying to find a way to look past the clutter so I can see the actual tree instead of the leaves. The more indicators I have, the more it plays with my mind and the harder it is to trade when looking at live data. Not being a spring chicken makes it harder for the grey matter to compute like it used to. It would be great if there was a ribbon indicator square we could tick in Parameters box for other indicators. That way we could place a number of ribbons at the bottom of the screen. Ribbons take up a small space but provide a quick, easy, readable at a glance, snap shot of what is happening. A ribbon indicator for the MACD (including the histogram) is another I would like to do if possible. Cheers Ken
--- On Thu, 9/9/10, cas soni <[email protected]> wrote: From: cas soni <[email protected]> Subject: Re: [amibroker] Re: Help with Code for MA Cross Over - Ribbon Indictor To: [email protected] Received: Thursday, 9 September, 2010, 5:06 PM Hello Ken, check this P = ParamField("Price field",-1); Periods = Param("Periods", 15, 2, 300, 1 ); Width = Param("Width%", 2, 0, 10, 0.05 ); Color = ParamColor("Color", colorCycle ); Style = ParamStyle("Style"); CenterLine = MA( P, Periods ); Plot( (1 + Width * 0.01) * CenterLine, "%EnvTop" + _PARAM_VALUES(), Color, Style ); Plot( (1 - Width * 0.01) * CenterLine, "%EnvBot" + _PARAM_VALUES(), Color, Style ); CenterLine2 = MA(CenterLine,100); Plot( (1 + Width * 0.01) * CenterLine2, "%EnvTop" + _PARAM_VALUES(), 6, 32 ); Plot( (1 - Width * 0.01) * CenterLine2, "%EnvBot" + _PARAM_VALUES(), 6, 32 ); Thank you bye the way.. how do you intrepret your previous code ?? (MA Cross Over - Ribbon ) --- On Thu, 9/9/10, Ken H <[email protected]> wrote: From: Ken H <[email protected]> Subject: Re: [amibroker] Re: Help with Code for MA Cross Over - Ribbon Indictor To: [email protected] Date: Thursday, 9 September, 2010, 7:30 AM Thanks guys for the help to resolve my problem with the ribbon indicator code. It is greatly appreciated. If I can just ask for help one more time please. I am sure it is very simple to do but as much as I play around, I can't get the percent band code below to lock to a MA instead of the close. Can anyone suggest what I need to do? Many thanks again Ken _SECTION_BEGIN("Percent Bands"); P = ParamField("MA1(Close,100",-1); Periods = Param("Periods", 15, 2, 300, 1 ); Width = Param("Width%", 2, 0, 10, 0.05 ); Color = ParamColor("Color", colorCycle ); Style = ParamStyle("Style"); CenterLine = MA( P, Periods ); Plot( (1 + Width * 0.01) * CenterLine, "%EnvTop" + _PARAM_VALUES(), Color, Style ); Plot( (1 - Width * 0.01) * CenterLine, "%EnvBot" + _PARAM_VALUES(), Color, Style ); _SECTION_END();
