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

Bad data?

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

    Bad data?

    I am looking at Symbol NYX

    and using Kinetick as my provider.


    Can anyone confirm for me that the following code:

    //Returns PP value
    double pivotPoint = Pivots(PivotRange.Daily, HLCCalculationMode.DailyBars, 0, 0, 0, 20).PP[0];

    //Returns R1 value
    double resistance1 = Pivots(PivotRange.Daily, HLCCalculationMode.DailyBars, 0, 0, 0, 20).R1[0];

    //Returns R2 value
    double resistance2 = Pivots(PivotRange.Daily, HLCCalculationMode.DailyBars, 0, 0, 0, 20).R2[0];

    //Returns S1 value
    double support1 = Pivots(PivotRange.Daily, HLCCalculationMode.DailyBars, 0, 0, 0, 20).S1[0];

    //Returns S2 value
    double support2 = Pivots(PivotRange.Daily, HLCCalculationMode.DailyBars, 0, 0, 0, 20).S2[0];


    when printed is returning a single value (25.67) for all 5 points...which is of course wrong and causing my strategy to buy and sell things simultaneously...

    Thanks for any help from a Kinetick user...

    Regards.

    #2
    Hello,

    I am seeing the same values on my end when using Daily mode.

    I would suggest switching to CalcFromIntradayData. There are known limitations when using the Pivots Daily mode when accessing it programmatically that can generate invalid values such as you have been reporting.

    Our development team has plans to improve this indicator method in an upcoming version, however I do not have an ETA on when this would be changed.
    MatthewNinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by SilverSurfer1, Today, 01:33 PM
    0 responses
    1 view
    0 likes
    Last Post SilverSurfer1  
    Started by ETFVoyageur, Today, 10:27 AM
    2 responses
    13 views
    0 likes
    Last Post ETFVoyageur  
    Started by CommonWhale, Today, 01:12 PM
    0 responses
    2 views
    0 likes
    Last Post CommonWhale  
    Started by CommonWhale, Today, 01:08 PM
    0 responses
    2 views
    0 likes
    Last Post CommonWhale  
    Started by maybeimnotrader, Today, 12:58 PM
    0 responses
    3 views
    0 likes
    Last Post maybeimnotrader  
    Working...
    X