Hey, Wow laugh
that was the trick. Worked. Thanks a Lot.

Code
	// Haiken Ashi Bars
int bar(vars Open,vars High,vars Low,vars Close)
{
  Close[0] = (Open[0]+High[0]+Low[0]+Close[0])/4;
  Open[0] = (Open[1]+Close[1])/2;
  High[0] = max(High[0],max(Open[0],Close[0]));
  Low[0] = min(Low[0],min(Open[0],Close[0]));
  return 8;
}

function run()
{
	set(LOGFILE|PLOTNOW);
	
	BarPeriod = 1;
	
	vars Open = series(priceOpen());
	vars High = series(priceHigh());
	vars Low = series(priceLow());
	vars Close = series(priceClose());
}


So means, i have to reread (again) the parts with functions in tutorial tongue
Thats a hard nut to me, to figure out where i have to put whatever to run things as i want them to.
But luckily here is this forum with encouraged and helpful zorro coders like you.
Thank you again, lesson learned. I really appreciate it.

Kind regards

M_D

Last edited by M_D; 04/18/20 23:28.