Hi Mateus, Here is a new idea about EA. This would use moving average, time filter, and martingale, and stochastic, RVI. Let's see, how it should work. Setting: Start time= 00:00 / hour:min Bar count= / to determing the trend ea counts bars before start time Moving average= /type, value, etc Entry signal type= STOCH, RVI / can be changed between these indicators Stochastic= K,D,S, type RVI= period Buy level= level of STOCH or RVI Sell level= level of STOCH or RVI Cross only= true/fals, true means no levels will be used, only stoch or RVI crossing. Open order number= / how many order can be opened in the same way Overall pip= / sum of the all pips of the opened orders Stop loss= 0, classical in pip Martingale multiplier= / if bigger than 1, means all new orders after the first will be calculated with this number Auto GMT= true / auto adjust gmt time Money management= Order lot= First win= true / false= allow ea to open orders as long as conditions allow them Autoclose day end= true/ closes all opened orders at 00:00 Notrade Friday = true/false --- Working with example settings on EURUSD M5 03/03/2017, FXPRO, GMT+2 Start time= 08:00 / hour:min Bar count= 48 Moving average= Simple, 100 Stochastic= 5,3,3, Buy level= 20 Sell level= 80 Stoch cross only= fals Open order number= 2 Overall pip= 100 Stop loss= 0 Martingale multiplier= 2 Money management= false Order lot= 0,1 First win= true Autoclose day end= true When EA attached to the chart, EA checks time. If time is more than start time, does nothing. If it is on time, at Start time checks moving average value in the last closed bar. Also checks moving average value in the last closed bar - Bar count bar. In the example. MA value at 08:00 - 1,05130, MA value at 04:00 (48 bar is 4 hour on 5 min chart) 1,05061. If MA value in start time > than bar count time, means buy. In this example BUY. Ea places first buy 0,1 lot, when stochastic crossed under Buy level, at 12:10 @ EURUSD 1,05219. Second buy, 0,2 lot will be placed at 16:50 @ EURUSD 1,05585. So we have the order 0,1 lot @ 1,05219, and 0,2 lot @ 1,05585. We have 36,6 pips when second order opened. @ 1,05800 we have once 58 pip (first order), and 43 pip (second order= 2x21,5 pip because of martingale order). It is more than overall pip, so ea should close all of them. Ea stop, because orders closed in profit, and First win= true. Waits till next time, Start time. Chart attached as well.