Originally Posted by jcl

- No first and last bin in the plot.csv: Not confirmed. But it could depend on the script, can you post it?
Indeed, it only shows in some very special cases.
Code
#include <profile.c>

function run()
{
	set(LOGFILE);
	set(PEEK);
   	
	BarPeriod = 60; 
		
	StartDate = 2019; 
	EndDate   = 2020;
		
	if (true) {
		var ibs=IBS();
		
		var st = 0.05;
		var Ret = (priceClose(-1)-priceClose(0));
		var Bin = floor(ibs /st) ;  

		plotBar(Asset, Bin , st*(Bin),Ret,AVG+LINE+NEW,GREEN);//
	}
	 else
		 plotDay(priceClose(0),0);
	
}

plotSeason and plotDay/Week/etc functions also have several bugs: one is that 'period one' at the start of a "season" is not counted/always zero.

Attached Files plotDay_tocsv_bug.JPGplotBar_tocsv_bug.JPG