Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

go long if true test

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

    go long if true test

    Hi, I have made an indicator that tests for a condition of the current bar's close price as it relates to a prior bar. I can't find a way in the strategy builder to create a condition wherein my indicator is returning a "true" value

    #2
    Hello trader3000a,

    You would need to set a plot value which is a Series<double>. As a suggestion, you could set a value of 1 for true and 0 for false.

    Below is a link to an example.
    https://ninjatrader.com/support/foru...238#post812238
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by stafe, Today, 12:34 PM
    2 responses
    11 views
    0 likes
    Last Post stafe
    by stafe
     
    Started by asmmbillah, Today, 11:18 AM
    1 response
    14 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by nickse2003, Today, 09:56 AM
    1 response
    24 views
    0 likes
    Last Post NinjaTrader_ChristopherJ  
    Started by ATMtrader0001, Today, 10:08 AM
    5 responses
    33 views
    0 likes
    Last Post ATMtrader0001  
    Started by WHICKED, Today, 09:47 AM
    1 response
    22 views
    0 likes
    Last Post NinjaTrader_Spencer  
    Working...
    X