EA work in progress

Hello fellow traders

I am working on some EAs I coded myself, I would like some feedback on this result and possibly suggestions on how to improve it

Basic strategy
Look for the previous x bars and take the highest and lowest prices, trade is open when the current price breaks out the previous high (long) or previous low (short), SL is the other extreme so low when long, high when short, TP is twice the distance open price - SL, however there is a trailing stop.
Order is closed if SL is hit OR if the order is in profit and there is a candle that goes against the open position.
Other settings:

  • avoid trading irrelevant session, for instance EURUSD is not traded during the Asian session
  • filter with a moving average of the ATR to see when volatility increases
  • filter long/short depending on a MACD 5,34

Following the results of some testing

  • EURUSD January 2014 - May 2015
  • I know the modelling quality is low but I am still in the first stages
  • seems working well on EURUSD 1H
  • high DD is due to 5% max risk per trade, that is the parameter that gave best profit, lower risk equals lower DD

Any suggestion on how to

  • find another condition to close profitable trades, often trades are close when they could still surf the trend
  • exclude ranging periods

Here we are




You need to address modelling quality bro. And you’re opening trades in opposite directions. That eats away valuable pips.
Keep working cause you might be onto something

Hi Bobbie

Thanks for the suggestions, I am trying to download historical data to improve the modelling quality, in regards to the opposite trades that’s easy, I will change to close open orders in the opposite when ordering

Considering I started studying Forex in January I am quite happy :slight_smile: , I tried several strategies, time frames, I learnt how to program in MQL4, I know there is still a lot of work ahead but actually I like this stuff

let me put a try to give a first stage answer :slight_smile:

  • use trailing stop, or lock profit sequence.
  • partial close then TP.
  • or combine both, close partially then use the lock for the rest.
  1. filter trade only at rush market hours,put the entry based on market zone when market session collide would be better.

Check here about data 301 Moved Permanently

And don’t know about closing open trades, from the images you’v given I wouldn’t open new ones.

But remember it’s you system. Make it to met your needs not any one elses.