Monday, December 01, 2008     | Register
TradersStudio Forums
Subject: Another protective stop question

You are not authorized to post a reply.   
Author Messages
bhh
Posts:17

01-18-2008 1:18 AM Alert 

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

 

murray
Posts:431

01-18-2008 10:21 AM Alert 

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.
Forums > TradersStudio 2.x > TradersStudio Basic > Another protective stop question



ActiveForums 3.6
TradersStudio® Copyright 2004-2008 All Rights Reserved   |  Privacy Statement  |  Terms Of Use