.

Re: Indicators with alerts/signals

#1711
mitzescu wrote:
Tue Jul 10, 2018 10:35 pm
Hi forum,

I'm going to try my luck again and ask you please if u can help me by adding Alert to this SR indicator. If you could add a touch alert and a breakthrough alert.

Thank you and i hope you can help me :)
All the best and bless you all!
you forgot to also add the requirements

Code: Select all

#include <CSupportResistance.mqh>
...and more
Info for devs -> source code and all include files are on github (https://github.com/erwin-beckers/SupportResistance)


Re: Indicators with alerts/signals

#1712
Hercs wrote:
Tue Jul 10, 2018 1:40 am
mrtools wrote:
Tue Jul 10, 2018 12:09 am


I looked in the code and it looked like the solar wind indicators(aka fisher) but if you couldn't find it to repaint would cautiously say by all means use it. There is in a lot of cases no way to make a non repaint indicator give the same signals as a repainter.
It seems more like a "TMA" to me, but I will let you know what my final verdict is.
Any chance of you looking at the Zig-Zag Oscillator for me?
Thanks in advance.
Hi MrTools,
To close this topic, what happens is that the indicator works perfectly, but when you change TFs, it recalculates which as you know, cannot be classified as "repainting"
Thank you again for your assistance.

Re: Indicators with alerts/signals

#1713
mrtools wrote:
Wed Jun 27, 2018 12:26 pm
Hercs wrote:
Wed Jun 20, 2018 4:06 pm


Good morning MrTools,
Thank you ever so much.
Attached the MACD I wish to use at your convenience. Zero-line cross for the EA please.
Continued success to you.

!__Zerolag MACD - alerts &amp; arrows v2.0_RENKO_DAX.mq4
Ended up making a more EA friendly indicator and added it to the EA you posted.
Hi MrTools,
I noticed that when I compile the ZeroLag MACD EA 1.01, that it shows a warning which is:
ZeroLag_MACD - EA coding warning.PNG
ZeroLag_MACD - EA coding warning.PNG (7.85 KiB) Viewed 1118 times
Could that cause a problem when the signal is being traded?
Thank you for your time.
Best wishes,

Re: Indicators with alerts/signals

#1715
Hercs wrote:
Wed Jul 11, 2018 2:41 am
mrtools wrote:
Wed Jun 27, 2018 12:26 pm


Ended up making a more EA friendly indicator and added it to the EA you posted.
Hi MrTools,
I noticed that when I compile the ZeroLag MACD EA 1.01, that it shows a warning which is:
ZeroLag_MACD - EA coding warning.PNG
Could that cause a problem when the signal is being traded?
Thank you for your time.
Best wishes,
Far as I know it's a benign warning.


Re: Indicators with alerts/signals

#1716
mrtools wrote:
Wed Apr 18, 2018 4:08 am
simon_n3z wrote:
Wed Apr 18, 2018 3:07 am
One last request (and quite a simple one ;) if mr.Tools would accommodate please ... <3

I would like the regular RSI indicator to give alerts. But give alerts on a reversal after breaking levels and than reversing
Alert on open bar would be very important for me this time

example:

int levelOB = 70;
if ( RSIhigh > 70 && RSIhigh > RSI[0] ) {Alert(reversal - SELL);}

I hope you can understand...let me know if it is unclear...

Greetz to everyone in this fine place

-simon

ps: keep rocking at forex-station.com <3 <3 <3

Code: Select all

//+------------------------------------------------------------------+
//|                                                          RSI.mq4 |
//|                   Copyright 2005-2014, MetaQuotes Software Corp. |
//|                                              http://www.mql4.com |
//+------------------------------------------------------------------+
#property copyright   "2005-2014, MetaQuotes Software Corp."
#property link        "http://www.mql4.com"
#property description "Relative Strength Index"
#property strict

#property indicator_separate_window
#property indicator_minimum    0
#property indicator_maximum    100
#property indicator_buffers    1
#property indicator_color1     DodgerBlue
#property indicator_level1     30.0
#property indicator_level2     70.0
#property indicator_levelcolor clrSilver
#property indicator_levelstyle STYLE_DOT
//--- input parameters
input int InpRSIPeriod=14; // RSI Period
//--- buffers
double ExtRSIBuffer[];
double ExtPosBuffer[];
double ExtNegBuffer[];
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int OnInit(void)
  {
   string short_name;
//--- 2 additional buffers are used for counting.
   IndicatorBuffers(3);
   SetIndexBuffer(1,ExtPosBuffer);
   SetIndexBuffer(2,ExtNegBuffer);
//--- indicator line
   SetIndexStyle(0,DRAW_LINE);
   SetIndexBuffer(0,ExtRSIBuffer);
//--- name for DataWindow and indicator subwindow label
   short_name="RSI("+string(InpRSIPeriod)+")";
   IndicatorShortName(short_name);
   SetIndexLabel(0,short_name);
//--- check for input
   if(InpRSIPeriod<2)
     {
      Print("Incorrect value for input variable InpRSIPeriod = ",InpRSIPeriod);
      return(INIT_FAILED);
     }
//---
   SetIndexDrawBegin(0,InpRSIPeriod);
//--- initialization done
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Relative Strength Index                                          |
//+------------------------------------------------------------------+
int OnCalculate(const int rates_total,
                const int prev_calculated,
                const datetime &time[],
                const double &open[],
                const double &high[],
                const double &low[],
                const double &close[],
                const long &tick_volume[],
                const long &volume[],
                const int &spread[])
  {
   int    i,pos;
   double diff;
//---
   if(Bars<=InpRSIPeriod || InpRSIPeriod<2)
      return(0);
//--- counting from 0 to rates_total
   ArraySetAsSeries(ExtRSIBuffer,false);
   ArraySetAsSeries(ExtPosBuffer,false);
   ArraySetAsSeries(ExtNegBuffer,false);
   ArraySetAsSeries(close,false);
//--- preliminary calculations
   pos=prev_calculated-1;
   if(pos<=InpRSIPeriod)
     {
      //--- first RSIPeriod values of the indicator are not calculated
      ExtRSIBuffer[0]=0.0;
      ExtPosBuffer[0]=0.0;
      ExtNegBuffer[0]=0.0;
      double sump=0.0;
      double sumn=0.0;
      for(i=1; i<=InpRSIPeriod; i++)
        {
         ExtRSIBuffer[i]=0.0;
         ExtPosBuffer[i]=0.0;
         ExtNegBuffer[i]=0.0;
         diff=close[i]-close[i-1];
         if(diff>0)
            sump+=diff;
         else
            sumn-=diff;
        }
      //--- calculate first visible value
      ExtPosBuffer[InpRSIPeriod]=sump/InpRSIPeriod;
      ExtNegBuffer[InpRSIPeriod]=sumn/InpRSIPeriod;
      if(ExtNegBuffer[InpRSIPeriod]!=0.0)
         ExtRSIBuffer[InpRSIPeriod]=100.0-(100.0/(1.0+ExtPosBuffer[InpRSIPeriod]/ExtNegBuffer[InpRSIPeriod]));
      else
        {
         if(ExtPosBuffer[InpRSIPeriod]!=0.0)
            ExtRSIBuffer[InpRSIPeriod]=100.0;
         else
            ExtRSIBuffer[InpRSIPeriod]=50.0;
        }
      //--- prepare the position value for main calculation
      pos=InpRSIPeriod+1;
     }
//--- the main loop of calculations
   for(i=pos; i<rates_total && !IsStopped(); i++)
     {
      diff=close[i]-close[i-1];
      ExtPosBuffer[i]=(ExtPosBuffer[i-1]*(InpRSIPeriod-1)+(diff>0.0?diff:0.0))/InpRSIPeriod;
      ExtNegBuffer[i]=(ExtNegBuffer[i-1]*(InpRSIPeriod-1)+(diff<0.0?-diff:0.0))/InpRSIPeriod;
      if(ExtNegBuffer[i]!=0.0)
         ExtRSIBuffer[i]=100.0-100.0/(1+ExtPosBuffer[i]/ExtNegBuffer[i]);
      else
        {
         if(ExtPosBuffer[i]!=0.0)
            ExtRSIBuffer[i]=100.0;
         else
            ExtRSIBuffer[i]=50.0;
        }
     }
//---
   return(rates_total);
  }
//+------------------------------------------------------------------+
Have this older version, that draws arrows and sounds alerts on entering and or exiting the ob/os zones.
Mr Tools

Would you be so kind as to post the mq4 file for this indicator? I am wanting to alter the default settings for the RSI length & overbought/oversold zones so I don't having to change the settings every time I load it onto my chart.

If you'd rather not then I understand...

Thanks
Rakiura

Re: Indicators with alerts/signals

#1717
Rakiura wrote:
Sat Jul 14, 2018 9:41 am
mrtools wrote:
Wed Apr 18, 2018 4:08 am


Have this older version, that draws arrows and sounds alerts on entering and or exiting the ob/os zones.
Mr Tools

Would you be so kind as to post the mq4 file for this indicator? I am wanting to alter the default settings for the RSI length & overbought/oversold zones so I don't having to change the settings every time I load it onto my chart.

If you'd rather not then I understand...

Thanks
Rakiura
Why don't you create a template in MT4 with your custom settings so that you don't need change it every time. If it's not posted before then it will not be posted for ever.

Re: Indicators with alerts/signals

#1718
I spent some time looking and i couldnt find it, Does anybody know where i can get a horizontal line indicator that Alerts when price touches it? Just like the One in Mt4 the only difference is it Alerts when price touches the horizontal line?

Re: Indicators with alerts/signals

#1719
micmac2 wrote:
Mon Jul 16, 2018 11:56 am
I spent some time looking and i couldnt find it, Does anybody know where i can get a horizontal line indicator that Alerts when price touches it? Just like the One in Mt4 the only difference is it Alerts when price touches the horizontal line?
Here you go;
2018-07-16 11_12_04-EURUSD,H1.png
//
//
Both Direction (UP and Down)
Horizontal_Alert_Lines.mq4
(2.02 KiB) Downloaded 163 times
//
//
Single Direction
hline_alert_1.mq4
(1.64 KiB) Downloaded 148 times


Who is online

Users browsing this forum: Cladi39, CommonCrawl [Bot], DotNetDotCom.org [Bot], Tweetmeme [Bot], wasunji and 28 guests