added the period:
Add(PeriodType.Minute, 240);
replaced the Close[0] for: Closes[1][0]
the checked for enough bars:
if ( CurrentBars[1] <= longLeg || CurrentBars[1] <= shortLeg) return;
but its not working, when i go down from the 4H to a smaller timeframe the indicator addapts to that timeframe, so i don't know what im doing wrong
here is the file: KBT_RubberBands_V1.cs
Comment