This EA will place trades in a grid. Losing trades are followed with a martingale, doubling lot sizing, based on the settings below. Pending orders will be used for entry and exit. If SL is hit, TP is removed. New trade is triggered and new TP and SL are set.
-Trading Method - 0 (Grid). This is the method of trading. The setting will allow for future upgrades to be made for different trading methods.
-Initial Trade Method - (0) Long, (1) Short, (2) Trend, (3) Counter-Trend. For 2 and 3, Trend will place the initial trade based on the trend settings.
- After Loss - (0) Martingale (continue to trade in the same direction as initial trade), (1) CAR (Close and Reverse) - martingale trade in the opposite direction of last trade, (3) Trend - martingale in the direction of the trend. Orders are placed at SL to ensure continuity.
-After Win - (0) Long, (1) Short, (2) Trend, (3) Follow Win, (4) Opposite of Win. This setting determines what trade will be triggered after a winning trade. Appropriate orders should be placed at the correct location to ensure continuity. “Follow Win” will have an order placed in the direction a winning trade occurred. “Opposite of Win” will have an order going in the opposite of the direction a winning trade would occur.
-Tiers - (5) The number of times a doubling of trades can occur before restarting at the initial lot sizing.
-Halt Trading - T/F - If activated, the EA will stop trading after the next win
-Spacing - (100) The distance between each trade. If set to 100, the EA uses whole numbers for initial trades. So if price is 1.3460 orders are placed at 1.3500 and 1.3400. If spacing is 50, the same method is used but in increments of 50 pips. In the previous example trades would be placed at 1.3500 and 1.3450. Spacing such as 10 or 25 pips would the same pattern of interlocking at whole numbers.
-Dynamic Spacing - (0) Off, (1) On. If on, use the ATR TF to determine the grid levels. The whole number strategy doesn’t apply. Entry trades will be placed similar to the regular method, above and below current price based on ATR Period and ATR Ratio.
-ATR Period (14) - How many ATR periods the EA uses for calculating ATR.
-ATR TF - (0) M30, (1) H1, (2) H4, (3) Daily, (4) Weekly, (5) Monthly
-ATR Ratio - If set to a number other than 1.0, the grid spacing is based on that ratio. If 1.5 is set and ATR is 80, the grid is 120 pips.
-Trend Mode - (0) HA - trend is determined by direction of HA candles and the number of consecutive candles needed in settings, (1) SAR, (2) ADX - determines trend on ADX cross, (3) ATR Trend Method
-Trend TF - Time Frame used for trend indicator. (0) H4, (1) Daily, (2) Weekly, (3) Monthly. Applies only to HA, SAR, and ADX trend detection methods.
-HA Candles - (3) number of consecutive HA candles needed to change trend indication
- SAR Step - .02
- SAR Maximum - .2
-ADX Period - (14)
-ADX Threshold - (30) - If ADX is above this number, a trending market is detected. Below, a ranging market is detected
-ATR Method A Period - (14)
-ATR Method A TF - (0) M30, (1) H1, (2) H4, (3) Daily, (4) Weekly, (5) Monthly
-ATR Method B Period - (14)
-ATR Method B TF - (0) M30, (1) H1, (2) H4, (3) Daily, (4) Weekly, (5) Monthly
-ATR Method Threshold - (.50) If ATR Method A / B is ≥ the ATR Method Threshold, the market is considered ranging. If it is < it is considered trending.
-Market Detection - (0) Off, (1) On. If on, the trade placed at a loss will depend on whether ADX or ATR Method determine a trending or ranging market, not the After Loss setting
-Trending Entry - (0) Trend, (1) Counter-Trend
-Trending Loss - (0) Martingale, (1) CAR, (2) Trend, (3) Counter-Trend
-Trending Win - (0) Trend, (1) Counter-Trend, (2) Follow Win, (3) Follow Loss
-Ranging Entry - (0) Trend, (1) Counter-Trend
-Ranging Loss - (0) Martingale, (1) CAR, (2) Trend, (3) Counter-Trend
A few more settings, but character limit was reached.