I see this in the indicators.c file and I'm trying to understand the code. there is for example
Code
f(Color) sprintf(PlotName,"ZigZag%x",Color);

	if(IS(FIRSTRUN)) {
		_HighPrice = Price;
		_LowPrice = Price;
		_LastPrice = Price;
		_LastBar = _HighBar = _LowBar = g->nBar;
		_Dir = 0;
		if(Color) {
			plotGraph(PlotName,0,_LastPrice,LINE,Color);
			plotGraph(PlotName,0,_LastPrice,LINE+END,Color);
		}
		g->vLength = 1;
		return g->vSign = g->vPeak = g->vSlope = 0;
	}


What does this mean? I'm trying to convert the zorro indicator to python code.

Edit: google helped me out. I kind of understand it now except I'm not sure what g->nbar stands for.

Last edited by nerdkorea; 10/02/22 13:44.