Sharing EA idea. Looking for someone who can code this for free

New to forex here. I have something in mind. I come up with a system that will follow a trend and will do martingale if it goes against the trend. Here is the flowchart

I’d be happy if anyone would discuss it and tell me some flaws of the system.

I don’t see any flaws in your system. If you want to ensure if it will work well for you or not, I suggest checking it on your demo account. This will give you an idea of whether you should apply that on your live account or not.