EA Elephant The indicator “Vela Elefante” will show Elephant bars (EB). X is written where the user can define a PIP value. The values should be from 0,1 PIP and up. The user can define: * A buy is triggered when it breaks X pip above the last red bar. * The ea should stop looking for a trade after X bars * The ea shold stop looking for a trade if a X moving average is broken with a bar close. Choice between EMA and SMA * The user can define a time period when the ea should not look for trades. Ex: 22:00-06:00 * Profit X pip above the top of the EB, or the wick of the bar after the EB – if it is higher than the EB. * Stop loss X pip below the low. (Not the low of the EB, but the low of the retracement within the EB.) Rules for buy: (The opposite goes for sell.) 1. The green elephant bar (EB) is shown by indicator. 2. After the EB, the EA must wait for a minimum of two bars to close, to start looking for a trade. See PIC 1 3. Only the first bar after the EB, can break the EB high with a wick, but it cannot close higher than the elephant bar high. See PIC 1 4. Two options for a triggering a buy: The user can choose to use one or both buy options. a. When a red bar is formed, the buy is triggered when the next bar breaks the high of that red bar with X pips. See PIC 2 b. When a red bar is formed, and the next bar breaks the low of that red bar, a buy is triggered when the bar breaks the high of that red bar with X pips. See PIC 3 The EA must stop looking for trades until the next EB is formed if: 5. The bottom of the EB is broken with a bar wick or bar close. See PIC 6 6. The high of EB (or the high of first bar after the EB, if the wick of that bar is higher than the EB), is broken by any bar. See PIC 4 7. The retrace is more than X bars. See PIC 8 8. The retrace break X moving average (SMA/EMA) with a close. See PIC 7 9. The user has defined that there will be no trades during that time (ex: 22:00-06:00. 10. Less than X pip profit potential. Measured from the potential buy to: The highest of the EB and the wick of first bar after the EB. See PIC 14 Profit taking Alternativ 1: Profit when the highest of the EB and the wick of first bar after the EB, is broken by x pip. See PIC 9 Alternativ 2: Wait for a bar to close over the highest of the EB and the wick of the first bar after the EB. Take profit on the open of the next bar. See PIC 9 Stop loss Stop loss X pip under the low when the trade is triggered. See PIC 11 I need the EA and the source code.