EA using price action

 

Hi I want to learn about creating an EA that can open a position according to price action. Does anyone have an example or an article so I can learn it.

thank you