That helped solve it for me.
I went back to start over since over the years I found I can isolate errors.  
Made blank pane.  Moved price to it from charts tab.
Right clicked like you stated.  No formula to plot 3* ATR.  Added it. AFter 
some more work, I got it to show.  

Here is what I noticed:
After I edited the code, I normally check syntax - the AFL check mark and then 
move directly to the red exclamation point to perform the backtest.  I noticed 
that I had skipped the apply indicator button next to the AFL check mark.  To 
try it, I clicked on it and another pane displayed with what I wanted.  I don't 
understand this, but it worked. 
Oh, and the title displays too. 
There is something about refreshing plots that I don't understand yet.  
I'm trying to make the code somewhat independent of the automatic analyzer 
settings so that I can try different trading strategies. 
Anyway, the plots that I wanted to show now are displayed.
Many thanks for your help.  I would have had no idea to right click on the 
pane.   

Many regards,
SrEngRet


--- In [email protected], "monitorit" <monito...@...> wrote:
>
> --- In [email protected], "srengret" <lechols@> wrote:
> >
> Just a thought,
> Right click in the pane where you think the green line should be. Choose edit 
> formula.  If the new plot code is there - I'm at a loss.  If it isn't, put it 
> there. 
> 
> BTW, does the title show an indicator called "c-3*ATR(10)" - what is that 
> value and have you found that value in the y-axis label? You could also plot 
> 3*ATR separately.
> Dan
> 
> 
> > Ies, I've scrolled up and down and zoomed in and out. No dark green color 
> > line is displayed.
> > Is it possible that I have a conflict with the automatic analysis settings? 
> >  If so, where?
> > Any ideas what to try next?
> > 
> > 
> > 
> > 
> > --- In [email protected], "monitorit" <monitorit@> wrote:
> > >
> > > --- In [email protected], "srengret" <lechols@> wrote:
> > > >
> > > srengret,
> > > Have you tried scrolling down to a price level that's probably 30% or so 
> > > below the close price?  Or perhaps change 3*ATR..  to 1*ATR... or 0.5*ATR 
> > > and see it nearer the close.
> > > Dan
> > > 
> > > > I have a white background.  I'm away from home right now so I'll try 
> > > > the code you provided anyway when I return.
> > > > 
> > > > Am I overlooking where it may be plotted, i.e. I'm expecting the plot 
> > > > to show on the same chart as my buy and sell arrows ?
> > > > 
> > > > Thanks.
> > > > 
> > > > 
> > > > 
> > > > --- In [email protected], "Joris Schuller" <jschuller@> wrote:
> > > > >
> > > > > Plot (C-(3*(ATR(10))), "c-3*ATR(10)", colorDarkGreen);
> > > > > 
> > > > > //added; if you don't see line below plotted, you know it is the 
> > > > > background
> > > > > 
> > > > > Plot (C, "C", colorDarkGreen,64);
> > > > > 
> > > > >  
> > > > > 
> > > > > From: [email protected] [mailto:[email protected]] On 
> > > > > Behalf
> > > > > Of srengret
> > > > > Sent: Monday, March 30, 2009 5:12 AM
> > > > > To: [email protected]
> > > > > Subject: [amibroker] Plot ATR for backtest - Unable to see the plot
> > > > > 
> > > > >  
> > > > > 
> > > > > I'm using Amibroker 5.10.
> > > > > I'm writing code to set a trailing stop at 3* ATR. I'm trying to plot 
> > > > > 3 *ATR
> > > > > as a line to see this, yet I'm unable to plot it after checking 
> > > > > references
> > > > > and modifying the code. 
> > > > > The code worked fine using the ApplyStop for a 7% trailing stop. I 
> > > > > commented
> > > > > it out to use the 3*ATR. Also, green buy arrows and red sell arrows 
> > > > > showed
> > > > > okay. 
> > > > > I imagine I've overlooked something obvious - maybe it is positioning 
> > > > > of the
> > > > > 3*ATR line. I just don't know. 
> > > > > I used a purchase of PZT (Powershares ETF) on 9/11/2008 as a check to 
> > > > > see
> > > > > the line, but it didn't show. 
> > > > > Would someone look at the code below and tell me what is wrong with 
> > > > > it? 
> > > > > 
> > > > > Buy = 
> > > > > C > 5.0 AND 
> > > > > ROC(C,10) > 0 AND
> > > > > PDI(10) > MDI(10) AND 
> > > > > ADX(10)>22 AND
> > > > > C > EMA(C,10) AND
> > > > > EMA(C,10) > EMA(C,20);
> > > > > 
> > > > > Sell=0;
> > > > > //Trailing Stop at 7% Loss
> > > > > //ApplyStop(2,1,7,1,False,1);
> > > > > //Equity(1,0); //ThIS EVALUATES STOPS
> > > > > //Plot(Sell==4,"ApplyStop Sell",colorRed,4|styleOwnScale);//4 is for
> > > > > trailing stops
> > > > > //Sell = 1.10*Buy;
> > > > > 
> > > > > //Using ATR 
> > > > > ApplyStop(2,2,3*ATR(10), 1, False,1) ;
> > > > > Equity(1,0); //ThIS EVALUATES STOPS
> > > > > Plot(Sell==4,"ApplyStop Sell",colorRed,4|styleOwnScale);//4 is for 
> > > > > trailing
> > > > > stops
> > > > > 
> > > > > //Plot ATR
> > > > > Plot (C-(3*(ATR(10))), "c-3*ATR(10)", colorDarkGreen);
> > > > > 
> > > > > Thanks.
> > > > >
> > > >
> > >
> >
>


Reply via email to