Register Login
Forums    February 9, 2012
TradersStudio Forums
SetPercentTrailing
Last Post 10-05-2007 01:05 PM by mur ang. 3 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Charles Gaudet
New Member
New Member
Posts:5

--
10-04-2007 01:47 PM

    How do you translate Tradestation's SetPercentTrailing to TStudio?

    For example,

    If C>average(c,5) then begin

    SetPercentTrailing(-100, 1.5); /// SetPercentTrailing(FloorAmt, Percent)

    end;

     

    THANK YOU!

    mur ang
    Advanced Member
    Advanced Member
    Posts:525

    --
    10-04-2007 03:14 PM
    Are you running it on Futures or Stocks ?.
    Charles Gaudet
    New Member
    New Member
    Posts:5

    --
    10-04-2007 03:17 PM
    stocks - my objective is to be able to create a statement which will create a trailing percent stop once the stock closes above the 5 period moving average (perhaps I didn't code that right in tradestation).

    in other words, once a close>average(c,5) then set condition=true and begin trailingpercentstop.

    thank you!
    mur ang
    Advanced Member
    Advanced Member
    Posts:525

    --
    10-05-2007 01:05 PM
    What is the Trigger point for the Trailing Stop. You need a profit point for it to kick in, otherwise if you assume that average is good enough you might have some issues sometimes.
    You are not authorized to post a reply.


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