暂无描述

Huzaifa-MQLDev bba0e22981 Ticket: 4176 Enable/Disable trade on same level 11 月之前
NewsFilter ee3808d893 Ticket : 4073 Add news filter 11 月之前
README.md c258ee4f3b Ticket: 4047 Readme Updated 11 月之前
line_level_ea.ex5 bba0e22981 Ticket: 4176 Enable/Disable trade on same level 11 月之前
line_level_ea.mq5 bba0e22981 Ticket: 4176 Enable/Disable trade on same level 11 月之前

README.md

line_level_ea_mt5

Overview

Line Level EA MT5 is an Expert Advisor (EA) designed for MetaTrader 5 that places trades at the nearest round value based on a user-defined step size. The EA determines two price levels (LowerLevel and UpperLevel) around the current price and executes trades accordingly. The EA provides flexible trade management settings, including lot size, multipliers, take profit, stop loss, and time filters.

Features

  • Automatically calculates LowerLevel and UpperLevel based on the step size.
  • Allows users to define the trade type (Buy/Sell).
  • Configurable initial lot size and lot multiplier for dynamic lot adjustments.
  • Customizable Take Profit (TP) in Pips and Stop Loss (SL) in Pips.
  • Option to use a time filter to restrict trading within a specific period.
  • Option to continue trading cycles after a profitable trade.

How It Works

Price Level Calculation

The EA dynamically determines the closest round price levels to the current market price based on the step size.

Example:

Current Price Step Size Lower Level Upper Level
1824.74 10 1820.00 1830.00
1826.74 10 1820.00 1830.00

Trade Execution

  • If Buy mode is selected, the EA will only execute buy orders.
  • If Sell mode is selected, the EA will only execute sell orders.
  • Trades are placed at the nearest round price level.

Input Parameters

Parameter Description
Trade Type Selects Buy or Sell mode.
Step Size Defines the distance between round levels.
Initial Lot Size Sets the starting lot size for trades.
Lot Multiplier Adjusts the lot size dynamically.
Take Profit (TP) in Pips Defines the TP level.
Stop Loss (SL) in Pips Defines the SL level.
Use Time Filter Enables trading within a specified time range. (true/false)
Start Time Defines the start time for trading.
End Time Defines the end time for trading.
Continue Cycle after Profit If enabled, the EA continues trading after a profitable trade. (true/false)