Sir, both Vadilal and Excel crop are not flags from strict sense of book patterns.But you can consider both these scrips as consolidation patterns after a big green Bar and any breakout from these zones can be traded.Vadilal is a big triangle and a lovely pattern.
Flags on the other hand are after a straight upmove the scrip consolidates with low volume and then breaks out .Irregularity of volume voids it.
But nevertheless, patterns mentioned by you are good for breakout trades despite having one or two irregular volume bars.Regarding afl's I do not remember since I have stopped using Amibroker may be for more than 2 years.If you need the logic just see if you can say like
Today's hi < yesterday's hi, Yesterday's hi < day before yesterday .... do so for 3 to 5 days.If u get these type of patterns for less than 5-7 days, their breakouts will give good results.
Regards