Download MetaTrader 5

CROSSOVER MA it works but I cant code it

To add comments, please log in or register
michszyb
14
michszyb  

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.

whroeder1
15577
whroeder1  
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.
michszyb
14
michszyb  

Well I tried to code it. Failed.

I attach file.

It openes huge numbers of unwanted positions before next crossover.

Please help.

Keith Watford
Moderator
10568
Keith Watford  
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.
michszyb
14
michszyb  
Busted
Donald Gibson
494
Donald Gibson  

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
whroeder1
15577
whroeder1  
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.)
To add comments, please log in or register