Monday, December 01, 2008     | Register
TradersStudio Forums
Subject: Help needed by new user - ProtectiveDollarStop

You are not authorized to post a reply.   
Author Messages
owen_rees
Posts:2

08-14-2007 10:32 AM Alert 
I am a new TS 2.5 user and I wondered why I am unable to get ProtectiveDollarStop to work. Are there any examples that I can refer to. An example of a script for a session and a tradeplan would steer me in the right direction. I am still awaiting my manuals from the US and as such I have no idea if there are references to usage in these. Many thanks Owen
murray
Posts:431

08-14-2007 11:01 AM Alert 

'********************************
' Simple Channel Breakout System
' TradersStudio(r) 2004-2007 , All rights reserved
Sub CHANBREAKOUTProtectStop (SLen,ProStop)
Dim MinMove
MinMove=GetActiveMinMove()
Buy("ChanBuy",1,Highest(High,SLen,0)+MinMove ,STOP,DAY)
Sell("ChanSell",1,Lowest(Low,SLen,0)-MinMove,STOP,DAY)
protectivedollarstop("",ProStop,1)
End Sub

 Here an example.  The first argument is the signal to exit, "" means all. It not the signal name these are prenamed so they can be identified as dollar stops.

owen_rees
Posts:2

08-14-2007 11:14 AM Alert 
Thanks Murray that worked fine. I understand the use of the word signal now. Is this usage of signal consistent throughout TS? Owen
murray
Posts:431

08-14-2007 11:19 AM Alert 
Yes
You are not authorized to post a reply.
Forums > Technical Trading > Developing Trading Systems > Help needed by new user - ProtectiveDollarStop



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