PureBytes Links
Trading Reference Links
|
Conrad,
To give you another tip :
The advice that changed my AFL understanding and my poor programmer's
life comes from Steve Dugas. I am not a programmer :(
As I can't retrieve the Yahoo's topic ( the server is always busy), I
give you a copy.
To put in good place into your AFL bible...
You will see perfectly what your logic does.
This may help you.
Best regards
***************
Title : Plotting to see what the array looks like.
Why not plot it to see what the array looks like?
I always found that plotting the whole arrays, starting
with the first arrays in the code and then continuing with the later
arrrays until I located the problem, helped me to see what was happening
better than using DebugView or Trace. It is a pretty simple technique
but very effective, maybe it would make a good little "Debugging Your
Code" lesson in the Users Guide. 8 - )
Steve Dugas
*********************
//test newday
NewDay1 = Day() != Ref(Day(), 1);
NewDay2 = DateNum() != Ref(DateNum(),-1);
_TRACE("NewDay = "+NewDay1 );
_TRACE("Day1 = "+Day() );
_TRACE("RefDay1 = "+Ref(Day(), -1) );
_TRACE("NewDay2 = "+NewDay2 );
_TRACE("Day2 = "+Day() );
_TRACE("RefDay2 = "+Ref(Day(), -1) );
Plot( Day(), "Day1", colorRed, styleDashed|styleThick);
Plot( Ref( Day(), -1 ), "RefDay1", colorYellow, styleDashed|styleThick);
Plot( Day(), "Day2", colorBlue, styleLine );
Plot( Ref( Day(), -1 ), "RefDay2", colorWhite, styleLine );
sidhartha70 a écrit :
>
>
> Anything you save that is your own code (or a modification of existing
> code) that you wish to keep you should have in either the 'custom'
> folder or the 'include' folder. (and of course you can create your own
> subfolders within these)... the custom & include folders are never
> touched when you upgrade AB so your code should be safe.
>
> I can't quite visualize what you say below... it may be because you are
> using an unpaid version of AB. It may not let you save charts &
> forumula's until you have a paid version.
>
> I've been using AB for about a year now... I'm a former C# coder. It
> takes a while to get your head around AFL... but once you do, you can do
> pretty much anything with AB. TJ has created a phenominal tool for
> programmers for an unbelievable price. Bang for your buck wise nothing
> comes even close to AB.
>
> Exactly, all the power is in AFL. So get coding!!!
>
> --- In amibroker@xxxxxxxxxxxxxxx <mailto:amibroker%40yahoogroups.com>,
> "Conrad Joach" <consolejoker@xxx> wrote:
> >
> > One quick question. If I edit the formula in the window, and try to
> save it, it says it wants to save it in a custom folder. I say yes, and
> then when I try to load the custom version, it seems to be blank. Should
> I create a fresh AFL script from scratch rather than modify a
> pre-existing one? Is that how most people do it?
> >
> > --- In amibroker@xxxxxxxxxxxxxxx
> <mailto:amibroker%40yahoogroups.com>, "sidhartha70" <sidhartha70@> wrote:
> > >
> > > Conrad,
> > >
> > > Edit the code from each pane.... do this by right clicking in each
> pane and selecting 'edit formula'...
> > >
> > > You can specify in AFL exactly how you want something plotted.
> Likely if you are using the default drag & drop studies (i.e. price or
> foreign) you will have something like this in each...
> > >
> > > _SECTION_BEGIN("Price");
> > > SetChartOptions(0,chartShowArrows|chartShowDates);
> > > _N(Title = StrFormat("{{NAME}} - {{INTERVAL}} {{DATE}} Open %g, Hi
> %g, Lo %g, Close %g (%.1f%%) Vol " +WriteVal( V, 1.0 ) +" {{VALUES}}",
> O, H, L, C, SelectedValue( ROC( C, 1 )) ));
> > > Plot( C, "Close", ParamColor("Color", colorWhite ), styleNoTitle |
> ParamStyle("Style") | GetPriceStyle() );
> > > _SECTION_END();
> > >
> > > _SECTION_BEGIN("Price");
> > > Ticker = ParamStr("Symbol", Name() );
> > > PlotForeign( Ticker, Ticker, ParamColor("Color", colorCycle ),
> ParamStyle("Style") | GetPriceStyle() );
> > > _SECTION_END();
> > >
> > > The line GetPriceStyle() causes both panes to be plotted using the
> style selected in the view menu...
> > >
> > > In a nutshell, and I know you were a gfx developer before, it's all
> about AFL... you can do virtually anything you can imagine but your
> gonna have to immerse yourself in the AFL manual.
> > >
> > >
> > > --- In amibroker@xxxxxxxxxxxxxxx
> <mailto:amibroker%40yahoogroups.com>, "Conrad Joach" <consolejoker@> wrote:
> > > >
> > > >
> > > > I must be doing something wrong because this isn't working for
> me. I can get the two tickers split this way, however if I change the
> style of the chart as you suggest in step 2 below, it changes the style
> on both the top and bottom ticker. I would like to have candlesticks on
> the top ticker and line chart on the bottom ticker. How would I go about
> that?
> > > >
> > > > Many thanks.
> > > >
> > > >
> > > > --- In amibroker@xxxxxxxxxxxxxxx
> <mailto:amibroker%40yahoogroups.com>, "Tomasz Janeczko" <groups@> wrote:
> > > > >
> > > > > 1. Double click on Charts->Basic Charts, "Price (foreign)"
> > > > >
> > > > > 2. Use View->Price Chart style
> > > > >
> > > > > Best regards,
> > > > > Tomasz Janeczko
> > > > > amibroker.com
> > > > > ----- Original Message -----
> > > > > From: "Conrad Joach" <consolejoker@>
> > > > > To: <amibroker@xxxxxxxxxxxxxxx
> <mailto:amibroker%40yahoogroups.com>>
> > > > > Sent: Saturday, March 21, 2009 9:05 AM
> > > > > Subject: [amibroker] Re: Is it possible to refer to more than
> one instrument on a single chart?
> > > > >
> > > > >
> > > > > > Thanks, that's what I'm looking to do but am not finding it
> apparent. Is this something that can be done within the window or it
> > > > > > has to be done from the menu bar of the main app?
> > > > > >
> > > > > > --- In amibroker@xxxxxxxxxxxxxxx
> <mailto:amibroker%40yahoogroups.com>, Graham <kavemanperth@> wrote:
> > > > > >>
> > > > > >> Use separate chart panes in the one window
> > > > > >> --
> > > > > >> Cheers
> > > > > >> Graham Kav
> > > > > >> AFL Writing Service
> > > > > >> http://www.aflwriting.com <http://www.aflwriting.com>
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > >> 2009/3/21 Conrad Joach <consolejoker@>:
> > > > > >> > I saw that video. The issue is that I have two symbols
> with almost the exact same price, so they overlap.
> > > > > >> >
> > > > > >> > There are two things I'd like to do, but not sure how to
> do them.
> > > > > >> >
> > > > > >> > 1) Plot the "foreign" symbol on the bottom half of the
> chart window, as if it were plotted like an indicator.
> > > > > >> >
> > > > > >> > 2) Change the plot style of one of the two symbols, so one
> is candlestick and the other is line on close.
> > > > > >> >
> > > > > >> > I'd much rather do #1, since even with #2 I think it would
> still be impossible to tell the two time series apart.
> > > > > >> >
> > > > > >> > Any suggestion on how to do this?
> > > > > >> >
> > > > > >> > Many thanks.
> > > > > >> >
> > > > > >> > --- In amibroker@xxxxxxxxxxxxxxx
> <mailto:amibroker%40yahoogroups.com>, "Tomasz Janeczko" <groups@> wrote:
> > > > > >> >>
> > > > > >> >> Yes. See entire video section:
> > > > > >> >> http://www.amibroker.com/video/
> <http://www.amibroker.com/video/>
> > > > > >> >>
> > > > > >> >> Best regards,
> > > > > >> >> Tomasz Janeczko
> > > > > >> >> amibroker.com
> > > > > >> >> ----- Original Message -----
> > > > > >> >> From: "Conrad Joach" <consolejoker@>
> > > > > >> >> To: <amibroker@xxxxxxxxxxxxxxx
> <mailto:amibroker%40yahoogroups.com>>
> > > > > >> >> Sent: Saturday, March 21, 2009 12:25 AM
> > > > > >> >> Subject: [amibroker] Is it possible to refer to more than
> one instrument on a single chart?
> > > > > >> >>
> > > > > >> >>
> > > > > >> >> >I have a need to plot two instruments on the same chart,
> or at least have a formula that refers to the pricing time series of
> > > > > >> >> >two
> > > > > >> >> >instruments on the same chart. This should be possible
> but I see no obvious way of doing this.
> > > > > >> >> >
> > > > > >> >> > Thx for any guidance.
> > > > > >> >> >
> > > > > >> >> >
> > > > > >>
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > ------------------------------------
> > > > > >
> > > > > > **** 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/
> <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/
> <http://www.amibroker.com/devlog/>
> > > > > >
> > > > > > Yahoo! Groups Links
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>
>
------------------------------------
**** 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
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|