Teslas Fancy Shmancy Alerting EA
Page 1 of 843 123 LastLast
Results 1 to 10 of 21

Thread: Teslas Fancy Shmancy Alerting EA

  1. #1
    By popular request, here's the EA I use to alert me to trendline or price closeness.

    Very simply, whenever a tick comes from, it assesses that the Bid price against all flat lines and trendlines on the chart which have Alert_# at the description (where # is a number). If the proximity to the line is inside # pips, an alert is fired off.

    The alert may be standard popup using audio, an email or both based upon the EA level. The Alert _ # is stripped from the description, once the alert is terminated for any line. This usually means an alert for any specific line will happen only once unless you put in the Alert_# back into the description field.

    http://img177.imageshack.us/img177/7...600x600bv9.jpg

    Some things to watch out for:The Alert_# pattern is case sensitive (Has to be capital'A') Alert_# must be at the close of the line description (or only thing in description) or wonkyness could happen. Numbers do not work, and I suggest awake of 1.
    EDIT: This EA has been modified to function as an indior. The latest version is found in post #23.

  2. #2
    Tesla,

    Thanks for the Rapid Response.

    Is there a way that I can convert this to an indior?
    What must be done to accomplish that?

    This works great except that 2 EAs cant operate at the exact same time.


    Keep up the good work, and let me know how I could help.

    Kart69

  3. #3
    Quote Originally Posted by ;
    Is there a way that I can convert this to an indior?
    What must be done to do that?
    1. Copy the Alerter.mqh file to the experts/indiors directory.
    2. Open the document in MetaEditor and add this line to the start of the document:
    #property indior_chart_window
    3. Hit on the compile button.
    4. Enjoy your new Tesla's Fancy Shmancy Alerting Indior

  4. #4
    Only an fyi...

    The Alerter EA was updated slightly. It's now an indior and contains a nifty small label displayed in upper right corner of chart identifying which types of alerts are busy.

    Nothing wrong with the old version, continue using it if it works for you.
    https://www.forexforum.co.za/attachm...6459844552.mq4

  5. #5
    Tesla,

    My interest is in using your Alert app to establish a macro rather than sending an alarm. I have used the alarms function inside the terminal of MT4 to establish macros as it allows either sending an alarm, an email, or launch a file. Is there a function call for starting a file inside metaeditor as I looked and could not find one? I use the macros to open, shut, and modify trades within various other trading platforms.

  6. #6
    Quote Originally Posted by ;
    Tesla,

    My interest is in using your Alert app to launch a macro instead of sending an alarm. I have utilized the alerts function inside the terminal of MT4 to launch macros as it allows sending an alarm, an email, or launching a document. Is there a role call for starting a file inside metaeditor as I looked and couldn't find one? I use the macros to open, close, and change trades inside various other trading platforms.
    You can not just launch executables and such from MetaTrader code, it is to maintain the scripts, indiors and EAs sandboxed in order that they can not affect or snoop around on your pc. It's a security thing.

    That said, you may make a dll call and effectively launch macros. Look into referencing the ShellExecuteA(...) method in shell32.dll.

  7. #7
    Tesla,

    Thank you sir, your expertise is much appreciated. I will give the shellexecute a glance to see if I can figure it out. I have limited programming experience but that's never stopped me by forging ahead.

  8. #8
    Quote Originally Posted by ;
    By popular request, here's the EA I use to alert me to trendline or price closeness.

    Very simply, whenever a tick comes in, it checks the Bid price against all horizontal lines and trendlines on the chart that have Alert_# in the description (where # is a number). In the event the proximity to the line is inside # pips, an alert is fired off.

    The alert can be a standard popup with audio, an email or both based on the EA par. Once the alert is terminated for any particular point, the Alert_Number is stripped from the description. This means an alert to any specific line will happen only once unless you add the Alert_# back in to the description area.

    http://img177.imageshack.us/img177/7...600x600bv9.jpg

    Some things to watch out for:The Alert_Number pattern is case sensitive (Has to be capital'A') Alert_# must be in the end of the line description (or just thing in description) or wonkyness might happen. Negative numbers do not work, and I propose minimum awake of 1. I just cleaned the code up a bit and gave it a once over QA, should you discover anything odd in the behavior please allow me to know.
    After I changed the description (and fitting name), I would only see the text once I moved the cursor over the fashion line. How did you get the text to stand out like it does on your chart?

    Jason

  9. #9
    Under chart properties, there is an option to show object descriptions. Pick this option and you'll be set.

  10. #10
    Everything is perfectly equipped with this indior, thank you Tesla!

    If only if fibbo retracements amounts could be modified with Alert_# as description to create this work it would be utterly perfect, anybody knows how to create this job?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.