Need help to write my EA

Need help to create my EA

Hi Hi everyone, I need someone to help me write this EA please, with below conditions:

1- EA will make two pending orders (buy stop & sell stop) at same time.

2- Pips from the market price to pending orders buy stop / sell stop is variable I control it sometime I want to put 14 pips or 15 or 10 depending on the market situation (distance from market price to pending orders should be variable)

3- Stop loss also variable.

4- Take profit it also variable

5- Trailing stop. (in pips) Which means that once the profit hits the target, trailing stop should work for making extra profit and trailing stop should also be variable and to have the option to be enabled or disabled

6- Closing the other pending order (the opposite one) automatically after profit made, & the opposite is true which means in case one of the pending orders made loss the other order should remain

7- Trading hours: I should be able to control this EA. I want this EA to work at certain hour of the day in my local time (computer time)

8- Traded pairs, means that this EA can be attached to one pair only but it can make pending orders to pairs that I put in EA (example: if I put only EURUSD, EA should make only two pending orders, but if I put EURUSD,EURJPY,GBPUSD EA should make 6 pending orders two pending orders for each pair.

i really appreciate if someone could help me out. This is my first post and hope i get the responds

thanks you all.

I can help you wit 1-7, 8 probably as well, but it depends on the complexity of you trade rules.

What do you have so far? Oops, forgot to ask. On which platform will you be using this? I can help with MT4.

fxDreema - bluesky970

This will be probably little hard to understand, so just click on .mq4 or .ex4 button (upper left).

Point 8 is little tricky. I decided to make the EA in a way that 2nd and 3rd currency pairs can be enabled/disabled via Inputs.
Also, point 8 leads to some questions about the logic, but nevermind… you can try this if you want, at least it’s something.

Note that MT4 cannot backtest multiple currency pairs, so if you enable 2nd or 3rd pair this will lead to error message.

Dear ideFX & JDeel i am so happy to find such wonderful people like you to help me.

with regards to ideFX question, i am using mt4 platform. And for JDeel I will go through the link and i am going to give it try today and hopefully it works.

Many thanks to both of you. :57:

Hi IdeFX,

I have a few indicators that are a bit buggy. However, i trade with them pretty successfully with knowing my own usage of them. Because i trade manually, it would have to have them setup with email notifications, etc. And or maybe one day compiled into an Expert Adviser. Could you assist? Thanks.