thanks Graham, 
                       still having a problem with applystop and have emailed 
you directly,
regards
Paul


  just put the stop amount in as your calculation, and use points


  -- 
  Cheers
  Graham
  AB-Write >< Professional AFL Writing Service
  Yes, I write AFL code to your requirements
  http://www.aflwriting.com 




  On 17/01/07, paulradge <[EMAIL PROTECTED]> wrote:
    ps 
           i have tradedelays set to (0,0,0,0) to activate the calculated buy 
and i guess the exit too,
    P

      ----- Original Message ----- 
      From: paulradge 
      To: [email protected] 
      Sent: Wednesday, January 17, 2007 4:37 PM
      Subject: Re: [amibroker] Apply stop question



      Hi Graham,
                       i've put together a volatility breakout system that i'm 
having fun with back testing,,,it buys at a calculation above the bar,,,used 
buyprice=calculation.It sells using sell=barssince(buy)== number of days

         what i'd like to do next is apply a fixed stop below the buy bar 
incase of a reversal,,,and i'd like to nominate a calculation for that stop 
price.

      the stop isn't a fixed percentage or a trailing stop but a calculation 
that is the inverse of the buy calculation ,,,the buy side works so i know i've 
got my calculation written correctly,,,which in its self was a learning curve 
learning the B.E.D.M.A.S

      i read up on applystop and thought i could use that function,,,so i'm 
after a stop by calculation that's fixed ie doesn't trail or move and is 
defined by my calculation,,,,and is exit on stop.

      this is where i got to
        applystop(type,mode,amount,exitatstop,volatile,reentrydelay)

      type=0 //maxstoploss
      mode ,,,??
      amount,,,??? somehow i need to introduce the calculation here i think ???
      exitatstop=1 ,,,,true exit on stop price
      volatile=false
      reentrydelay=0

      over
      Paul

         


        more detail required, by me at least, as I am not sure what conditions 
you require for the stop to be used


        -- 
        Cheers
        Graham
        AB-Write >< Professional AFL Writing Service
        Yes, I write AFL code to your requirements 
        http://www.aflwriting.com 



        On 17/01/07, paulradge <[EMAIL PROTECTED] > wrote: 
          ooooooooooopppssss
                     no it doesn't,,,can someone give me a pointer here 
please,,,
          P



            never mind it works,,,

              ----- Original Message ----- 
              From: paulradge 
              To: [email protected] 
              Sent: Wednesday, January 17, 2007 2:14 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


















   

Reply via email to