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 samish18, 04-17-2024, 08:57 AM
    17 responses
    64 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by rocketman7, Today, 02:12 AM
    2 responses
    16 views
    0 likes
    Last Post rocketman7  
    Started by briansaul, Today, 05:31 AM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by PaulMohn, Today, 03:49 AM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by frslvr, 04-11-2024, 07:26 AM
    6 responses
    106 views
    1 like
    Last Post NinjaTrader_BrandonH  
    Working...
    X