CROSSOVER MA it works but I cant code it

Back to topics list To post a new topic, please log in or register
avatar
3
michszyb 2015.07.30 21:55
 

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.

avatar
12983
WHRoeder 2015.07.30 22:33 #
 
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.

avatar
3
michszyb 2015.07.30 22:49 #
 

Well I tried to code it. Failed.

I attach file.

It openes huge numbers of unwanted positions before next crossover.

Please help.

Attached files:
  yuma_5_18_28_exit12_ea.mq4  (5.64 KB)
avatar
Moderator
3404
GumRai 2015.07.30 23:27 #
 
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.
avatar
3
michszyb 2015.07.31 00:07 #
 
Busted
avatar
106
4x_Gypsy 2015.07.31 01:23 #
 

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.

Attached files:
  michszyb.mq4  (12.19 KB)
avatar
12983
WHRoeder 2015.07.31 03:53 #
 
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.)
Back to topics list  

To add comments, please log in or register