Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Help with adding plots?

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

    Help with adding plots?

    HI I am trying to add Plots to this volume delta indicator but unsucessfull
    I have added these lines but it doesnt plot

    Code:
    if (BarsInProgress == 0)
                {
    
                    Values[0][0] =  OrderFlowCumulativeDelta(BarsArray[0], CumulativeDeltaType.BidAsk, CumulativeDeltaPeriod.Session, 0).DeltaClose[0];
                    Values[1][0] =  OrderFlowCumulativeDelta(BarsArray[0], CumulativeDeltaType.BidAsk, CumulativeDeltaPeriod.Session, 0).DeltaOpen[0];
                    Values[2][0] =  OrderFlowCumulativeDelta(BarsArray[0], CumulativeDeltaType.BidAsk, CumulativeDeltaPeriod.Session, 0).DeltaHigh[0];
                    Values[3][0] =  OrderFlowCumulativeDelta(BarsArray[0], CumulativeDeltaType.BidAsk, CumulativeDeltaPeriod.Session, 0).DeltaLow[0];
    
                    Print("Delta Close: " + OrderFlowCumulativeDelta(BarsArray[0], CumulativeDeltaType.BidAsk, CumulativeDeltaPeriod.Session, 0).DeltaClose[0] + " CurrentBar: " + CurrentBar);
                    Print("Delta Open: " + OrderFlowCumulativeDelta(BarsArray[0], CumulativeDeltaType.BidAsk, CumulativeDeltaPeriod.Session, 0).DeltaOpen[0] + " CurrentBar: " + CurrentBar);​
    Attached Files

    #2
    Hello, thanks for writing in. Please first check the Log tab of the Control Center for any errors. Also confirm that your calls to OrderFlowCumulativeDelta are returning a value. They should be printing values from the Print methods that you have here.

    Comment


      #3
      ok. I looked at databox window and i didnt see it there. Does it mean its not plotting if its not there? or no

      Comment


        #4
        Hi Boris, this means the plots are either have their color set to Transparent, The strategy is not calling AddPlot in state.SetDefaults, or there are not values being applied to the plots.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CaptainJack, 05-29-2026, 05:09 AM
        0 responses
        221 views
        0 likes
        Last Post CaptainJack  
        Started by CaptainJack, 05-29-2026, 12:02 AM
        0 responses
        136 views
        0 likes
        Last Post CaptainJack  
        Started by charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        150 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        236 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        193 views
        0 likes
        Last Post CarlTrading  
        Working...
        X