Indicators with alerts/signal - page 149

mrb1234
14
mrb1234  
bounty_one
5
bounty_one  

Indicator needed: Weekly Trend

Hello, I currently use an indicator which displays the current weekly trend status based on weekly data according to an MACD-like formula as a text message on an intraday chart. While this is sufficient for life trading, for manual backtesting I would like to have a bottom indicator which shows me past weekly trend states, e.g. wether the weekly trend was up or down 5 weeks ago. A bottom chart showing the oscillating values for "WDiff" would be great. And please remember I'd like to have this weekly trend shown on an intraday (H1, H4) chart. Thanks in advance!

Here are the relevant excerpts from my current indicator:

//---- indicators double curr_EMA21;

double curr_SMA5;

double prev_EMA21;

double prev_SMA5;

double WDiff;

//---- Calculate the different weekly data

curr_EMA21=iMA(NULL,PERIOD_W1,21,0,MODE_EMA,PRICE_MEDIAN,0);

curr_SMA5=iMA(NULL,PERIOD_W1,5,0,MODE_SMA,PRICE_MEDIAN,0);

prev_EMA21=iMA(NULL,PERIOD_W1,21,0,MODE_EMA,PRICE_MEDIAN,1);

prev_SMA5=iMA(NULL,PERIOD_W1,5,0,MODE_SMA,PRICE_MEDIAN,1);

WDiff=((curr_SMA5-curr_EMA21) - (prev_SMA5-prev_EMA21));

if (WDiff > 0.0) Direction = "^^ UP ^^";

if (WDiff < 0.0) Direction = "vv DOWN vv";

bounty_one
5
bounty_one  

Kalenzo, thanks for your great work. It's even better than I expected!

Poocher
183
Poocher  

Big Joe,

Still no alerts for this???

I would love it too.

Big Joe:
Dear wonderfull coders, need help :

Can you add alert to this indicator, when the zigzag change.

A sound/text alert please, with in the text the name of the currency which the indicator is attached.

Thanks all.
xgcsmith
14
xgcsmith  

simple cci zero line cross with arrow sound alert

greetings earthlings i hope you are all making big pips today.does anybody out there know where i can get a simple cci zero line cross that shows arrow alert on the chart with a sound alert.

thanx

fxbs
3203
fxbs  

Fan Simple4 - ma crosses with traffic light

https://www.mql5.com/en/forum/173235/page6

fxbs
3203
fxbs  

StochTxt(komposter).mq4; arrows by/sell; txt lables, allert - true/false

fxbs
3203
fxbs  

" could be a stop at BE or if your stubborn a small loss"

i like this expession

Droesparky, you still keep ind. Shortname 'Zigzag'?

fxbs
3203
fxbs  

TraderGeek :

Forex Factory - View Single Post - Trend Hugger System

OsMA Color indicator with alert

"Inputs Added:

AlertOn: You want MT4 alerts

EmailOn: You want MT4 to send email as configured in the platform

Logic:

All this does is compare the most recent closed bar (so 1 bar ago) to the one before that. If the color is different, it generates an alert/email that says the color changed. At that point it's up to you to do any other due diligence, wait for another bar to close, etc.

Also, the alerting logic only runs once per bar, not per tick. So on the first tick of a newly opened bar, it looks at the prior two bars to detect a color change. It does not look at the newly opened bar at all. I thought of making sure it was the same color as the most recently closed bar, but decided not to as I think a lot of people are trading this system differently than others."

fxbs
3203
fxbs  
MrPip:
MTF MACD with 3 lines requested from PM. Robert

Hi, Robert!

why do we need flagval2 & flagval1 and what it does?

thankyou

--------------------

p.s. mtf limit f-la updated:

limit= Bars-counted_bars;

limit= MathMax(limit,TimeFrame/Period());

//limit= MathMin(limit,MaxBarsToCount); // - if maxbarstocount (history)