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 Tim-c, Today, 03:54 AM
      0 responses
      3 views
      0 likes
      Last Post Tim-c
      by Tim-c
       
      Started by FrancisMorro, Today, 03:24 AM
      0 responses
      3 views
      0 likes
      Last Post FrancisMorro  
      Started by Segwin, 05-07-2018, 02:15 PM
      10 responses
      1,772 views
      0 likes
      Last Post Leafcutter  
      Started by Rapine Heihei, 04-23-2024, 07:51 PM
      2 responses
      31 views
      0 likes
      Last Post Max238
      by Max238
       
      Started by Shansen, 08-30-2019, 10:18 PM
      24 responses
      945 views
      0 likes
      Last Post spwizard  
      Working...
      X