CROSSOVER MA it works but I cant code it

 

My strategy

Opening LONG

  • Moving Averages Crossover  Weighted 5 Moving Averge crosses upward Expotential 28 Moving Averge.

Closing (Exit Signal) LONG

  • Moving Averages Crossover  Weighted 5 Moving Averge crosses downward Weighted 12 Moving Averge.


Opening LONG

  • Moving Averages Crossover  Weighted 5 Moving Averge crosses downward Expotential 18 Moving Averge.

Closing (Exit Signal) LONG

  • Moving Averages Crossover  Weighted 5 Moving Averge crosses upward Weighted 12 Moving Averge.


Additional

Only one trade at once

Variables

trading size in lots -0.01 lots

Stop Loss - 500
Take Profit - None
Break Even - None



It works marvles espetialy on H4 timeframe. Also good on H1, D1.



Could anybody please make an EA.

 
michszyb: Could anybody please make an EA.
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.
 

Well I tried to code it. Failed.

I attach file.

It openes huge numbers of unwanted positions before next crossover.

Please help.

 
michszyb:

Well I tried to code it. Failed.

I attach file.

It openes huge numbers of unwanted positions before next crossover.

Please help.

You didn't try to code it, you used an EA generator.
 
Busted
 

I put this together real quick so I can not guarantee anything other than it compiles.

Work out what you want to do on your own,this will be a decent place to start learning.

Good Luck.

Files:
michszyb.mq4  13 kb
 
GumRai: You didn't try to code it, you used an EA generator.
  • We hate EA builder
  • You couldn't be bothered to learn mql4, therefor there is no common language for us to communicate.
  • There are only two choices: 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, but we are not going to debug your hundreds lines of code.
  • EA builder makes bad code counting up while closing multiple orders.
  • EA builder makes bad code Bars is unreliable (max bars on chart) volume is unreliable (miss ticks) Always use time
  • EA builder makes bad code Not adjusting for 4/5 digit brokers
  • EA builder makes bad code not adjusting for ECN brokers.
  • EA builder makes bad code not checking return codes.
  • EATree uses objects on chart to save values - not persistent storage (files or GV+Flush.) No recovery (crash/reboot.)
Reason: