Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Access Predicted Indicator

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

    Access Predicted Indicator

    Hello,

    I apologize in advance if this question seems basic or stupid. I am working on developing a trading strategy that enters a trade based off of the Wiseman Alligator indicator. In the trade, I have the indicator defined as follows
    Code:
    double teeth = WisemanAlligator(13, 8, 5, 8, 5, 3).Teeth[0];
    double jaw = WisemanAlligator(13, 8, 5, 8, 5, 3).Jaw[0];
    double lips = WisemanAlligator(13, 8, 5, 8, 5, 3).Lips[0];​
    which works exactly as planned as seen below. For this image if I were to print the value of the lips, it would return 4143.36.

    Click image for larger version

Name:	image.png
Views:	254
Size:	14.9 KB
ID:	1247664

    However, my question is how can I get the values of where the current green line is at? Looking at the chart, it lines up at about 4145ish, yet the value returned is 4143.36, 2 points below. Is there a way to get the value of the green line when printed to show the 4145 where it is at now?

    Please let me know if this makes any sense and if this is even possible. Thanks!

    #2
    The alligator indicator is pushed forward by a period. Hence the blue, red, and green lines being seen ahead of the last/current candlestick. If you change the last 3 parameters to 1, 1, 1 you'll see what I mean.

    Comment


      #3
      Instead of .Teeth[0] try .Teeth[1] or .Jaw[1] or .Lips[1] to get what you are wanting, or [2], or [3] - however much its displacement to the right is in bars.
      Bruce DeVault
      QuantKey Trading Vendor Services
      NinjaTrader Ecosystem Vendor - QuantKey

      Comment


        #4
        Originally posted by euroq View Post
        The alligator indicator is pushed forward by a period. Hence the blue, red, and green lines being seen ahead of the last/current candlestick. If you change the last 3 parameters to 1, 1, 1 you'll see what I mean.
        This solved what I was looking for! Thanks!

        Comment


          #5
          Hello tackaway,

          Thanks for your post.

          euroq is correct in stating that "The alligator indicator is pushed forward by a period. Hence the blue, red, and green lines being seen ahead of the last/current candlestick."​

          QuantKey_Bruce is correct in stating that you could supply the .Teeth[0]/.Jaw[0]/.Lips[0] value a prior barsAgo argument, such as .Teeth[1]/.Jaws[1]/.Lips[1] depenting on the displacement of the bars and the value you want to access.

          See this help guide page for more information about accessing the WisemanAlligator indicator values in NinjaScript: https://ninjatrader.com/support/help..._alligator.htm

          Let us know if we may assist further.
          Last edited by NinjaTrader_BrandonH; 04-23-2023, 04:13 PM.
          <span class="name">Brandon H.</span><span class="title">NinjaTrader Customer Service</span><iframe name="sig" id="sigFrame" src="/support/forum/core/clientscript/Signature/signature.php" frameborder="0" border="0" cellspacing="0" style="border-style: none;width: 100%; height: 120px;"></iframe>

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by BeachTrader11807, Today, 01:14 PM
          3 responses
          20 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by futureszone, Today, 06:09 PM
          0 responses
          3 views
          0 likes
          Last Post futureszone  
          Started by futureszone, 02-07-2025, 02:48 AM
          2 responses
          21 views
          0 likes
          Last Post futureszone  
          Started by cutzpr, Today, 05:24 PM
          0 responses
          5 views
          0 likes
          Last Post cutzpr
          by cutzpr
           
          Started by Ezequiel40, Today, 05:23 PM
          0 responses
          7 views
          0 likes
          Last Post Ezequiel40  
          Working...
          X