Hi Adrian,
Are you certain that you are using the default Price.afl formula (found under
Formulas -> Basic Charts -> Price.afl) and that it has not been modified? The
plot statement should look like the following:
Plot( C, "Close", ParamColor("Color", colorBlack ), ParamStyle("Style") |
GetPriceStyle() );
I have no problem when using this code (and others of mine that I have adapted
to be sensitive to the View -> Price Chart Style setting). Multiple panes with
this code on it all convert when I change the Price Chart settings. Suggest you
open the file (right click on it and select Edit) and see what the plot
statement says. If it is missing the GetPriceStyle() option, you can add it,
and you can do the same to any code you write that uses a price plot. See the
AFL help file for more info on GetPriceStyle.
Peace and Justice --- Patrick
----- Original Message -----
From: Adrian Mollenhorst
To: [email protected]
Sent: Tuesday, March 09, 2010 11:59 AM
Subject: Re: [amibroker] Default Chart
Thanks Patrick, but that just changes the current chart. How do I change the
default, so every 'new default chart' that I create opens with a bar chart, not
candlestick?
I have tried saving the default layout, but no go. Any other ideas?
Thanks!
Adrian
On Tue, Mar 9, 2010 at 8:51 PM, NW Trader <[email protected]> wrote:
Hi Adrian,
On the toolbar, View -> Price chart style -> Bars.
Peace and Justice --- Patrick
----- Original Message -----
From: Adrian Mollenhorst
To: [email protected]
Sent: Tuesday, March 09, 2010 10:36 AM
Subject: [amibroker] Default Chart
How can I make a new default chart default to a Bar Chart Style, rather
than Candlesticks?
Where is the setting that I missed?
Thanks
Adrian
On Tue, Mar 9, 2010 at 7:48 PM, NW Trader <[email protected]> wrote:
Hi chi,
Brief responses to your questions (the markets are open & I'm trading,
so not much time for detail):
1) Yes. See Foreign in help and numerous posts in this group.
2) Yes. AB is very programmable. If you can think articulate it, it
probably can be done.
3) Try this to get started: Buy = C> MA(C,65) AND REF(C> MA(C,65) ,-1)
AND REF(C> MA(C,65) ,-2);
Peace and Justice --- Patrick
----- Original Message -----
From: jchi18
To: [email protected]
Sent: Tuesday, March 09, 2010 6:22 AM
Subject: [amibroker] AFL Programming Questions
Now that I've found a competent group that seems willing to help, I
would like to pose some questions:
1. What is the best way to reference an index (i.e., S&P 500) and
depending on the condition of that index the formula would indicate a buy
signal for stock A or a sell signal for stock B? I am trying to create a
simple formula that trades two ETFs (MDY for longs and MYY for shorts).
2. Is there a way to change your position size depending on
variables? For instance, I would like to increase the size of my buys and
decrease the size of my shorts in the case where the overall market (i.e.,
S&P500 close > its 200 MA) is in an uptrend. And vice versa.
3. I have been reading some books and I wanted to emulate a formula
that I read about. It's very simple but I can't figure out how to do it
simply. If there are three consecutive closes above the 65 SMA, then buy. If
there are three consecutive closes below the 65 SMA then sell. Any thoughts on
how to do it?
Thanks again for everyone who helped me before. I'm going to guess
that you'll be hearing a lot from me.
------------------------------------
**** 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/
Yahoo! Groups Links