Need help coding a simple strategy

 

Hi,

I'm new to MQL I am working on an EA with a simple strategy trading on a certain price levels. My defined price levels are 00, 20, 50 and 80. So let's say in a EUR/USD pair if the last two to three bars closes at my trigger price level i.e. 1.30500 then I will execute a trade with a take profit at the next price level which is 1.30520.

Please note that I already have the code to open/close & modify trades, it's just the algorithm that I am having a hard time. 

Thanks in advance.  

 
Ask here ... https://www.mql5.com/en/job
 
deysmacro:
Ask here ... https://www.mql5.com/en/job
Thanks for the suggestion. Just want to ask for at least a code snippet that will give me at least something to start off.
 

Well. Show us your attempt first. Spoon feeding is not gonna happen here.

If you do some homework, you would actually find something useful for you. > https://www.mql5.com/en/code/mt4

 
You have only three choices: Search for it, learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
Reason: