Topic: Gap / Price jump
I have noticed that that some indicators have special conditions to deal with gaps/price jumps (for example: Bollinger Bands, Moving Average, ATR Stop, Better Bollinger Bands):
if (High[bar - 1] < previousValue && open > value ||
Low[bar - 1] > previousValue && open < value ||
Close[bar - 1] < value && open > value ||
Close[bar - 1] > value && open < value)
tempVal = open;
While other indicators (Ross Hook, Recent Swing High Low, Price Move) with SlotTypes.Open or SlotTypes.Close don't have such special conditions for dealing with gaps.
Are these conditions for dealing with gaps necessary in indicators' code? Why some indicators don't have such conditions?