Mind the Gaps
This Expert Advisor is using three Moving Averages to find the direction of the trend. There is three different Moving Averages that has to be in the right order and the EA is looking for this in different timeframes to make sure it's in the order to trade. Then the EA will look for both the Stochastic and RSI in different timeframes before everything is looking good. Now it will take a BUY or SELL trade, depending on the indicators. It will set the Stop Loss and Take Profit depending on the highest and lowest price when looking back at previous candles. Then it will calculate the Average Range and then try to reach a decent profit within those numbers. If it can't make it to the profit level it will wait for a new indication and then add more lots to the previous trade (if you set this parameter to multiply) and then try to reach the same distance to make a total profit. When a trade reach the profit goal it will calculate a new range and set a new Take Profit and Stop Loss for the next trade.
The EA can be used on different pairs and is hardcoded to use the M15 timeframe. If you like to trade the JPY pairs you need to change the 10000 number to 100 so the calculations t find the right level between the high and low are correct. But the default settings will work for pairs not involved with JPY. The best thing about this Expert Advisor is that this one is checking the movement of the traded pair and change it's goals along the way. So the Take Profit and Stop Loss will change depending on the market before it places the first trade.
EAName - This is the name shown in the comments column
FirstLotSize - First lot size to trade after a trade in profit
LotsMultiplier - What to add to the next trade if one reach stop loss
CandlesBack - How many candles back to check for the highest and lowest price for the calculation of the Average Range
TheDivider - This one is used to calculate the high - low and then divide the number to set the stop loss and take profit levels. Default is set to 2.0 and that will make the levels reach 50% of the total distance. If you set it to 1.5 it will try to reach 66% of the total gap (which is a little harder)
DistanceCalculation - This number is used for calculations of the GAP. Default is 10000 (for regular pairs). Change this to 100 if used with JPY currency pairs to get the correct GAP.
MA1 - Moving Average 1 period
MA2 - Moving Average 2 period
MA3 - Moving Average 3 period
RSI_hi - The high level of the RSI indicator
RSI_lo - The low level of the RSI indicator
StoHi - The high level of the Stochastic indicator
StoLo - The low level of the Stochastic indicator
MagicNumber - This must be a unique number if you are using the EA more than once on the same currency pair
There is also a limit included so there won't be any trades if the distance is too small.
Also added some info on the screen in the upper left corner for the trades.