This code generates depending on avg moving price window algo