Hi I've just come back to using Amibroker after my laptop was stolen (ouch!) and I've lost some of my codes (although most of it was backed up). I'm really rusty on AFL. Would someone mind coding this simple piece for me? Based on Williams and Bernstein-type breakouts.
1. Calculate yesterday's range. 2. Buy/short (as applicable) if price crosses by a percentage of that range when added to/subtracted from (as applicable) yesterday's close. 3. Optimise percentages in 2. 4. Stop loss = beneath low/above high (as applicable) of yesterday. 5. Exit = 2 times range. Thanks to all.
