When Pasted I left semicolon at the end as Mike has said. I have wrongly understood representation of parameters. Everything is shown under pricefield. I was having wrong preconceived notion that each parameter will be shown separately. Thanks for your time.
On Fri, Mar 12, 2010 at 8:46 PM, NW Trader <[email protected]> wrote: > > > Hi L V, > > Well when I copy your code into the formula editor and try to apply it I > get errors and no chart until I comment out everything from if(arrows) to > the end. > > Then I get a line plot of the closing price (which is what your code > specifies) and opening the parameters menu, I have all the parameters for > Price Field color style and Display arrows. > > I doubt that this is what you were aiming for, but that's what you've > got. If you wanted a MACD, then you must specify MACD code in the formula > you are adding to a pane. I think you are working with just a snippet of > code, not the entire code. > > You could overlay this snippet on a macd formula, but I don't know what > that will accomplish as long as you are plotting the price field. > > Peace and Justice --- Patrick > > ----- Original Message ----- > *From:* L V Gandhi <[email protected]> > *To:* [email protected] > *Sent:* Friday, March 12, 2010 6:56 PM > *Subject:* Re: [amibroker] Doubts about Parameters > > Thanks Mr.Patrick for your time. > I did click reset button nothing happened. > I saw the code in edit formula window by right clicking on the pane.It > shows exactly what I have given above. I have not given any separate code > for MACD. All that is there what is written by me above. I hope it utilizes > inbuilt MACD code. > Thanks regarding date ranges explanation. > > > On Fri, Mar 12, 2010 at 11:00 AM, NW Trader <[email protected]>wrote: > >> >> >> Hi L V, >> >> An addendum to my last post. If resetting the parameters did not solve >> your problem, then check on the following items. >> >> Are you certain that the chart you are clicking on is using the formula >> you modified? If you had an existing chart open, then modified the formula >> via right mouse click -> edit formula, then saved that formula to custom >> folder, the original chart you had open may not be based on the modified >> formula. To check either open the chart formula again to see if it is >> modified, or open the parameters menu, -> Axes & Grid and examine the file >> path under Miscellaneous. If it is not the modified formula, then add that >> formula to a chart pane. >> >> Another possibility is that the macd code you are applying doesn't use the >> terms Color or style. The built in MACD I have doesn't, instead it uses MACD >> Line Color, MACD style, etc. Of course, I may have modified this code long >> ago and forgotten I did. If you still have problems, post the entire macd >> code you are using, for examination. >> >> As to running an AA (scan, exploration, backtest) on a specific date >> range, just set the dates in the from and to boxes and click the radio >> button next to from. If you want the last date in your database quickly, in >> the to box, click the down notion to open a calendar and click on the red >> square at the bottom next to Today: (date of last update in data). >> >> Peace and Justice --- Patrick >> >> ----- Original Message ----- >> *From:* NW Trader <[email protected]> >> *To:* [email protected] >> *Sent:* Friday, March 12, 2010 10:00 AM >> *Subject:* Re: [amibroker] Doubts about Parameters >> >> Hi L V, >> >> Did you also click on the Reset all button at the bottom of the parameters >> screen? >> >> Peace and Justice --- Patrick >> >> ----- Original Message ----- >> *From:* L V Gandhi <[email protected]> >> *To:* [email protected] >> *Sent:* Friday, March 12, 2010 8:44 AM >> *Subject:* [amibroker] Doubts about Parameters >> >> I have copied A Parameter example script as AFL in customs folder given as >> below. >> _SECTION_BEGIN("MACDSignal"); >> *Buy* = Cross(MACD(), Signal() ); >> *Sell* = Cross(Signal(), MACD() ); >> >> pricefield = ParamField("Price Field", 3); >> Color = ParamColor("color",*colorRed*); >> style = ParamStyle("style",*styleLine*,*maskAll*); >> arrows = ParamToggle("Display arrows", "No|Yes",1); >> Plot(pricefield,"pricefield",Color,style); >> *if*(arrows) >> { >> PlotShapes(*Buy***shapeUpArrow*+*Sell***shapeDownArrow*,IIf(*Buy*,* >> colorGreen*,*colorRed*) ); >> } >> _SECTION_END() >> >> But when I open parameters window, I get parameter for pricefield only. >> 1) What is to be done for getting all parameters? >> 2) If I want to test only between some data say from 1 Jan 2010 to last >> trading day in scanning how should I modify this? >> >> > >
