but when I try to create a variable(value) using the SUM function
double value = SUM(cumulativeDelta.DeltaClose[0], 2)[0];
I get the error "cannot convert from 'double' to NinjaTrader.NinjaScript.ISeries<double>"
I can use simple logic under OnBarUpdate() like
(cumulativeDelta.DeltaClose[0] + (cumulativeDelta.DeltaClose[1] >0)
I can also set a variable (value)
double value = cumulativeDelta.DeltaClose[0]+cumulativeDelta.DeltaClose[1];
I was able to create a variable "cumualtiveDelta" accessing NT8 OrderFlowCumulativeDelta ** with help from the forum and help guide
namespace NinjaTrader.NinjaScript.Strategies
{
public class TestCumDelta : Strategy
{
private OrderFlowCumulativeDelta cumulativeDelta;
}
I
Any help with the proper syntax to assign the SUM function to a variable would be appreciated
Comment