Code That Detects Manually Added Objects

2 years ago
17

Mql4 Programming Tutorials and Forex Trading Training. https://learnmql4.com
Learn to trade here. https://wd418.isrefer.com/go/14daytrial/jh/
My Expert:
Jimdandy Trade Management Tool.. Free download
https://www.mql5.com/en/market/product/11862
My Trade Simulator:
DownLoad Skill Builder and hone your trading skills. https://www.mql5.com/en/market/product/18682
My simple kindle book at:
https://www.amazon.com/How-Hard-Mql4-Programming-Programmnig-ebook/dp/B00QZEI5RA/ref=cm_cr_pr_product_top
Tip Jar: https://www.paypal.me/jimdandy1958
Be a supporter: https://patreon.com/jimdandy1958

In this video you will learn how to write code that will allow your software to 'see' an object (Horizontal Line in this case).
A student wants to drop two lines on a chart. The entry level and the stop level and then have his code calculate the appropriate lot size to use for his risk profile. However he does not know how to get the indicator to 'see' his lines. This video will show how to use the ObjectFind() and ObjectGetDouble() functions to find the lines and the prices they are dropped on.
Along the way we will also learn a restriction to the MessageBox() function as well as how to properly name and object. Also why you should not declare a variable within an if statement.
There are many valuable lessons in this video for you all and I want to thank my patreon patrons for making it possible. Think about chipping in if you want to see more content like this.

Loading comments...