Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

custom series work

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

    custom series work

    Please tell me how i'm doing this custom series wrong?

    Code:
    RedBar is a double
    If Open[0] > Close[0]  then its a RedBar[0]
    If RedBar[0] < EMA(20)[0]  then go short
    Why does this not work?
    Thanks

    #2
    i just realized i'm comparing apples to oranges.
    One is a price(open and close) and one is a condition(Redbar)

    Comment


      #3
      Hi ezrollin, it looks like you resolved already. You can also use Print() to print out the data you are using and explain the strategy output behavior:

      https://ninjatrader.com/support/foru...ing#post791121

      It looks like maybe RedBar[0] was not assigned a value.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by NullPointStrategies, Today, 05:17 AM
      0 responses
      46 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      126 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      66 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      42 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      46 views
      0 likes
      Last Post TheRealMorford  
      Working...
      X