Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

CumulativeDeltaType

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

    CumulativeDeltaType

    I'm trying to include a CumulativeDeltaType parameter in an indicator

    so I can select BidAsk or UpDownTick

    and use this in OrderFlowCumulativeDelta method

    can anyone help?

    #2
    Hello fingers,

    Below the NinjaTrader.NinjaScript.Indicators namespace block:
    Code:
    namespace MyIndicatorNameEnums
    {
        public enum DeltaType
       {
          BidAsk,
          UpDownTick
       }
    }

    In the scope of the indicator class:
    Code:
    [NinjaScriptProperty]
    [Display(Name="CumulativeDeltaType")]
    public MyIndicatorNameEnums.DeltaType CumuDType
    { get; set; }
    In StateDataLoaded of OnStateChange():
    Code:
    cumulativeDelta = OrderFlowCumulativeDelta((CumulativeDeltaType)CumuDType, CumulativeDeltaPeriod.Session, 0);
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Pabulon, Today, 12:40 PM
    0 responses
    5 views
    0 likes
    Last Post Pabulon
    by Pabulon
     
    Started by kazbek966, Today, 12:25 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by jeb1000, Yesterday, 02:36 PM
    8 responses
    21 views
    0 likes
    Last Post jeb1000
    by jeb1000
     
    Started by vp2199.cqg, Today, 12:28 PM
    0 responses
    3 views
    0 likes
    Last Post vp2199.cqg  
    Started by kazbek966, Today, 12:14 PM
    2 responses
    8 views
    0 likes
    Last Post kazbek966  
    Working...
    X