Actually I wanted the typical price for the mid line (H+L+C)/3. Can I do something like:
sma_low = series(SMA((seriesL()+seriesC()+seriesH())/3,SMA_PERIOD));

Also- would seriesC[0] give the current price for the current (incomplete bar).

One more query- I migrated my algo from MQL5 to Zorro which is kinda C++ to C migration.
The business logic lines are hardly changed. I'm raking my brains but I can't figure out why the algo is severely bad(negative profit) results in Zorro- any pointers how do I debug?

Does Zorro change TP/SL despite me setting up exclusively when I do enterLong()/enterShort?