function run() {
set(PLOTNOW);
MaxBars = 250;
asset("");
PlotHeight1 = 0;
PlotHeight2 = 256;
vars Sine = series(genSine(4, 4) * 2);
plot("Sine", Sine, LINE+NEW, BLUE);
plot("Sinepeaks", peak(Sine), LINE+NEW, RED);
vars Square = series(ceil(genSine(4, 4) * 2));
plot("Square", Square, LINE+NEW, BLUE);
plot("Squarepeaks", peak(Square), LINE+NEW, RED); // always 0
}