As far as I see int type is not directly used in the plotDay function, but in the last line the call of plotSeason, there it is used -->> int type) // cumulative or difference

type

0 = evaluate value difference to the season begin.
1 = evaluate value difference to the previous bar.


applies to all the following:

plotDay (var value, int type)
plotWeek (var value, int type)
plotMonth (var value, int type)
plotYear (var value, int type)
plotWFOCycle (var value, int type)