Register Login
Forums    February 9, 2012
TradersStudio Forums
Another protective stop question
Last Post 01-18-2008 10:21 AM by mur ang. 1 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Brandon Hicks
New Member
New Member
Posts:16

--
01-18-2008 01:18 AM

    New to TS2.5 and blown away by the power of this software.  I am slowly getting up to speed on the language and have made good progress but having a difficult time wrapping my head around how to place a protective stop at the lowest low for the 2-days proceeding entry. 

    I am a firm believer in "just figure it out" but after 3 days of struggling with what seems like a simple thing, I'm giving up.  Thanks for any help.

    B

     

    mur ang
    Advanced Member
    Advanced Member
    Posts:525

    --
    01-18-2008 10:21 AM

    If the trades are not that long you can use barsinceentry as a lookback to get the lowest low over past 2 bars relative to the entry day

    If barsinceentry>0 then

    ExitLong("","",1,Lowest(Low,2,barssinceentry-1),stop,day)

     

    end if

     

    We have a new version coming up with let's you access entry day values by signal na,name. You can also use barssinceentryplus(SignalName) to do it by signal name.

    You are not authorized to post a reply.


     TradersStudio, Inc. ® Copyright 2004-2012 All Rights Reserved   Terms Of Use  Privacy Statement