• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

^ADV ^DECL Indicator

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

  • ezinvestor
    started a topic ^ADV ^DECL Indicator

    ^ADV ^DECL Indicator

    Would anyone have a simple indicator they would be willing to share which calculates and displays the NYSE advancing/declining issues internals? I find this helpful as one of the helpful tools on determining on taking a short or long trade based upon a +/- 800 to 1300 ratio. Thank you for any assistance.

  • NinjaTrader_PatrickH
    replied
    Hello kitwit,

    Thank you for your response.

    Here is the NT 7 example: https://ninjatrader.com/support/foru...59&postcount=6
    Here is the NT 8 conversion of the original: http://www.ninjatrader.com/support/f...=7&linkid=1042

    Please let me know if you have any questions.

    Leave a comment:


  • kitwit
    replied
    Originally posted by NinjaTrader_PatrickH View Post
    Hello kitwit,

    Thank you for your response.

    The edit I performed to the indicator in NinjaTrader 7 was not a full edit to the original indicator and was only to show how to add in a new DataSeries for use if you need to get the ADV and DECL together in a script.

    The recently converted NinjaTradr 8 version is a conversion of the original file and does not include the ADV and DECL logic.

    If you would like to edit this yourself we can provide documentation and examples. If you would like to seek development from another party please let me know and I can have our affiliate NinjaTrader Ecosystem follow up with details on NinjaScript Consultants.

    Please let me know if you have any questions.
    Thanks Patrick, can you provide the example, so i can make the edits?

    Leave a comment:


  • NinjaTrader_PatrickH
    replied
    Hello kitwit,

    Thank you for your response.

    The edit I performed to the indicator in NinjaTrader 7 was not a full edit to the original indicator and was only to show how to add in a new DataSeries for use if you need to get the ADV and DECL together in a script.

    The recently converted NinjaTradr 8 version is a conversion of the original file and does not include the ADV and DECL logic.

    If you would like to edit this yourself we can provide documentation and examples. If you would like to seek development from another party please let me know and I can have our affiliate NinjaTrader Ecosystem follow up with details on NinjaScript Consultants.

    Please let me know if you have any questions.

    Leave a comment:


  • kitwit
    replied
    ^adv - ^decl

    Hi,

    I just saw that we have the a1marketinternals for NT8 recently, can anyone update this indicator so it accepted CGQ data ; ^ADV - ^DECL (essentially the ADD).

    This indicator only support ^Add.

    Thank you

    Leave a comment:


  • bikinitrader
    replied
    advance decline line

    did anyone get the advance decline line working or can recommend where i can get it from im really struggling reading seperately any help would be appreciated thnks

    Leave a comment:


  • NinjaTrader_MichaelM
    replied
    Hello Andrew17,

    You could write a code to do this yourself, you would just need to determine by which process you wanted to combine them.

    For example, if you simply want a line of the close and if each data series is set to the same period and period type, then you can simply subtract the lower bar from the higher bar and divide the result by two then subtract that value from the higher bar to get the average and set your data series to the final value.

    For example in OnBarUpdate():
    Code:
    Combined.Set(Math.Max(Closes[0][0], Closes[1][0]) - ((Math.Max(Closes[0][0], Closes[1][0]) - Math.Min(Closes[0][0], Closes[1][0])) / 2));
    Where Combined is a Plot setup in your Initialize() method.

    If you could elaborate further on exactly how you want to combine the data series and how you want to display the result, I can assist further.

    Thank you in advance.

    Leave a comment:


  • Andrew 17
    replied
    ADV DEC Indicator for CQG

    For some reason CQG does not provide data for a combined adv/decl total. Is there an indicator that can be used to combine ADV and DEC tick symbols thus creating one line to represent both. If you take the ADV and DEC symbols with CQG you can create a chart with 2 panels, 1 panel showing ADV and the other showing DEC data. Within this chart you would create a 3rd panel which the indicator would combine both sets of data. I have been searching for hours to find a solution but nothing as yet.

    Leave a comment:


  • NinjaTrader_PatrickH
    replied
    Hello EV,

    Thank you for your post.

    I will be honest; I do not know why that is in the code. The edit I performed allowed for those without the ADD data from their provider to use this indicator still by combining the ADV and DECL. I did not create this indicator and it would be best to contact the developer for further information.

    Below are the edits I made:
    Code:
    ADD = new DataSeries(this, MaximumBarsLookBack.Infinite);
    ...
    ADD.Set(Closes[2][0] - Closes[3][0]);
    adClose = ADD[0];

    Leave a comment:


  • ETFVoyageur
    replied
    Patrick,

    I am looking at the example you posted as I try to puzzle out some aspects of writing a multi-instrument indicator. I notice the code starts OnBarUpdate() with
    Code:
                if ( BarsArray[0] == null ) return;
    I suppose the code is trying to wait for the first price bar before doing anything.

    Print statements from my indicator, using 1-day bars, indicate that all of the BarsArray entries are non-null right from the start. That would mean the statement would be useless, and would never return. Worse yet, it could allow entry while the DataSeries was still invalid (if ADV or DECL started before the price series). The distinguishing feature that tells when there is valid data appears to be that the series' value for CurrentBar is no longer -1. Wouldn't that line of code fail to do its job, and the following work better?
    Code:
               if ( BarsArray[0].CurrentBar == -1 ) return;
    Not trying to snipe -- just trying to understand precisely how this all works. Could you please explain what I am missing here?

    Thanks,
    EV

    Leave a comment:


  • NinjaTrader_PatrickH
    replied
    Hello ezinvestor,

    Thank you for your post.

    My Kinetick data shows the ^ADD closing at 1624.00 and my a1MarketInternals indicator shows this value as well for the A/D plot. What are you comparing the a1MarketInternals plot for A/D to?

    Leave a comment:


  • ezinvestor
    replied
    Patrick, when I review the ^ADV, ^DECL numbers from yesterday at the closing 5 min the advance was 2427 and the decline was 1086. This would make the ^ADD +1341. However, the a1MarketInternalsADD.zip indicator that you modified shows the ADD line at 1710. Can you check this or explain why the difference?

    Leave a comment:


  • ezinvestor
    replied
    Patrick,

    That is fantastic. Thank you very much!

    Leave a comment:


  • NinjaTrader_PatrickH
    replied
    Hello ezinvestor,

    Thank you for your update.

    I have edited the indicator to include a new data series that is the ADV - DECL (essentially the ADD). You can find this updated indicator attached to this post.
    Attached Files

    Leave a comment:


  • ezinvestor
    replied
    Sorry but this indicator, http://www.ninjatrader.com/support/f...d=4&linkid=544, requires the ^ADD internal symbol in order to function. The problem is that Mirus/Continuum you must pay an additional $5.00 per month for NYSE internals. However, for some reason even though ^ADD is a Continuum listed symbol it will not feed data for ^ADD. The ^TICK, ^TRIN, ^ADV, ^DECL will feed data. So what I need is an indicator that will take the ^ADV and ^DECL and create a calculated indicator that can be displayed showing the same thing that the ^ADD would show if it were offered. Can anyone assist with this one?
    Last edited by ezinvestor; 03-12-2014, 09:51 AM.

    Leave a comment:

Latest Posts

Collapse

Topics Statistics Last Post
Started by ninjo, Today, 11:54 AM
0 responses
1 view
0 likes
Last Post ninjo
by ninjo
 
Started by deblanka, Today, 08:56 AM
0 responses
6 views
0 likes
Last Post deblanka  
Started by Boonfly8, Yesterday, 12:30 PM
7 responses
18 views
0 likes
Last Post sledge
by sledge
 
Started by Sohal, Today, 05:02 AM
2 responses
13 views
0 likes
Last Post techmint  
Started by danitralla, Today, 03:33 AM
0 responses
5 views
0 likes
Last Post danitralla  
Working...
X