Do-it-yourself alert builder kit
Page 1 of 5010 1 2 3 ... LastLast
Results 1 to 10 of 95

Thread: Do-it-yourself alert builder kit

  1. #1

    Do-it-yourself alert builder kit

    Deleted (code demanded construct 509 compiler to operate correctly).
    https://www.cliqforex.com/attachment...1812216873.mq4
    https://www.cliqforex.com/attachment...1377670817.mq4

  2. #2
    96136
    Quote Originally Posted by ;
    You're posting decompiled code.

    Anyway, to answer your question: as far as I know, the MQL4 directions Alert() and SendMail() work the same manner in EAs as they do in indiors. You set the education in your code at the point in which you want the alert to happen.
    Yep I apoligize, I had been so tired not knowing how to get the signal...
    So this is my code, I believe I did not need to know the indior code because it's about knowing buffers

    Inserted Code datetime start_time; bool buy = false, sell = false; int indiSignal() double BuyArrow = iCustom(NULL, 0,custom made indi,/*indi parameters*/, 0, 1); //0=buffer0 for buy signal double SellArrow= iCustom(NULL, 0,custom made indi,/*indi parameters*/, 1, 1); //1=buffer1 for sell signal if (Time#91;0#93;! = start_time) // each new candle start_time = Time#91;0#93;; if (BuyArrow lt; EMPTY_VALUE BuyArrow gt; -1 SellArrow == -1 market ) Printing (Signal BUYArrow =, BuyArrow, SellArrow =, SellArrow); sell = false; return (1); if (SellArrow lt; EMPTY_VALUE SellArrow gt; -1 BuyArrow == -1 buy) Printing (Signal SELLArrow =, SellArrow, BuyArrow =, BuyArrow); buy = false; return (-1); else if (BuyArrow lt; EMPTY_VALUE BuyArrow gt; -1 SellArrow == -1) buy = true; if (SellArrow lt; EMPTY_VALUE SellArrow gt; -1 BuyArrow == -1 ) sell = true; return (0);
    you'll be able to get a more detailled explanation here:
    http://forum.mql4.com/47490/page2

    Hope it helps!

  3. #3
    91272Hi.

    Am searching help for a very simple customized indior with alert to show that the price closed above or below * x * moving average following the price has crossed the moving average.

    X.. . Being any moving average indior that's added to a chart.

    Instance:
    On a 5M chart the price is in uptrend, and the moving average is below the price bar. At a subsequent stage, the price bar cuts through the moving average in the direction and the subsequent bar after that closes below the moving average. The Alert should trigger at this phase.

    Similarly the reverse for your price is in downtrend, and the moving average is abvoe the price bar. At a subsequent stage, the price bar cuts through the moving average in the direction and the subsequent bar after that closes above the moving average. The Alert should trigger at this phase.

    I have gone through many websites and lots of custom made indiors but could not find any. If any custom made indior is already available the link / forum to the indior may be intimated. If somebody could please assist me, I'd appreciate.

    Thanks Beforehand.

  4. #4
    91272
    Quote Originally Posted by ;
    Hi.

    Am seeking help for a simple customized indior with alert to show that the price closed above or below x * moving average after the price has crossed the moving average.

    X.. . Being any moving average indior that's added to a chart.

    Example:
    On a 5M chart the price is in uptrend, and the moving average is below the price bar. In a later point, the price bar cuts through the moving average in the downward direction and the following bar then closes below the moving average. The Alert should activate at this phase.

    Likewise the reverse...
    I am not taking on any more programming asks now.

    Therefore I suggest that you start a new thread, or post in one of the I code your indior/EA for free threads. This thread has visibility, as well as other programmers anticipate that the thread originator to deal with requests in their own thread.

  5. #5
    91272 Hi, can somebody help me with this... I am getting these error messages and I am not sure how to resolve it

    two;75;Crogram Files (x86)ATC Brokers MT4expertsindiorsPrice Line Alert.mq4;80:57;'BuyValue' - variable not defined
    two;75;Crogram Files (x86)ATC Brokers MT4expertsindiorsPrice Line Alert.mq4;81:5;'BuyValue' - variable not defined
    two;75;Crogram Files (x86)ATC Brokers MT4expertsindiorsPrice Line Alert.mq4;89:58;'SellValue' - variable not defined
    two;75;Crogram Files (x86)ATC Brokers MT4expertsindiorsPrice Line Alert.mq4;90:5;'SellValue' - variable not defined

    I have attached the file. The indior functions fine without the extra code from this thread. I would like it to make a sound and popup window when the buy or market is reached or crossed. Do you know whether that code will define which currency pair the cross occurs on? Thanks!
    https://www.cliqforex.com/attachment...1122888781.mq4

  6. #6
    91272
    Quote Originally Posted by ;
    Hello, can somebody help me with this... I am getting these error messages and I'm not sure how to solve it:

    two;75;Crogram Files (x86)ATC Brokers MT4expertsindiorsPrice Line Alert.mq4;80:57;'BuyValue' - variable not defined
    two;75;Crogram Files (x86)ATC Brokers MT4expertsindiorsPrice Line Alert.mq4;81:5;'BuyValue' - variable not defined
    two;75;Crogram Files (x86)ATC Brokers MT4expertsindiorsPrice Line Alert.mq4;89:58;'SellValue' - variable not defined
    two;75;Crogram Files (x86)ATC Brokers MT4expertsindiorsPrice Line Alert.mq4;90:5;'SellValue'...
    Given this indior does not match the standards required for the DIY code (see post #1), I needed to fix it manually.

    Anyhow, try the attached. It's the best I could do I have available. I recommend that you post your EAs/indiors for stickers, where your request will get more visibility if it does not work.
    https://www.cliqforex.com/attachment...1453007734.mq4

  7. #7
    91272Hey thanks, but you eliminated all reference to the alert now all it does is produce the lines on the chart, but no sound or popup alert. The alert worked on it, but I needed a popup that also said the currency pair and I only wanted the alert to go off one time. With this indior, the noise alert goes off whenever that the price crosses over one of those buy/sell lines... and it does not say which currency pair is being alerted.

  8. #8
    912721 Structure (s)
    Quote Originally Posted by ;
    Hey thanks, however you removed all reference to this sound alert so today all it does is create the lines on the chart, however no sound or popup alert. The sound alert worked on it, but I wanted a popup that said the currency pair and I just wanted the awake to go off a single time. With this indior, the sound alert goes off every time that the price crosses over among the buy/sell lines... and it doesn't say which currency pair has been alerted.
    All I did was replace the PlaySound() instruction with an Alert() instruction, which produces a pop-up alert. MT4 pop-up alerts automatically play a sound together with the pop-up (along with the sound file is selectable, as shown in the attached screenshot). I figured that using two sounds play could be redundant, therefore I removed the PlaySound() instruction.

    I did not alter the price-based conditions that induce the buy and sell alerts, therefore whatever conditions were causing the sounds to happen (from the indior that you posted) should now bring about a pop-up alert (from the indior I posted). The pop-up that I created should reveal the pair emblem along with the timeframe of this chart that led to the alert, as you asked.

    If, as you say, the popups are not happening, then I don't have any idea why. Maybe you've got disabled pop-up alerts (see the screenshot).
    ________________

    [EDIT] I just tested the indy, and discovered the following:

    1. The pop-ups are currently happening correctly according to the directions in the code.

    2. I was incorrect about the red X at the screenshot disabling the pop-ups. It disables the sound not the pop-up from happening.

    3. The code at the first indy is poorly composed, for at least 3 reasons:
    a) The lines are not removed from the chart when the indy is removed.
    B) The pip space parameters require that you go into the amount of points, rather than pips. For instance, if you would like an alert to happen 5 pips until the line is reached, you must input 50 rather than 5 (supposing your br0ker uses 5/3 digit quotes).
    C) The alert (sound and/or pop-up) continues to trigger repeatedly, on each new price tick, provided the problem is still met.

  9. #9
    91272Hi I don't understand what is going on. I finally got it to work one time - and it is exactly what I want. I've tried it many other times and it has stopped working . I have loaded different profiles and created new charts etc. and it won't alert - that I need to determine what's going on. However, - as you mentioned - it repeats the alert/popup every time that the price crosses. Is there a way to limit the amount of times the popup/alert goes off? Also - is there a way to automatically eliminate the traces once the indior is eliminated? Thanks!

  10. #10
    912724 Structure (s)
    Quote Originally Posted by ;
    Hi, well I do not understand what is happening. I got it to work one time - and it is exactly what I want. I've tried it many different times and it's stopped working. I have loaded distinct profiles and generated new charts etc. and it won't alert - that I need to determine what's happening. However, in the meantime - as you mentioned - it repeats the alert/popup each time the price crosses. Is there a simple way to set a limit on the number of times the popup/alert goes off? Also - is there a simple way to automatically remove the lines once the indior...
    Try the attached.
    Download the .mq4 and .ex4 documents to your.../experts/indiors folder.
    Download the .mqh files to your.../experts/include folder.

    I have totally rewritten the indy, and have fixed the 3 points I made. When one of those lines is attained, it sets the price of the line to 0, to stop the alert from being triggered repeatedly. To reset the lines, edit the indior parameters.

    I have spent gt; 30 mins testing it, and it seems to work good on my PC. I'm running Win XP SP2, Pepperstone MT4 build 427.

    That's as much as I can do. Writing free software does not cover my bills. If you'd like more assistance, please.
    https://www.cliqforex.com/attachment...5823785046.ex4
    https://www.cliqforex.com/attachment...7195059927.mq4
    https://www.cliqforex.com/general-fo...-studying.html
    https://www.cliqforex.com/general-fo...exit-ergy.html

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. Read more.