Thank you Steve, you are absolutely correct. This was causing problems on my 
expanded daily average. On the code below, the different closes were 
calculating different averages, not sure why -  since it is operating in 
inDailytime frame, there should only be a daily close. Perhaps the initialized 
value overides TimeFrameSet.

SetFormulaName("Daily Expanded MA"); 
//Daily moving average plotted on shorter duration charts

TimeFrameSet( inDaily); 

P = ParamField("Price field",-1); 
Periods = Param("Periods", 15, 2, 300, 1, 10); 
DailyMa = MA(P,Periods); 

TimeFrameRestore(); 

eDailyMA = TimeFrameExpand( DailyMA, inDaily); // expand for display 

Plot( eDailyMA, "Daily Average", ParamColor( "Color", colorCycle ), 
ParamStyle("Style") ); 




________________________________
From: Steve Dugas <[email protected]>
To: [email protected]
Sent: Saturday, May 30, 2009 1:45:22 PM
Subject: Re: [amibroker] Question re price field parameter





I believe that TJ initializes his ParamField variable to -1, which is the first 
plot on the chart, and that name is added at the bottom of the param list. Try 
editing the default name of the original price plot to "TEST" to see what I 
mean.

Steve 
----- Original Message ----- 
From: Tony Grimes 
To: amibro...@yahoogrou ps.com 
Sent: Saturday, May 30, 2009 2:34 PM
Subject: Re: [amibroker] Question re price field parameter
Verified - Works on my machine as described.


On Sat, May 30, 2009 at 2:09 PM, James <jamesmemphis@ yahoo.com> wrote:




Can someone please verify if this is just happening to me? Just drop the 
Amibroker simple MA from the charts onto a price chart and see if there are two 
Close in the price field parameter drop down box. If this is normal, why are 
there two close fields to choose from? 

James




________________________________
From: James <jamesmemphis@ yahoo.com>
To: amibro...@yahoogrou ps.com
Sent: Friday, May 29, 2009 3:06:10 PM
Subject: [amibroker] Question re price field parameter


 I have found that if I drop a moving average into a price chart, I am getting 
two "Close" in the price field parameter. Can anyone confirm they are seeing 
the same and if so explain why there are 2 "Close" price fields? 

This does not cause a problem until I start using formulas that use 
setTimeFrame.

James






      

Reply via email to