Download MetaTrader 5

My new Universal EA, come check it out. - page 3

To add comments, please log in or register
Patrick Cofflin
6031
Patrick Cofflin  
evillive:

So EA go only longs even if it is against trend (do not count hedging, it's only optional)... Do you have settings for at least one good test?




I'm sorry I do not. I only tested it for functionality. I made the EA with the idea that the user could make their own system with it. I have been playing around with the numbers but nothing extraordinary yet. I will let you know when I find a combo that works. I just started coding and using EAs about 2 months ago and this is the culmination of everything I have learned so far.



An important key to remember is that many forex traders also trade on the stock market where you can mostly only buy. Buying is naturally what traders do more often so the buy trends are stronger and last longer than sell trends. It's just an observation about the mass psychology of trading futures in general. I could easily add a sell feature to the EA if it is requested or if it may help create a better system.

Patrick Cofflin
6031
Patrick Cofflin  
I updated the script and added a few new indicators that should give more flexibility.
Files:
Patrick Cofflin
6031
Patrick Cofflin  
Updated the update.
Files:
Tjipke de Vries
6373
Tjipke de Vries  
pacofflin:
Updated the update.


deleted the update is more needed

why do you define so many values in your code you don't use...

Patrick Cofflin
6031
Patrick Cofflin  
deVries:


deleted the update is more needed

why do you define so many values in your code you don't use...


Can you be more specific?
Tjipke de Vries
6373
Tjipke de Vries  
pacofflin:

Can you be more specific?

nt start()
  {
int i=0; 
//double Marketprice = ((Ask+Bid)/2);    // not used

//double CurrentStochasticKperiod = iStochastic(0,0,Kperiod,Dperiod,Slowing,3,1,0,0);// not used
double FirstStochasticKperiod =   iStochastic(0,0,Kperiod,Dperiod,Slowing,3,1,0,1);
//double SecondStochasticKperiod =  iStochastic(0,0,Kperiod,Dperiod,Slowing,3,1,0,2);// not used

//double CurrentStochasticDperiod = iStochastic(0,0,Kperiod,Dperiod,Slowing,3,1,1,0);// not used
double FirstStochasticDperiod =   iStochastic(0,0,Kperiod,Dperiod,Slowing,3,1,1,1);
//double SecondStochasticDperiod =  iStochastic(0,0,Kperiod,Dperiod,Slowing,3,1,1,2);// not used
many more // not used
Patrick Cofflin
6031
Patrick Cofflin  
deVries:

many more // not used

Yeah I was planning on using them at some point just not yet. The Universal EA is a work in progress so I will delete all the unnecessary indicators and code later.
123
To add comments, please log in or register