Metatrader Alert Problem

Discussion in 'Automated Trading' started by binar, Dec 19, 2008.

  1. binar


    Fellow Forum Members,
    I'm using Metatrader 4 and it offers the ability to setup sound alarms if a candle stick hits a price you are interested in.

    However, there is no way to setup sound alarms for the stochastic indicator which does not use candle sticks or price. Is there anyway to enable my stochastic indicator to sound an alarm anytime the oscillating line hits either the 80% or 20% red line? I hear that Metatrader is a very well supported with all kinds of plugins. Is there a plugin out there that can make this happen? Any help will be greatly appreciated. Thanks
  2. I dont see what the problem is.
    Tools/MetaQuote language editor
    Get into the indicator code.
    Add somethink like that somehwere:
    if(StochasticBuffer>SignalLevel1 && StochasticBuffer[i+1]<SignalLevel1)
    Alert("Stochastic alert",Symbol(),"!!!");

    It require you to program something that looks like that, dont plug that exactly, you have to adapt it to the code.
  3. binar


    Thanks for the tip. I am not a Metaquote Language Editor expert, but I'm sure I can find some one that will do it for money. I have attached a JPG that shows more clearly what I'm trying to make Metatrader 4 perform. I hope you can take a look at it and let me know if this kind of alert setup is even possible in Metatrader 4.

    Moreover, I'm using customised templates I purchased from an online Forex trader. Does this make it more complicated since I'm not using the original indicators included with Metatrader 4 but instead customised versions? Any help will be greatly appreciated. Thanks.

    <img src= width=800>
  4. binar


    One more question. Do you know what is the best online resource to learn some MetaQuote code programming?
  5. No clue but have a look at:
  6. I think it's doable, not that hard.
    If you use customised templates I dont think it's a problem, as long as you have the code, some .mq4 files.
  7. Someone is bound to have coded this already. Try doing a search for something like "Stochastic with alert mq4" or "RSI with alert mq4" with Google. Even if you only find something similar you can look at the code and adapt it.

    What I know of coding I've learned from deconstructing the MQ4 indicators of others. What you are requesting is one of the first things I figured out on my own and is easy to do.
  8. Or else, you can set the signal line faster to respond and therefore achieve the same results. Example, you want to trig on a MACD30 signal 20 for a curve reversal, you set MACD30 signal 28 or something.
  9. fdaron


    I am a bloody beginner with Meta Trader 4 and also with forex trading in general and I want to get more into the software. So far I haven't even set up an alarm or anything like that. Also I don't know anything about plugins so I am grateful for any information I can get here. Now I am trying to make an alarm to get used to Meta Trader.
  10. #10     Sep 3, 2009