• Forum
  • Market
  • Signals
  • Freelance
  • VPS
  • Quotes
  • MetaTrader
  • Articles
  • CodeBase
  • Algo Forge
  • Documentation
  • AlgoBook
  • NeuroBook
  • Calendar
  • WebTerminal
  • Tools
  • About
  • Algo Trading Channel
ForumSections
  • Log in
  • Create an account
  • English
  • Русский
  • 中文
  • Español
  • Português
  • 日本語
  • Deutsch
  • 한국어
  • Français
  • Italiano
  • Türkçe

Report the price of a horizontal line

New comment
maindoor
120
maindoor 2015.07.10 15:15

Hi,

If I manually place a horizontal line on the chart,

how do I report the level where I placed the line to my EA ?

How do I even identify the line ?


Thanks.

  • get price where horizontal line is drawn
  • will an ea do this?
  • How can I insert the price of the horizontal line?
honest_knave
2317
honest_knave 2015.07.10 15:40 #1
double LinePrice=ObjectGetDouble(0,"linename",OBJPROP_PRICE);
New comment
MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal
You are missing trading opportunities:
  • Free trading apps
  • Over 8,000 signals for copying
  • Economic news for exploring financial markets
Registration Log in
An error occurred
  • Log in With Google

You agree to website policy and terms of use

If you do not have an account, please register

Allow the use of cookies to log in to the MQL5.com website.

Please enable the necessary setting in your browser, otherwise you will not be able to log in.

Forgot your login/password?
  • Log in With Google
    • Online trading / WebTerminal
    • Free technical indicators and robots
    • Articles about programming and trading
    • Order trading robots on the Freelance
    • Market of Expert Advisors and applications
    • Follow forex signals
    • Low latency forex VPS
    • Traders forum
    • Trading blogs
    • Charts
    • Free widgets
    • MetaTrader 5 Trading Platform
    • MetaTrader 5 latest updates
    • News, implementations and technology
    • MetaTrader 5 User Manual
    • MQL5 language of trading strategies
    • MQL5 Cloud Network
    • MQL5 Algo Forge
    • Download MetaTrader 5
    • Install Platform
    • Uninstall Platform
    • About
    • Timeline
    • Terms and Conditions
    • Recurring Payment Agreement
    • Agency Agreement – Offer
    • Privacy and Data Protection Policy
    • Data Sources
    • Cookies Policy
    • Contacts and requests
  • MetaTrader 5
    Download MetaTrader 5 for Windows
    Download MetaTrader 5 for MacOS
    Download MetaTrader 5 for Linux
    Open MetaTrader 5 WebTerminal
    Scan to install from App Store
    Scan to install from Google Play
    Scan to install from Huawei AppGallery
    Scan to get Android APK file
    MQL5 Channels
    Scan to install from App Store
    Scan to install from Google Play
    Scan to install from Huawei AppGallery
    Scan to get Android APK file
    Economic Calendar
    Scan to install from App Store
    Scan to install from Google Play
    Scan to install from Huawei AppGallery
    Scan to get Android APK file
    Subscribe to algotrading news
    Not a broker, no real trading accounts
    35 Dodekanisou str, Germasogeia, 4043, Limassol, Cyprus
    Copyright 2000-2026, MetaQuotes Ltd