Type : Indicator, Name: Gap-Trading System
inputs:
gap_up(1),
gap_down(1);
variables: gap(0);
gap = 100*(open — close[1])/close[1];
if gap >= gap_up
then begin
if close <= open
then Plot1(high, «UpGap», blue)
else Plot1(high, «UpGap», red);
end;
if gap <= -gap_down then begin
if close >= open
then Plot2(low, «DnGap», blue)
else Plot2(low, «DnGap», red);
end;