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 Fran888, 02-16-2024, 10:48 AM
    3 responses
    44 views
    0 likes
    Last Post Sam2515
    by Sam2515
     
    Started by martin70, 03-24-2023, 04:58 AM
    15 responses
    114 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by The_Sec, Today, 02:29 PM
    1 response
    7 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by jeronymite, 04-12-2024, 04:26 PM
    2 responses
    31 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by Mindset, 05-06-2023, 09:03 PM
    10 responses
    265 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Working...
    X