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 bortz, 11-06-2023, 08:04 AM
          47 responses
          1,607 views
          0 likes
          Last Post aligator  
          Started by jaybedreamin, Today, 05:56 PM
          0 responses
          9 views
          0 likes
          Last Post jaybedreamin  
          Started by DJ888, 04-16-2024, 06:09 PM
          6 responses
          19 views
          0 likes
          Last Post DJ888
          by DJ888
           
          Started by Jon17, Today, 04:33 PM
          0 responses
          6 views
          0 likes
          Last Post Jon17
          by Jon17
           
          Started by Javierw.ok, Today, 04:12 PM
          0 responses
          16 views
          0 likes
          Last Post Javierw.ok  
          Working...
          X