Register Login
Forums    February 9, 2012
TradersStudio Forums
Help needed by new user - ProtectiveDollarStop
Last Post 08-14-2007 11:19 AM by mur ang. 3 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Owen Rees
New Member
New Member
Posts:2

--
08-14-2007 10:32 AM
    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
    mur ang
    Advanced Member
    Advanced Member
    Posts:525

    --
    08-14-2007 11:01 AM

    '********************************
    ' 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
    New Member
    New Member
    Posts:2

    --
    08-14-2007 11:14 AM
    Thanks Murray that worked fine. I understand the use of the word signal now. Is this usage of signal consistent throughout TS? Owen
    mur ang
    Advanced Member
    Advanced Member
    Posts:525

    --
    08-14-2007 11:19 AM
    Yes
    You are not authorized to post a reply.


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