You can't really code Price Action into AFL because there are so many aspects to it. You would end up trying to code a thousand rules into AFL, and even then, Price Action requires a certain amount of experience or "feel". After a thousand hours of intraday screen time you will develop a feel for price action.
You could start by reading Understanding Price Action by Bob Volman, which is sort of a classic, but you really need to develop experience. Reading other TA books and learning to recognise price patterns is a start. But you never stop learning.
The problem with a lot of people (and especially beginners) is that they don't want to put in the hours/years to learn their craft.
Everyone ends up developing their own style that they become comfortable with anyway. I use PA but you might detest it.
"You can't put an old head on young shoulders".
You need to start with SOMETHING. Anything. And stick with that until it no longer serves you. You started asking about Pivots and then immediately switched to PA when I mentioned it. If I mention something else, you'll go off chasing that!
You really will learn a LOT if you just start with the "Secrets Of A Pivot Boss" book. Because Frank has so much experience besides pivots and he doesn't try to hide it from you.