Комментарии могут оставлять пользователи, купившие или арендовавшие продукт
HUSEYIN CETINEL  
I am always here for any questions, comments and suggestions you may have.
HUSEYIN CETINEL  

Inputs and Input Descriptions:

UseStrategy1
  • What does it do? It activates/deactivates Strategy 1 (BUY grid).

  • true: EA only/primarily implements the BUY grid logic.

  • false: Strategy 1 is completely disabled.

UseStrategy2
  • What does it do? It activates/deactivates Strategy 2 (SELL grid – reverse direction).

  • true: Implements EA SELL grid logic.

  • false: Strategy 2 is disabled.

If both are set to true simultaneously, EA can open both a BUY grid and a SELL grid on the same symbol (hedge / two-way risk).

Magic_Strategy1
  • What does it do? It's a "Magic Number" to distinguish the trades opened by Strategy 1 (BUY).

  • EA uses this number to find its "own transactions" when counting/closing orders.

  • This is important to avoid confusion if there are other EA products with the same symbol.

Magic_Strategy2
  • What does it do? It's the Magic Number that distinguishes the trades of Strategy 2 (SELL).

  • It must be different from Strategy1 (since 1001/2002 is already given).

MaxOrdersThisEA
  • What does it do? It's a limit on the total number of orders that this EA can open simultaneously for this symbol.

  • Strategy 1 + Strategy 2 + "extra" orders included.

  • It is one of the most critical parameters in limiting grid risk.

  • If it's too low, the grid "doesn't function properly"; if it's too high, the margin/risk inflates.

UseSpreadFilter
  • What does it do? Should the spread filter only activate when there are no open trades?

  • true: The spread is checked before opening the first order.

  • false: Spread control is not performed.

MaxSpread
  • What does it do? The maximum spread allowed when there are no transactions.

  • Unit: pip (In EA, pip calculation is set to 10 points per 5 digits).

  • Example: 30.0 means that if the spread is above 30 pips, the first trade should not be opened.

Strategy1Fixed Lot
  • What does it do? Fixed lot size for Strategy 1.

  • If the equity-based lot is closed (UseEquityBasedLot_Strategy1=false), this lot will be used directly.

UseEquityBasedLot_Strategy1
  • What does it do? Should the lot size be automatically calculated based on equity?

  • true: The equity formula works instead of FixedLot.

  • false: A fixed lot size is used.

Strategy1_EquityPerLot
  • What does it do? In equity-based lot calculations, it defines "how many steps are needed for each unit of equity".

Strategy1_ LotPerEquityStep
  • What does it do? It determines how many lots to buy for each equity increment.

Example: Equity 100,000, EquityPerLot=10,000, LotPerEquityStep=0.01 steps=0.1 → lot=0.10

Strategy1GridDistance(pips)
  • What does it do? Grid spacing (in pips) — used if percentage mode is off.

  • BUY grid logic:

    • If the price drops to the RefPrice - step level, a new BUY order will be opened.

    • If the price reaches the RefPrice + step level, it will close the oldest BUY order.

UsePercentStep_Strategy1
  • What does it do? Should the grid distance be calculated as a percentage instead of pips?

  • true: StepPercent_Strategy1 is activated.

  • false: StepPips_Strategy1 is activated.

Strategy1GridDistance(Percent)
  • What does it do? It determines the grid distance as a percentage.

The percentage grid increases the step size as the price level rises (dynamic grid).

Strategy1StopLossPerGrid(pips)
  • What does it do? It places a pip-based stop-loss on every BUY order opened.

  • This feature has been added because some brokers require the use of stop-loss and take-profit orders.

Strategy1TakeProfitPerGrid(pips)
  • What does it do? It adds a pip-based take profit to every BUY order opened.

  • This feature has been added because some brokers require the use of stop-loss and take-profit orders.

In this EA, "grid closing" is also done using a step-by-step logic. If you open a TP/SL, the broker can close it at TP, disrupting the grid pattern; you need to be aware of this when using it.

In EA, Strategy 1 operates as a buy order, while Strategy 2 operates as a sell order. The input meanings for Strategy 2 are the same as the inputs for Strategy 1.


Slippage

  • What does it do? It determines the maximum slippage allowed during OrderSend/OrderClose.

  • In MT4, this value works on a point basis; a 3 in a 5-digit number can often be too tight.

  • If it's too low, order rejection may increase; if it's too high, the risk of filling at a bad price increases.

MinimumBalance
  • What does it do? If the equity is below this value, the EA won't trade.

UseEquityTP
  • What does it do? When Equity increases by a certain percentage relative to its initial equity, it closes all transactions for the account.

EquityTP(Percent)
  • What does it do? Target equity growth percentage.

  • Account: (Equity - StartEquity) / StartEquity * 100

  • Once this percentage is reached, CloseAllAccountOrders() is called (including all symbols).

No_trading_today_as_EquityTP_is_available.
  • What does it do? When EquityTP is triggered, it stops opening new trades for the day.

  • The lock is released when a new day is detected (with DayKey).

This setting is very important: it should remain true if you don't want EquityTP to close the grid and then reopen it the same day.

UseEquityDrawdownSL
  • What does it do? Equity closes the entire account if the price pulls back a certain percentage from the highest level seen.

EquityDrawdown(Percent)
  • What does it do? A percentage decrease from maximum equity.

  • When we reach the threshold, all accounts are closed.

This acts like an "emergency brake" for the grid, but it turns off all the symbols.

TradeOnBarOpenOnly
  • What does it do? Should the EA only work on the opening of a new candle?

  • true: Opens/closes trades based on bars, not ticks.

  • false: Checks every tick.

  • In grid EAs, bar-open mode sometimes creates a "delay" (especially if the step size is small).

UseTradeTimeFilter
  • What does it do? It allows trading within a specific time frame.

EAStartHour
  • Session start time (0–23).

EAStartMinute
  • Session start time (0–59).

EACloseHour
  • Session end time.

EACloseMinute
  • Session end time.

Close all trades at closing time
  • What does it do? As soon as the session ends (at the first tick mark indicating exit from the session), it closes the entire account.

  • Note : CloseAllAccountOrders() is being called → all symbols.

PriceRangeFilter
  • What does it do? It prevents trades from opening if the price is outside a certain range.

Lowest allowed price
  • What does it do? The minimum allowed price.

  • If it's 0, there's no lower limit.

Highest allowed price
  • What does it do? The maximum allowed price.

  • If it's 0, there's no upper limit.

CloseTradesIfOutOfRange

  • What does it do? When the price goes outside the range, it doesn't just stop, it closes all transactions on the account.

  • Again: all symbols included.