Getting expected double on the bold "Deltas"
declare lower;
input expirationDateYYYYMMDD = 20230217;
def DeltaPUT=Delta(GetATMOption(GetUnderlyingSymbol(),
expirationDateYYYYMMDD, OptionClass.PUT));
def volumePuts = volume (GetATMOption(GetUnderlyingSymbol(),
expirationDateYYYYMMDD, OptionClass.PUT));
def netDeltaPUT = DeltaPUT * volumePuts * 100;
def DeltaCALL = Delta(GetATMOption(GetUnderlyingSymbol(),
expirationDateYYYYMMDD , OptionClass.CALL));
def volumeCalls = volume (GetATMOption(GetUnderlyingSymbol(),
expirationDateYYYYMMDD, OptionClass.CALL));
def netDeltaCALL = DeltaCALL * volumeCalls * 100;
plot difference = netDeltaCALL - netDeltaPUT;
difference.SetPaintingStrategy (PaintingStrategy.HISTOGRAM) ;
difference.SetLineWeight (5) ;
declare lower;
input expirationDateYYYYMMDD = 20230217;
def DeltaPUT=Delta(GetATMOption(GetUnderlyingSymbol(),
expirationDateYYYYMMDD, OptionClass.PUT));
def volumePuts = volume (GetATMOption(GetUnderlyingSymbol(),
expirationDateYYYYMMDD, OptionClass.PUT));
def netDeltaPUT = DeltaPUT * volumePuts * 100;
def DeltaCALL = Delta(GetATMOption(GetUnderlyingSymbol(),
expirationDateYYYYMMDD , OptionClass.CALL));
def volumeCalls = volume (GetATMOption(GetUnderlyingSymbol(),
expirationDateYYYYMMDD, OptionClass.CALL));
def netDeltaCALL = DeltaCALL * volumeCalls * 100;
plot difference = netDeltaCALL - netDeltaPUT;
difference.SetPaintingStrategy (PaintingStrategy.HISTOGRAM) ;
difference.SetLineWeight (5) ;