Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Automated Time Based Trading

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Automated Time Based Trading

    Hi All:

    I need to back test a strategy, and eventually fully or semi fully, automate the trading the strategy.... assuming the back tested results prove to be profitable.

    Here's what I'm trying to do...

    At Xpm, I want to enter a buy and sell order for X market. At this time, I will want both a buy and a sell order the enter the market at +&- 25 ticks from the Xpm closing bar.


    Up until this point, I think I've been able to program the logic. Where I run into trouble, is with the following logic:

    Whichever order executes first, will cancel out the other order. So if the buy executes before the sell, the sell will be canceled Next it will pace a sell/buy limit (based on what order executed), and a stop.

    Also, it will be necessary to only execute one order, once the first order is filled, no other orders will be placed for the day.

    Lastly, if the order has not filled before the market close, all orders will be withdrawn from the market.

    I've attached what I have so far. Any help is appreciated.

    Regards,

    Brian
    Last edited by heyligerb; 01-31-2009, 09:53 AM.

    #2
    Hello,

    I want to enter a buy and sell order for X market
    >>This is not possible in NinjaScript. This link has more information on this at the bottom:

    DenNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by DayTradingDEMON, Today, 09:28 AM
    3 responses
    19 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Stanfillirenfro, Today, 07:23 AM
    9 responses
    23 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by George21, Today, 10:07 AM
    0 responses
    8 views
    0 likes
    Last Post George21  
    Started by navyguy06, Today, 09:28 AM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by cmtjoancolmenero, Yesterday, 03:58 PM
    8 responses
    32 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Working...
    X