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

[amibroker] Re: ATR Trailing Stop



PureBytes Links

Trading Reference Links

Try Sell==4, rather than Sell=4 (single '=' to assign, '==' to 
check).  If not that, try 1+styleownscale, rather than 
1|styleownscale.  I have never typed it your way, but it might be 
okay, just a thought.

--- In amibroker@xxxxxxxxxxxxxxx, "glennokb" <glennokb@xxxx> wrote:
> Hi Tomasz,
> 
> Thanks for your quick reply, looks simple compared to the Metastock 
> code!
> 
> Is it possible to place this trailing stop onto the MAIN price 
chart?
> 
> I had a look at ApplyStop in the manual and at the bottom of the 
page it 
> has:
> 
> ApplyStop( stopTypeTrailing, stopModePoint, 2*ATR(10), True, True );
> 
> Equity(1); // THIS EVALUATES STOPS
> Plot(Sell=4,"ApplyStop Sell",colorRed,1|styleOwnScale);
> 
> I placed the above in the indicator builder but doesn't seem to 
work.
> 
> Sorry if this is a really basic question, but I have looked through 
the 
> manual. Maybe I have to take off my Metastock head ! :-)
> 
> Cheers, Glenn
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" 
> <amibroker@xxxx> wrote:
> > Al,
> > 
> > In fact you can place ApplyStop also after trading rules.
> > It does not matter. Unless you are using Equity(1) somewhere
> > in your formula. In that case ApplyStops should be placed
> > before your Equity(1) if you want this function to evaluate stops.
> > 
> > Best regards,
> > Tomasz Janeczko
> > amibroker.com
> > ----- Original Message ----- 
> > From: "Al Venosa" <advenosa@xxxx>
> > To: <amibroker@xxxxxxxxxxxxxxx>
> > Sent: Wednesday, June 04, 2003 5:39 PM
> > Subject: Re: [amibroker] ATR Trailing Stop
> > 
> > 
> > > TJ, I didn't know you were supposed to put the ApplyStop 
command 
> BEFORE the
> > > buy/sell rules. Why is that?
> > > 
> > > al venosa
> > > 
> > > 
> > > ----- Original Message -----
> > > From: "Tomasz Janeczko" <amibroker@xxxx>
> > > To: <amibroker@xxxxxxxxxxxxxxx>
> > > Sent: Wednesday, June 04, 2003 7:31 AM
> > > Subject: Re: [amibroker] ATR Trailing Stop
> > > 
> > > 
> > > > Hello,
> > > >
> > > > ATR trailing stop (Chandeliers Exit) in AmiBroker is single 
line:
> > > > ApplyStop( stopTypeTrailing, stopModePoint, 2*ATR(10), True, 
> True );
> > > >
> > > > (put it before your buy/sell rules).
> > > >
> > > > Best regards,
> > > > Tomasz Janeczko
> > > > amibroker.com
> > > >
> > > > ----- Original Message -----
> > > > From: "glennokb" <glennokb@xxxx>
> > > > To: <amibroker@xxxxxxxxxxxxxxx>
> > > > Sent: Wednesday, June 04, 2003 7:35 AM
> > > > Subject: [amibroker] ATR Trailing Stop
> > > >
> > > >
> > > > > Hi,
> > > > >
> > > > > I'm interested in moving over to AmiBroker from Metastock. 
> I've had a
> > > > > look at PowerScan and I think I will find it very useful 
and 
> speed up
> > > > > learning.
> > > > >
> > > > > I have an ATR trailing stop in MetaStock that I'd like to 
use in
> > > > > AmiBroker but even with PowerScan I am having trouble. 
> Would anyone
> > > > > with Meta/Ami experience be able to help please? Or, have a 
> standard
> > > > > ATR stop I might be able to try?
> > > > >
> > > > > Here it is in Metastock code:
> > > > >
> > > > > x:=C-2*ATR(10);
> > > > > If(C>PREV,Max(x,PREV),x)
> > > > >
> > > > > Cheers Glenn


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/ySSFAA/GHeqlB/TM
---------------------------------------------------------------------~->

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 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/