Re: [amibroker] setbarsrequired() messing up function

2007-10-24 Thread Graham
Try this SetForeign(GetBaseIndex()); TimeFrameSet(inWeekly); xp=RelStrength("sp-500"); MA10=EMA(xp,40); TimeFrameRestore(); RestorePriceArrays(); f=TimeFrameExpand(xp,inWeekly); g=TimeFrameExpand(MA10,inWeekly); Plot(f,"relstrength",colorBlack,styleLine); Plot(g,"ema10",colorGreen,styleLine);

[amibroker] setbarsrequired() messing up function

2007-10-24 Thread jeffro861
I'm wanting to use the data points as the indicator plotted from the following code. If I use setbarsrequired(10,10), it gives me different output than what I'm looking for and none of the explorations or scans are searching for the criteria that I want them to. How do I fix the code,