[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Question re price field parameter



PureBytes Links

Trading Reference Links



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 <sjdugas@xxxxxxxxxxx>
To: amibroker@xxxxxxxxxxxxxxx
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 -----
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: amibroker@xxxxxxxxx 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






__._,_.___


**** IMPORTANT PLEASE READ ****
This group is for the discussion between users only.
This is *NOT* technical support channel.

TO GET TECHNICAL SUPPORT send an e-mail directly to
SUPPORT {at} amibroker.com

TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
http://www.amibroker.com/feedback/
(submissions sent via other channels won't be considered)

For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/





Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___