Rolling MA
This is a simple EA works with the MA indicator. Every time a new candle is created on the chart, the EA will check the current price against the value of the MA at the previous candle to open a trading position.
Caution: This EA should be used for testing, statistical and analytical purposes. It is not recommended to use it as a true trading robot, unless you have an effective plan with it.
BUY Conditions:
When Ask price is greater than MA value.
In Reverse mode, a Sell order will be executed instead of a Buy order.
SELL Conditions:
When Bid price is less than MA value.
In Reverse mode, a Buy order will be executed instead of the Sell order.
Features included:
- Automatically perform trailing stop
- Choose to manage capital by risk percentage or trading volume
- Manage the number of trading positions
- Flexible slippage configuration
- Range of trading time configuration
Parameters:
- Timestart: Start trading on time
- Timestop: Stop trading on time
- Money management: LOT or RISK:
- In case you choose LOT: The value for money management: is volume (Example: 0.01)
- In case you choose RISK:The value for money management: is percent (Example: 1)
- For example: If your account is currently 1000 USD, and leverage you're using the is 1:100 on EURUSD pair. At the moment, 1% is equivalent to a trade of 0.01 standard lot.
- Stop Loss, in pips: Stop loss
- Take Profit, in pips: Take profit
- Auto trailing stop: true = on, false = off
- Trailing Stop: Trailing stop, in pips.
- Trailing Step: Trailing step, in pips
- MA timeframe: Time frame
- MA averaging period: MA period
- MA horizontal shift: MA Shift
- MA smoothing type: MA type
- MA type of price: MA type of price
- Only one position: If you select false, an order will be opened each time you switch to a new candle.
- Reverse: Reverse trade mode. Along with a condition C, but will choose to open BUY orders instead of SELL orders or vice versa.
- Close composite: Close all orders in the opposite direction with the next new one, effective when Only one position = false mode.
- Print log: Print logs during back-test
- Slippage, in points: Slippage
- Magic number: The ID of the EA, choose any number from 8-10 digits.
Good luck and Happy trading.
Best one so far, have tested lot of them