Thanks. It works. On Fri, Apr 9, 2010 at 9:34 PM, ricko8294_98 <[email protected]> wrote:
> > > sorry > Meant Reset all > > > --- In [email protected] <amibroker%40yahoogroups.com>, L V Gandhi > <lvgl...@...> wrote: > > > > Thanks for your response. > > I don't see any refresh button in parameters window. It has only reset > all > > and ok buttons. Where is that Refresh. > > > > On Fri, Apr 9, 2010 at 6:11 PM, ricko8294_98 <ri...@...> wrote: > > > > > > > > > > > have you tried opening the parameters window and hitting "Refresh"? > > > > > > > > > --- In [email protected] <amibroker%40yahoogroups.com><amibroker% > 40yahoogroups.com>, L V Gandhi > > > > <lvglist@> wrote: > > > > > > > > This is the code. > > > > _SECTION_BEGIN("Price"); > > > > SetChartOptions(0,*chartShowArrows*|*chartShowDates*); > > > > _N(*Title* = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi > %g, > > > Lo > > > > %g, Close %g (%.1f%%) {{VALUES}}", *O*, *H*, *L*, *C*, SelectedValue( > > > ROC( * > > > > C*, 1 ) ) )); > > > > Plot( *C*, "Close", ParamColor("Color", *colorBlack* ), > *styleNoTitle* | > > > > ParamStyle("Style") | GetPriceStyle() ); > > > > _SECTION_END(); > > > > > > > > _SECTION_BEGIN("EMA"); > > > > P = ParamField("Price field",-1); > > > > Periods = Param("Periods", 15, 2, 200, 1, 10 ); > > > > Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", > colorCycle > > > ), > > > > ParamStyle("Style") ); > > > > _SECTION_END(); > > > > > > > > _SECTION_BEGIN("EMA1"); > > > > P = ParamField("Price field",-1); > > > > Periods = Param("Periods", 15, 2, 200, 1, 10 ); > > > > Plot( EMA( P, Periods ), _DEFAULT_NAME(), ParamColor( "Color", > colorCycle > > > ), > > > > ParamStyle("Style") ); > > > > _SECTION_END(); > > > > > > > > _SECTION_BEGIN("ATRStop"); > > > > ATRFactor = Param("ATRFactor", 1.5, 1, 3, 0.1 ); > > > > Periods = Param("Periods", 15, 2, 200, 1 ); > > > > TrailATR= ATRFactor*ATR(Periods); > > > > Initial=*C*-TrailATR; > > > > > > > > stop[ 0 ] = *Close*[ 0 ]; > > > > *for*( i = 1 ; i < *BarCount*; i++) > > > > { > > > > *if*( *Close*[ i ] > stop[ i - 1]) > > > > { > > > > temp = *Close*[ i ] - TrailATR[ i ]; > > > > *if*( temp > stop[ i - 1 ] ) stop[ i ] = temp; > > > > *else* stop[ i ] = stop[ i - 1 ]; > > > > } > > > > *else* > > > > stop[ i ] = Initial[ i ]; > > > > > > > > } > > > > > > > > *Sell* = *Close* < Ref( stop, -1); > > > > > > > > Plot( stop, "ATR Stop", *colorRed*, *styleLine*); > > > > PlotShapes( IIf( *Sell*, *shapeDownArrow*, *Null*), *colorOrange*, 0, > > > *H*); > > > > _SECTION_END(); > > > > > > > > I don't find any duplicate for ATRFactor . Still ATRFactor changes in > > > > parameter window only in steps of .25 not in steps of .1. > > > > I am fuzzled by this. > > > > > > > > On Fri, Apr 9, 2010 at 4:39 AM, q q <war_maniac2002@> wrote: > > > > > > > > > > > > > > > > > > > > > > > > in charts,check out for your indicator,u shall find indicators with > > > same > > > > > name but with some numerical suffixes. > > > > > check out all those by double clicking(insering in the sheet). > > > > > u shall get the desired one. > > > > > > > > > > --- On *Fri, 4/9/10, L V Gandhi <lvglist@>* wrote: > > > > > > > > > > > > > > > From: L V Gandhi <lvglist@> > > > > > > > > Subject: [amibroker] parameters display and formula > > > > > To: [email protected] <amibroker%40yahoogroups.com><amibroker% > 40yahoogroups.com> > > > > > > Date: Friday, April 9, 2010, 9:18 AM > > > > > > > > > > > > > > > > > > > > Initially I had parameter line as follows > > > > > ATRFactor = Param("ATRFactor", 1.5, 1, 3, 0.25 ); > > > > > I changed it as follows using edit formula option > > > > > ATRFactor = Param("ATRFactor", 1.5, 1, 3, 0.1 ); > > > > > But parameter windows changes in steps of .25 only not in steps of > .1. > > > What > > > > > should be done more to get latest edit to work. This happens even > after > > > > > reopening ami and also restarting windows. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
