Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to query a value plot for an indicator, in this case Awesome Oscillator?

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

    How to query a value plot for an indicator, in this case Awesome Oscillator?

    Hello Ninja Traders,

    I have a strategy builder problem that has so far eluded me.

    I'm trying to use various indicators in my trading, and the value of these indicators in an automated trading strategy is the values stored in plots. I want to query these values, and make decisions based upon the values within them.

    In some indicators, you can query the plot values numerically, for example: +1 is bullish value, 0 is neutral value (chop), -1 is bearish. This is easy to do, and not an issue.

    For many other indicators, the values stored in value plots - and I cannot figure out how to extract the condition to use in a strategy.

    For this specific example, the Awesome Oscillator, the value plots are: "Oscillator" and "Signal". No matter how I query these value plots, I can't pull a plot value to then make actionable condition outcome from.

    Click image for larger version

Name:	image.png
Views:	256
Size:	2.0 KB
ID:	1245926​n
    Click image for larger version

Name:	image.png
Views:	239
Size:	5.8 KB
ID:	1245925
    Click image for larger version

Name:	image.png
Views:	189
Size:	121.7 KB
ID:	1245927​​

    What am I missing?
    Attached Files

    #2
    Hello christrading6267,

    Thank you for reaching out.

    I don't fully understand the comparison you are trying to make. You mentioned some indicators are either +1, 0, or -1. For other indicators, would it potentially make sense for you to see if they are greater than 0, equal to 0, or less than 0? The condition builder in the Strategy Builder allows you to compare values from multi-plot indicators by selecting which plot value you'd like to compare on the left and/or right-hand side of the window. There are various relational operators available for your comparison. The following section of the help guide shows some examples of different conditions you could set up:If you are unsure of what values are tied to each plot (for example, oscillator vs. signal) you could set up an action to print the value in the Strategy Builder. For more information about using prints to debug and better understand your script's behavior, including a video about setting up prints in the Strategy Builder, please see the following:Please let me know if I may be of further assistance.

    Comment


      #3
      Thanks for taking time to reply to this.

      What I figured out is that with some indicators, you can query the value plot by placing a statement on the left side of the strategy window with the value plot of the indicator you want to know about, and on the right side, using a numerical value to check if true. For those indicators, they usually return the value of -1, zero, or -+1 - generally corresponding with Berish, neutral, bullish. Ninza.co indicators are a great example of this. I am not promoting them. I’m just offering an example.

      For other indicators, you have to look at the same indicator on the left and the right side, and do a differential comparison. For example, with the awesome oscillator I was only able to query the plot value by looking at the left side of the indicator, one bar ago, and then compare it with the current state of the indicator on the current bar. If I used a less than or greater than equation it would tell me about the difference that was happening, and I could make a decision based upon that returned value.

      Hopefully that makes sense, apologies if I’m not doing a great job explaining it. My desire and posting this response would be that it helps someone else struggling to extract a value from an indicator, but not knowing how
      If you have a suggestion, other than this, or a better way to get values from value plots of indicators, I would love to know more.

      Thanks! - Chris

      Comment


        #4
        Hello Chris,

        Thank you for your reply.

        I am not sure what your inquiry is. You mentioned, "My desire and posting this response would be that it helps someone else struggling to extract a value from an indicator, but not knowing how"
        Does this mean that you no longer have a question about this and you are just trying to explain something on the forum to help others? If you still have a question about the Strategy Builder and using plot values in your conditions and actions, please provide an example with a screenshot showing how you have the conditions and actions set up along with the values you are seeing when running the strategy.
        • To send a screenshot with Windows 10 or newer I would recommend using the Windows Snipping Tool.
        • Alternatively to send a screenshot press Alt + PRINT SCREEN to take a screenshot of the selected window. Then go to Start--> Accessories--> Paint, and press CTRL + V to paste the image. Lastly, save it as a jpeg file and send the file as an attachment.
        ​I appreciate your patience.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Yesterday, 05:17 AM
        0 responses
        55 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        132 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        73 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        45 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        49 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X