Register Login
Forums    February 9, 2012
TradersStudio Forums
Multiple Entries
Last Post 10-05-2007 01:06 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 02:04 PM

    Hello -

    How do you allow the Session to Buy multiple entries on different days?

    For example, I could place an entry on Day 1 if the order condition was met and on Day N so long as it met the order conditions - up to a total of 4 positions and only 1 position per day.

    Thank you.

    Charlie

    mur ang
    Advanced Member
    Advanced Member
    Posts:525

    --
    10-04-2007 03:29 PM

    TradesAllowed

    Another set of constants relating to Buy/Sell is the values allowed for the built-in flag calledTradesAllowed.  In TradersStudio Versions 1.0 and 1.1, adding on to a position was not permitted.  If you were short, you could not enter another sell order to increase your short position.  This built-in flag can have three values:

     

    NoSameDirection  (default) - same as used in TradersStudio 1.0 and 1.1;
    AllOrders This constant allows you to add to positions each time any Buy or Sell order is placed.  For example, if a market has a channel breakout and sets a new 20-day high three days in a row.  In this case, you will be long three contracts.
    SameDirectDiffSignals This constant allows you to add positions in the same direction, but only if signal names are different.

     

     

    ExitsAllowed

     

    ExitsAllowed is a built-in flag that controls behavior of ExitLong and ExitShort functions.  It can be one of the following:

     

    NoSameDirection (default) Allows you to exit from an entry unlimited number of times.  For example, if entry size was 10, then you can have 10 exits, each exit having size = 1.
    SameDirectDiffSignals Allows you to exit only once.  For example, if entry size was 10, then you can exit from the position only once.  If you want to exit more than once, then you have to pass different exit names to ExitShort or ExitLong function.

     

     

    Charles Gaudet
    New Member
    New Member
    Posts:5

    --
    10-04-2007 03:38 PM
    thank you! i've searched in help and within the manual and am unable to locate an example of how this is used ...

    can you provide me with an example of how & where I would add the "AllOrders" to my code?

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

    --
    10-05-2007 01:06 PM

    TradesAllowed=AllOrders

    Add this line to your code.

     

    You are not authorized to post a reply.


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