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

RE: [amibroker] Re: Stock basket tracking with AmiBroker real-time???



PureBytes Links

Trading Reference Links

Anthony,

If I try to use PlotGrid() with the example I've given below, the 
dots will still not overwrite the areas of the chart that I multi-
colored.  Plug in the code as an indicator, choose 'Middle' in the 
Grid Line section below the formula editor and you'll see what I 
mean.  I am placing the PlotGrid() function at the end of the 
indicator so it's the last thing to write on the chart.

[my custom colors are slightly different shades of green, so pick 2 
colors that just have a different luminescence rather than stark 
contrast]

Steve

--- In amibroker@xxxxxxxxxxxxxxx, "Anthony Faragasso" <ajf1111@xxxx> 
wrote:
> Scourt2000,
> 
> You can use the PlotGrid() function.
> 
> Anthony
> ----- Original Message ----- 
> From: "scourt2000" <stevehite@xxxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Monday, March 01, 2004 3:25 PM
> Subject: [amibroker] Re: Vertical lines
> 
> 
> >
> > Tomasz,
> >
> > My original e-mail had to do with changing the background color
> > based on price being above or below a moving average.   You 
provided
> > a solution for me (thanks!) and, even though I have 'Middle'
> > selected in the Grid Lines section, the original horizontal 
dotted
> > lines became covered by the alternating background coloring.  
Your
> > reply was:
> >
> > "As of now, you would need to use Plot() function to plot 
additional
> > grid lines over multicolored background."
> >
> > My question below now relates to how to use Plot() to get back 
the
> > original dotted lines (Amibroker knows y-axis prices it has
> > displayed and I didn't know how to find that out so that I could
> > redraw the lines).  I'll include the original message and sample
> > code as an example.
> >
> > --------------------------
> > Here is the code I'm using in the indicator.  I have `Show Dates'
> > and `Middle' selected in the Grid Lines option section when I 
press
> > Ctrl-E to bring up the Indicator panel.
> >
> >
> > Plot(Close, "", colorBlack, styleCandle | styleNoLabel);
> >
> > Plot(LinearReg(Avg, 25), "", colorBlue, styleLine | styleThick |
> > styleNoLabel);
> >
> > Plot(EMA(Close, 34), "", colorYellow, styleLine | styleThick |
> > styleNoLabel);
> >
> > // Comment this line out, you will have the default dotted lines
> > // across the y-axis prices.  'Middle' is checked in Grid Lines
> > section
> >
> > Plot(1, "", IIf(Close > EMA(Close,34), colorCustom1, 
colorCustom3 ),
> > styleArea | styleOwnScale, 0, 1 );
> >
> > --------------------------
> >
> >
> >
> > --- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" 
<amibroker@xxxx>
> > wrote:
> > > Steve,
> > >
> > > I don't remember telling you that it is not possible to plot 
grid
> > lines.
> > > In fact you just need to go to Indicator Builder and mark
> > > "MIDDLE" checkbox in "Grid" settings and horizontal dotted
> > > grid lines will be drawn automatically for you.
> > >
> > > Best regards,
> > > Tomasz Janeczko
> > > amibroker.com
> > > ----- Original Message ----- 
> > > From: "scourt2000" <stevehite@xxxx>
> > > To: <amibroker@xxxxxxxxxxxxxxx>
> > > Sent: Monday, March 01, 2004 8:28 PM
> > > Subject: [amibroker] Re: Vertical lines
> > >
> > >
> > > >
> > > > When the vertical lines are plotted on the price chart, the
> > standard
> > > > default horizontal dotted lines on the y-axis are 
overwritten.
> > How
> > > > can I restore these dotted lines using Plot() without knowing
> > the
> > > > automatically generated prices that Amibroker had plotted?
> > > >
> > > > Thanks,
> > > >
> > > > Steve
> > > >
> > > > P.S. In a support e-mail, Tomasz (in a non-related question) 
has
> > > > confirmed that the dotted lines must be redrawn using Plot()
> > > > because, once overwritten, Amibroker currently has no option 
to
> > have
> > > > them refreshed after a user-defined plot has overwritten the
> > basic
> > > > price chart layout.
> > > >
> > > >
> > > >
> > > > Send BUG REPORTS to bugs@xxxx
> > > > Send SUGGESTIONS to suggest@xxxx
> > > > -----------------------------------------
> > > > Post AmiQuote-related messages ONLY to: 
amiquote@xxxxxxxxxxxxxxx
> > > > (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> > > > --------------------------------------------
> > > > Check group FAQ at:
> > http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> > > > Yahoo! Groups Links
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> >
> >
> >
> > Send BUG REPORTS to bugs@xxxx
> > Send SUGGESTIONS to suggest@xxxx
> > -----------------------------------------
> > Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
> > (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> > --------------------------------------------
> > Check group FAQ at:
> http://groups.yahoo.com/group/amibroker/files/groupfaq.html
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> 
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.583 / Virus Database: 369 - Release Date: 2/10/2004



Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/amibroker/

<*> 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/