Register Login
Forums    February 9, 2012
TradersStudio Forums
exiting with limit orders
Last Post 01-19-2009 04:21 PM by mur ang. 1 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Evan Palmer
New Member
New Member
Posts:2

--
01-19-2009 11:51 AM

    TS 2.5 comes with a system called PROFITEXIT_TEST(), for which the code is:

    ' TradersStudio(r) (C) 2004-2007 All Rights Reserved
    Sub profitexit_test

    Dim minmove

    minmove= getactiveminmove()

    Print bigpointvalue

    Buy("buyent",1,Open,Market,Day)

    ExitLong("buyex1","buyent",1,EntryPrice+(200/bigpointvalue),Limit,Day)

    End Sub

    I ran it on the s&p emini contract daily data and all I get are buys and sells at the exact same price, once per day.  Shouldn't it try to sell 4 points higher than it buys?  I did this test because I'm having similar problems in another system I'm writing.  What's wrong here?

    -ekp

    mur ang
    Advanced Member
    Advanced Member
    Posts:525

    --
    01-19-2009 04:21 PM

    Are you trying to enter and exit on the same day, If you are not  then you should do something like

    If barssinceentry>1 then

    ExitLong("buyex1","buyent",1,EntryPrice+(200/bigpointvalue),Limit,Day)

    end if

     

    Entry day target profit features are limited because it allows you to fool yourself into thinking you have a profitable system.

     

    You are not authorized to post a reply.


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