Description in Depth: This EA should be consistent out of two strategies. First one is the grid strategy (Grid) and second one is partial closing of opened positions (Buoyant). How EA should behave Grid strategy: The EA should be simultaneously opening positions in two directions with only Take Profit (TP) in the specified in Parameters distance in pips and with specified lots. The EA should open positions without Stop Loss (SL). When the price goes to right direction and reaches TP – the position closes and profit is collected. However, if the price goes to opposite direction the negative position will continue to be open until a second strategy of EA closes it or it closes by reaching its TP when the market recovers. The Grid strategy works between Support and Resistance lines created by a very effective and popular indicator, for example by PipFinite Range Point indicator by Karlo Wilson Vendiola. Open for suggestions on this. Once the market price reaches a Support or Resistance line the Grid strategy continues working without any changes, but the second strategy triggers. In depth: EA creates an invisible grid with Pending orders (not required to have Pending orders, can be just placing Buy and Sell orders at calculated prices) in both directions from the Current price of the pair in the distance of GridDistance, with GridSize and OrderTP take profit of each order. EA opens Buy and Sell positions only when the price spot has no opened Buy and Sell positions at each created Grid line it should be only one Buy and Sell positions. Example: So, once the EA is activated by selecting Parameter GridStart from “False” to “True” the advisor waits until price goes to nearest round price, e.g. EURUSD = 1.1280. Then EA puts invisible Pending orders Buy Stop, Sell Stop, Buy Limit and Sell Limit (not required, used for explanation purposes only) at the Parameter GridDistance, e.g. 10 pips, it will be Buy Stop and Sell Limit at 1.1290 and Sell Stop and Buy Limit at 1.1270. Once the price goes to up to 1.1290 it triggers Sell and Buy positions simultaneously with TP at e.g. 10 pips. Once it happens, another invisible Pending orders put to 1.1280 and 1.300 respectfully. Now we have 2 positions open – Buy and Sell at 1.1290 with TP at 1.1300 and 1.1280 respectfully, then if the price goes down to 1.1280 EA triggers another Buy and Sell positions, but simultaneously it closes opened Sell position with TP 10 pips and leaves Buy position at negative 10 pips. After that the price goes down to 1.1270. Sell position takes profit with TP 10 pips and leaves now 2 open Buy positions at negative 20 and 10 pips respectfully. EA continues opening positions where they are not exist, e.g. if the market price goes to 1.1260 and there is only one open Sell position, it places a Buy order and not a Sell order, because there is already another one. Partial close strategy: The second strategy of EA will start closing the largest negative position once the market brakes through the support or resistance line until this order is fully closed and it jumps to the next largest negative position. It will continue closing positions until the next largest negative position is inside the Safe Zone (within support and resistance line). The size of part that needs to be closed is exactly the same in amount of money that was just generated by Grid. For example, we have 10 grid positions; 9 sells and 1 buys in the distance of 10 pips between each other. The farthest sell position will be closed partially (in size of 10 pips) once the buy will reach its TP in 10 pips distance from original (opened) price. Once that buy position is closed fully then another identical buy position should be open simultaneously (at the same price). And this repeats until the largest negative position is in the Safe Zone. The Grid should always work in both directions and open positions once the calculated spot is unoccupied. No pending orders. So, in financial terms, every dollar this EA gains will be used to reduce the negative equity of account. Variability: Slippage and re-quoting of the brokers will create an unstable order calculation and hence, placing wrong positions. This should be corrected with following rule. One of the algorithms should make EA to calculate next Grid position and look if it is occupied or not, then if the opened positions are a bit off than EA should identify to which Grid position order is closer to and then do not open another similar position next to the opened one. For example, if during trade a broker slipped the Buy order on 1.1280 and opens it at 1.1283 instead, the EA, on the way back from 1.1270 plans to open another Buy order at 1.1280, but before doing that it looks at this price within -5+ pips (GridDistance/2), i.e. between 1.1285 and 1.1275, and finds another opened Buy position at 1.1283 and does not place a Buy order at 1.1280. The spread is another issue in implementing a placement of two opposite orders simultaneously at the same Grid position. This can be minimized by trading through the broker with small spread as possible. Parameters: In parameters the EA should have the followings: 1. MagicNumber: Set magic number to a value greater than zero to enable the style. MagicNumber is used to identify styles. It must be a different value for each style. 2. TransactionCost: Broker’s Spread + Commission + Fees + Swaps – Rebate. (margin requirements, minimum clearances for installation of orders also to be considered) 3. GridStart: False or True to start the EA 4. GridSize: Size of each position in lots 5. GridDistance: the number in pips between each desired position