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

OFDelta-VolumetricDelta

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

    OFDelta-VolumetricDelta

    Hello,

    I´m confused now about using the Delta with volumetric (to avoid adding Delta with 1 Tick as there is already the volumetric used)

    When I have in OFDelta "if(OrderFlowCumulativeDelta1.DeltaClose[0] > OrderFlowCumulativeDelta1.DeltaHigh[1])...

    how can I achieve this with volumetric please?

    With if(barsType.Volumes[CurrentBars[1]].CumulativeDelta > barsType.Volumes[CurrentBars[1]-1].CumulativeDelta)?

    Does "barsType.Volumes[CurrentBars[1]].CumulativeDelta" mean the Close? So with volumetric on can access the Close but not the High, Low and Open of Delta?

    Thank you!
    Tony

    #2
    Hello tonynt,

    Thanks for your post.

    Please see the attached example scripts demonstrating how to get the Open, High, Low, and Close values when using Volumetric bars and how to get those values using the Order Flow Cumulative Delta. Note that since we are using Calculate.OnEachTick, we need a full realtime bar to get a valid value. Also, note that there may be minor differences between the two.

    To get the OHLC values using Volumetric bars, you could do the following as shown in the example script, VolumetricDeltaOHLC.

    open = barsType.Volumes[CurrentBar].BarDelta;
    high = Math.Max(high, barsType.Volumes[CurrentBar].BarDelta);
    low = Math.Min(low, barsType.Volumes[CurrentBar].BarDelta);
    close = barsType.Volumes[CurrentBar-1].BarDelta);

    See this help guide for more information: https://ninjatrader.com/support/help...tric_bars2.htm

    Let us know if we may assist further.
    Attached Files
    Brandon H.NinjaTrader Customer Service

    Comment


      #3
      Hello,

      thank you for your reply. This helped me understanding and resolve few ideas but I still have one problem: how can I catch when the close of cumulativedelta is higher/lower than the high/low of cumulativedelta the bar before? I can use if its >/< than the cumulativedelta of the close of the bar before but not >high or <low of cumulativedelta.

      Thank you!
      Tony

      Comment


        #4
        Hello tonynt,

        Thanks for your note.

        If you are using the Order Flow Cumulative Delta indicator, you could use a BarsAgo value of 1 when referencing the previous bar Cumulative Delta High/Low value. For example, see below.

        Print("Delta High: " + cumulativeDelta.DeltaHigh[1]);
        Print("Delta Low: " + cumulativeDelta.DeltaLow[1]);

        Also, see this help guide page for more information about using Order Flow Cumulative Delta - https://ninjatrader.com/support/help...ive_delta2.htm

        If you are referring to the Volumetric Delta, you could save the current Delta High/Low value to a Series<double> variable called something like highSeries. Then you could compare the Volumetric Delta High/Low value of the previous bar to the Cumulative Delta Close value of the current bar.

        See the attached modified version of the previously attached VolumetricDeltaOHLC which demonstrates how to get the CumulativeDelta High/Low value of the previous bar.

        And, see this help guide about working with Series<T> objects - https://ninjatrader.com/support/help...t8/seriest.htm

        Let us know if we may assist further.
        Attached Files
        Brandon H.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by knowmad, Today, 03:52 AM
        0 responses
        16 views
        0 likes
        Last Post knowmad
        by knowmad
         
        Started by tradingnasdaqprueba, Today, 03:42 AM
        0 responses
        11 views
        0 likes
        Last Post tradingnasdaqprueba  
        Started by Haiasi, 04-25-2024, 06:53 PM
        4 responses
        63 views
        0 likes
        Last Post effraenk  
        Started by ccbiasi, 11-23-2017, 06:06 AM
        5 responses
        2,210 views
        0 likes
        Last Post leodavis  
        Started by kujista, Yesterday, 12:39 AM
        2 responses
        14 views
        0 likes
        Last Post kujista
        by kujista
         
        Working...
        X