I am developing a Delta Swing indicator using Draw.Text to print the cumulativedelta value at swing highs and lows on the chart. Simply, I want to be able to compare the price and cumulative delta values at swing highs and lows for possible divergences. I am not sure which one of the following codes (Session or Bar) do I need to use when calling for cumulative delta.
cumulativeDelta = OrderFlowCumulativeDelta(CumulativeDeltaType.BidAsk, CumulativeDeltaPeriod.Bar, 0);
cumulativeDelta = OrderFlowCumulativeDelta(CumulativeDeltaType.BidAsk, CumulativeDeltaPeriod.Session, 0);
Comment