Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order Entry Placement (basic understanding)

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

    Order Entry Placement (basic understanding)

    I am missing a basic concept regarding automating order entry, from within the OnBarUpdate Method. I've attached a basic order entry strategy below, that I expected to enter the market Long, at each "real time" bar whose high exceded the previous bars low.
    The print message is displayed but no order(s) were placed. I am missing a basic concept, any help is appreciated.


    protected override void OnBarUpdate()
    { if ( High[0]>Low[1])
    {
    Print("Should enter long");
    Print(Time[0].ToString());
    EnterLong();
    }

    }

    #2
    Please review the following section of our Help Guide with reference to Entries per direction and Entry handling.

    RayNinjaTrader Customer Service

    Comment


      #3
      Ray,
      That was the section I needed to read. Helped me answer my follow-up question as well.
      thanks,
      Phineas

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by bill2023, Yesterday, 08:51 AM
      8 responses
      43 views
      0 likes
      Last Post bill2023  
      Started by yertle, Today, 08:38 AM
      6 responses
      25 views
      0 likes
      Last Post ryjoga
      by ryjoga
       
      Started by algospoke, Yesterday, 06:40 PM
      2 responses
      24 views
      0 likes
      Last Post algospoke  
      Started by ghoul, Today, 06:02 PM
      3 responses
      16 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by jeronymite, 04-12-2024, 04:26 PM
      3 responses
      46 views
      0 likes
      Last Post jeronymite  
      Working...
      X