Ingen beskrivning

AhtashamShahzad3 8e9be0cab1 Add reserve check in reading file as well 2 månader sedan
..
Pulse_EA_project_MT5.ex5 8e9be0cab1 Add reserve check in reading file as well 2 månader sedan
Pulse_EA_project_MT5.mq5 8e9be0cab1 Add reserve check in reading file as well 2 månader sedan
README.md 845a89dca0 Ticket # 5289 2 månader sedan

README.md

Pulse_EA Project

Features

  • Supports Tally Sim and Tally Trade modes.
  • Automated Buy/Sell trade placement with virtual TP/SL checks.
  • Virtual trade visualization:
    • Arrows for trade open/close
    • Dotted trendlines connecting open/close prices
    • Profit labels on the chart
  • Copy trading support.
  • Daily drawdown limit management.
  • Time-based trading control (start/end times, Monday open, Friday close).
  • Trade logging in CSV files for analysis.
  • Integration with custom indicators (Pulse Balance Indicator Sim).

How It Works

  1. Initialization: Sets EA mode, initializes trading parameters, connects to custom indicators if Tally_Trade mode.
  2. OnTick Function: Checks time filters, daily drawdown, and new bar conditions.
  3. Trade Management:
    • Places Buy or Sell trades according to selected strategy.
    • Checks virtual TP/SL to manage open trades.
    • Updates trade structure and writes trade data to CSV.
  4. Visualization:
    • Draws virtual open/close arrows.
    • Draws dotted trendlines for closed trades.
    • Displays profit labels on chart.
  5. Daily & Weekly Rules: Respects Monday open, Friday close, and daily drawdown limit.
  6. Tally Trade: when the trade is placed check indicator values of Pulse indicator sim if balce is greater than the ma value copy the trade.
  7. Tally Sim: when EA Places on chart it place the trade and virtually checks tp/sl hit and update the logs into the excel file later on the file will used by the indicator to plot indicator buffer values on the chart that will fetched by the Tally trade.

Input Parameters

General Settings

  • eaType: Select Tally_Sim or Tally_Trade.
  • tpPips: Take Profit in pips.
  • slPips: Stop Loss in pips.
  • lot: Default lot size.

Tally Sim Settings

  • ordTyp: Order type (buy or reverse).
  • magicNo: Magic number for trades.
  • fileName: File name for CSV logging.

Tally Trade Settings

  • tradesDirection: Direction of trade (buy or reverse).
  • magicNo1: Copy trade magic number.
  • CopyTallyTrade: Enable or disable copy trading.
  • glTp: Global Take Profit.
  • glSl: Global Stop Loss.

Display Settings

  • tradeLineThickness: Thickness of trade trendlines.
  • dollarFontSize: Font size for profit labels.
  • dollarFontColor: Font color for profit labels.
  • horizontalLineName: Name for horizontal lines.

Time Filter Settings

  • enableTimeFilter: Enable or disable time-based trading.
  • startTime: Trading session start time.
  • endTime: Trading session end time.
  • useFridayClose: Close trades on Friday.
  • closeFriday: Friday close time.
  • useMondayOpen: Start trades on Monday.
  • mondayOpen: Monday open time.

Daily Draw Limit Settings

  • UseDailyDrawdownLimit: Enable daily drawdown limit.
  • DailyDrawdownAmount: Maximum allowed drawdown.
  • DrawdownResetTime: Time to reset drawdown.

Indicator Settings

  • Dot_Color: Color of indicator dots.
  • StartingBalance: Starting balance for the strategy.
  • MagicNumbers: Magic numbers for indicator.
  • MA_Period: Moving Average period.
  • MA_Method: Moving Average method.
  • historyTrades: Number of history trades considered.

Trade Logging

All trade data is saved in a CSV file named using the fileName parameter. Each entry contains:

  • Ticket
  • Type (Buy/Sell)
  • Magic number
  • Open price
  • Close price
  • Open time
  • Close time
  • SL
  • TP
  • Lot size
  • Profit