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

Wao

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

    Wao

    Hello. I'm developing an strategy, and it use the indicator Wiseman awesome oscilator. One condition is that the indicator the value were more than X. But the problem is that I want to get only when the value is green. And if I do this:

    WAO = WisemanAwesomeOscillator()[0];

    I don't know if the value is over green bar o red bar.

    How can i get the value when the bar is only green.

    Thanks a lot.

    #2
    Hello brokerbombero, thanks for your post.

    The default Wiseman awesome indicator does not have any property that tells you whether the bar is red or green. I found this open-source version of the awesome oscillator here:
    This is a conversion of the NT7 indicator AO (Awesome Oscillator) by Bill Williams. Please contact the original author for any questions or comments.


    With this, you can edit the code to add a plot or public series that indicates whether the Wiseman plot is red or green.

    See here for an example on exposing a public series that is not a plot:



    The NinjaTrader Ecosystem website is for educational and informational purposes only and should not be considered a solicitation to buy or sell a futures contract or make any other type of investment decision. The add-ons listed on this website are not to be considered a recommendation and it is the reader's responsibility to evaluate any product, service, or company. NinjaTrader Ecosystem LLC is not responsible for the accuracy or content of any product, service or company linked to on this website.
    Chris L.NinjaTrader Customer Service

    Comment


      #3
      Ok, fixed.

      Thanks a lot.

      Comment


        #4
        Hi,
        How to use this bw awesome oscillator inside a strategy where i'm using 3 different instruments like below. Please advise.

        if(BarsInProgress == 1)
        bwAO
        else if if(BarsInProgress == 2)
        bwAO
        else if if(BarsInProgress == 3)
        bwAO​

        Comment


          #5
          Hello pvjkr,

          Welcome to the NinjaTrader forum!

          You could print the plot values from calling the indicator with the name of the plot and a bar index.

          Print( bwAO().AOBarPlot[0] );
          Print( bwAO().AOLinePlot[0] );

          I am also including a link to forum posts with helpful resources on getting started with NinjaScript and C#.
          NT7 - https://ninjatrader.com/support/foru...232#post775232
          NT8 - https://ninjatrader.com/support/foru...pts#post786040
          Chelsea B.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by vecnopus, Today, 06:15 AM
          0 responses
          1 view
          0 likes
          Last Post vecnopus  
          Started by Aviram Y, Today, 05:29 AM
          0 responses
          5 views
          0 likes
          Last Post Aviram Y  
          Started by quantismo, 04-17-2024, 05:13 PM
          3 responses
          27 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by ScottWalsh, 04-16-2024, 04:29 PM
          7 responses
          36 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by cls71, Today, 04:45 AM
          0 responses
          6 views
          0 likes
          Last Post cls71
          by cls71
           
          Working...
          X