EA TrendMaster MT4 or MT5 *********************************************************************************** PHASE 1 ************************************************************************************ ***Theory EA will work based on MA cross over a MA High Low channel to open trades (approach to DOW THEORY). It will use 3 MAs to filter the entry. If the Fast MA3 cross the (MA1 high and MA2 low channel) this makes highs and lows (based on MA3 H & L) accross the MAs channel and these highs and lows will be recorded and used for trade decisions. If descending highs and lows of MA3 are forming will look to sell. If ascending highs and lows of MA3 are being formed, will look to buy. For this, the EA will need to read the last 3 highs lows across the MA high low channel formed by MA1 and MA2. As far MA3(FAST MA) forms: LOW, HIGH, HIGHER LOW (Ascending ZIGZAG), each one crossing the MA channel, a buy can be put if the MA closes then above the channel. HIGH, LOW, LOWER HIGH (Descending ZIGZAG), each one crossing the MA channel, a sell can be put if the MA closes then below the channel. Conditions: As far one trade is put, another one on same direction cannot be put. In case another entry occurs, need to wait 1st trade to be closed. In case a reversion occurs (SELL CONDITION), any previous trades open will be closed. Will use Martingale to open the reversion trade and the next trades will use Initial Lot ***EXITS SL When SL is reached, or DAILY LOSS (Last Max Balance - Equity) or a revert signal comes up, all trades are closed. When TP is reached all trades are closed. Max Daily loss and Max Daily Profit...see below. ***Settings Initial lot Ma1 Ma2 Ma3 Options for MA (MA, EMA, close, high, low, period) Martingale (Every time there is a revert, only the first trade will be open by Martingale and the rest will use initial lot size) TP SL Max Daily Profit $ (Stop the bot for the day and restart next day at ON TIME setting) Max Daily Loss $ (Stop the bot for the day and restart next day at ON TIME setting) ******************************************************************************************* PHASE 2 ******************************************************************************************* PYRAMID OPTION yes/no Pyramid will open 1 trade per GRID STEP in the direction of the trade limited by Max Pyramid (times) DEFENSE OPTION yes/no Defense will open trades in case the price come against the trade limited by Max Defense. Defense will open 1 trade per GRIS STEP in the direction of the trade limited by Max Pyramid (times) * TP for Pyramid and Defense will be set according to GRID STEP. For every trade put, a TP will be put 1 GRID STEP from the previous trade. *In case part of the open PYRAMID or DEFENSE trades are closed by TP, another one can be open in same level as before when the price returns. ***Only one trade per grid level can be open. An option will limit the GAP between Price and MA1 to buy and Price and MA 2 to sell. In case the GAP is higher, will wait until a close is within tolerance. ***settings to be added Grid Step pips Pyramid (option) yes/no Defense (option) yes/no Max Pyramid ( will set max trades open by Pyramid ) Max Defense ( will set max trades open by Pyramid ) GAP to M.A. (makes it wait until the price is within tolerance in divergence to the MA)((MA1 to buy MA2 to sell) Martingale (Every time there is a revert, only the first trade will be open by Martingale and the rest will use initial lot size) ON TIME OFF TIME SL will have to be modified to close all trades in case it is reached. Besides it is based on the first trade to be set.