Hey guys having trouble coding this.
Argument 4 & 6 are saying that it cannot convert System.DateTime to Int. But there are two ways this can be read with 10 arguments first is using 'int startBarsAgo & endBarsAgo' and the second is the way I want it read using 'DateTime startTime & endTime'. It seems to only default to the first.
ARG 1 Draw.Rectangle(TSR,
ARG 2 string.Concat(item.ToString(), " Resist"),
ARG 3 false,
ARG 4 Times[1][CurrentBar - CurrentHighPoint + resistDefinition],
ARG 5 HighDrawPoint,
ARG 6 Times[1][CurrentBar - CurrentHighPoint - resistDefinition],
ARG 7 Highclose,
ARG 8 resistColor,
ARG 9 resistColor,
ARG 10 resistOpacity);
Added this to easily copy paste from your self -
CurrentResist = Draw.Rectangle(TSR, string.Concat(item.ToString(), " Resist"), false, Times[1][CurrentBar - CurrentHighPoint + resistDefinition], HighDrawPoint, Times[1][CurrentBar - CurrentHighPoint - resistDefinition], Highclose, resistColor, resistColor, resistOpacity);
Thanks,
Rokz
Comment