bdeGetNumberOfConsecutiveZeroCrossing
Takes model and returns the number of times it consecutively crosses zero.
Syntax
numConsecCross = bdeGetNumberOfConsecutiveZeroCrossing(model)
Inputs
- model
- Model used to get the number of times zero is crossed consecutively.
Outputs
- numConsecCross
- The number of times the model crosses zero consecutively.
Examples
Get the number of zeros consecutively crossed:
model = bdeGetCurrentModel();
numConsecCross = bdeGetNumberOfConsecutiveZeroCrossing(model)
numConsecCross = 1
Get the number of zeros consecutively crossed (Doesn't exist):
model = bdeGetCurrentModel();
numConsecCross = bdeGetNumberOfConsecutiveZeroCrossing(model)
numConsecCross = -1