Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

code question

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

    code question

    Can these events (statements) be put into a code to trade from and if so what would the code be.

    1) TheCurrent bar price of equal to the previous bars high+ 1 tickis the "first" time that a bar broke the previous bar high of that bar.

    2)This event (number 1) occured after the "most recent occurence" of a bar that broke its previous bar, low of that bar.

    Number 2 event must occur first, than followed by number one. We enter a long position if number 1 occurs after number 2. We also close any open short postion the same time the long postion is opened.

    Thanx MUCH.........Steve

    #2
    imported post

    Hi Steve,

    Yes you can do that but unfortunately we do not provide support in the form writing user requested code. Its not economically feasible for us.

    Some pointers though...

    if (Close[0] >= (Close[1] + TickSize))
    // Condition 1 is true

    If you call

    EnterLong()

    any open short position will be closed first.

    We always suggest trying a simple condition first. Make sure its working as you expect. Then add another layer, check if it works and then build step by step...

    Ray
    RayNinjaTrader Customer Service

    Comment


      #3
      imported post

      THANX MUCH FIR THE INPUT

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by sjsj2732, Yesterday, 04:31 AM
      0 responses
      35 views
      0 likes
      Last Post sjsj2732  
      Started by NullPointStrategies, 03-13-2026, 05:17 AM
      0 responses
      287 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      286 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      133 views
      1 like
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      92 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Working...
      X