Need example of miracle MM()

 

I want to have a anti- trend EA, and have double size when recently high.

how to code with the price example?

THX