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 lightsun47, Today, 03:51 PM
          0 responses
          5 views
          0 likes
          Last Post lightsun47  
          Started by 00nevest, Today, 02:27 PM
          1 response
          8 views
          0 likes
          Last Post 00nevest  
          Started by futtrader, 04-21-2024, 01:50 AM
          4 responses
          44 views
          0 likes
          Last Post futtrader  
          Started by Option Whisperer, Today, 09:55 AM
          1 response
          14 views
          0 likes
          Last Post bltdavid  
          Started by port119, Today, 02:43 PM
          0 responses
          9 views
          0 likes
          Last Post port119
          by port119
           
          Working...
          X