PureBytes Links
Trading Reference Links
|
applystop (stoplosss) is desinged for the amount of dollars or percentage
below the buyprice.
so for modepoints an array you could use something like ATR(x), or straight
price like 0.5 ($0.5), these would be like writing BuyPrice-ATR(x) or
shortprice+ATR(x)
If you want to use an actual price calculated by the actual bars prices
(like cross of LLV) then you should use Sell statement
--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://www.aflwriting.com
On 18/01/07, James <jamesmemphis@xxxxxxxxx> wrote:
>
> I too have a question regarding ApplyStop. In using a n-bar ApplyStop, is
> the stop price calculated as the n-bar close or the n-bar high or low? If
> you are long, you probably would want the n-bar low or the n-bar LLV. Can
> this be set up using ApplyStop or are you better off to set it up as Sell =
> Cross (LLV (Ref(L,-1), n), Low)
> James
>
>
> ----- Original Message ----
> From: paulradge <paulradge@xxxxxxxxxxxxxxx>
> To: amibroker@xxxxxxxxxxxxxxx
> Sent: Tuesday, January 16, 2007 9:14:22 PM
> Subject: [amibroker] Apply stop question
>
> i've just read the apply stop help,,,and need halp with a question
> please.
>
> re mode,,,
> i want my stop to be a calculation should i select 0 = disablestop
>
> re amount,,,
> i want my stop to be a calculation ,,,is this ok = Y
> ,,,,y=calculation
>
> if so would this be correct,,,
>
> applystop(0, 0,Y,1,false, 0)
>
> action,
> max loss stop,,disable stop,y=calculation, exit on stop price,fixed
> stop,
> no re entry,
>
> regards
> Paul
>
>
>
> ------------------------------
> Don't get soaked. Take a quick peak at the forecast
> with theYahoo! Search weather shortcut.
>
Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.13/632 - Release Date: 1/16/2007 4:36 PM
|