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 nikorrriko, Today, 04:42 PM
      1 response
      10 views
      0 likes
      Last Post NinjaTrader_ThomasC  
      Started by rajeshks1988, Yesterday, 05:32 AM
      1 response
      16 views
      0 likes
      Last Post cincai
      by cincai
       
      Started by MaraAnkh, Yesterday, 08:44 PM
      1 response
      23 views
      0 likes
      Last Post cincai
      by cincai
       
      Started by [email protected], Today, 06:10 PM
      4 responses
      11 views
      0 likes
      Last Post bpatel20@gmail.com  
      Started by sgordet, Today, 02:24 PM
      0 responses
      14 views
      0 likes
      Last Post sgordet
      by sgordet
       
      Working...
      X