Made a few changes -
*5 layers instead of 1 layer
*Script now looks for the lowest layer set for buy alert to fire.
*Toggle switch for additional layers
*Instead of manually entering every layer, it now auto calculates even layers based on the average % you put.
For instance: avg base crack = 5% - layer 1 = 1%, layer 2 = 2%, layer 3 = 3% etc
Another Example: Avg base crack = 10% - Layer 1 = 2%, layer 2 = 4%, layer 3 = 6% etc
How you use this is entirely up to you. I just play around with these alert signals for testing profitability. If you use this for buying alerts, you're using them at your own risk.