Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Programming intra-day trades from a watch list

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

    Programming intra-day trades from a watch list

    I want to auto trade from a list of stocks that are imported daily from excel. I already know how to do this part.

    Where I need help is programming a strategy that will do the following:

    1) Buy any stock on the imported list (which could be up to 250 stocks) at a % of the most recent daily closing price. Lets say 5% down from the close. This would be a limit order.

    2) Buy a certain $ amount per trade. Lets say $10000 per trade.

    3) Max open positions of 5 at any one time. This means the first stocks to hit their limits will be bought.

    Selling would be manually performed after the close based on certain criteria, which I do not need to program. The manual sell order would be a market order at the open.

    Also, I realize I might need an intraday data service to make this work. Will Kinetick's intraday service work ?

    This should be simple to program but I am new. I used to use Prodigio RTS to run this strategy with good success. Can't see why it could not not work for Ninja.

    Thanks

    #2
    Hello Bandwagon,

    Thank you for your post.

    In order to read from an outside file you will need to hook into the Microsoft.Interop.Excel or use the System.IO for a text filehttp://www.ninjatrader.com/support/f...ead.php?t=3477


    1) You will need to program some kind of scanner for those symbols and then process that information. You can add additional instruments into a script using Add();
    http://www.ninjatrader.com/support/h....html?add3.htm

    2) Use AccountSize to set the cash value for the strategy to use
    http://www.ninjatrader.com/support/h...ccountsize.htm

    3) EntriesPerDirection will achieve this.
    http://www.ninjatrader.com/support/h...rdirection.htm

    Manual closing is not recommended as the strategy will not recognize this action and can cause unnecessary other positions that you may not want.
    Cal H.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Aviram Y, Today, 05:29 AM
    0 responses
    5 views
    0 likes
    Last Post Aviram Y  
    Started by quantismo, 04-17-2024, 05:13 PM
    3 responses
    27 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by ScottWalsh, 04-16-2024, 04:29 PM
    7 responses
    36 views
    0 likes
    Last Post NinjaTrader_Gaby  
    Started by cls71, Today, 04:45 AM
    0 responses
    6 views
    0 likes
    Last Post cls71
    by cls71
     
    Started by mjairg, 07-20-2023, 11:57 PM
    3 responses
    219 views
    1 like
    Last Post PaulMohn  
    Working...
    X