Indicators with alerts/signal - page 1065

Mladen Rakic
154349
Mladen Rakic  
privateer:
Hi can some one set this code taken from waddah attar Indicator in such a way that the text is displayed next to price

void SetPrice(string name, datetime Tm, double Prc, color clr)

{

if(ObjectFind(name) == -1)

{

ObjectCreate(name, OBJ_ARROW, 0, Tm, Prc);

ObjectSet(name, OBJPROP_COLOR, clr);

ObjectSet(name, OBJPROP_WIDTH, 1);

ObjectSet(name, OBJPROP_ARROWCODE, SYMBOL_RIGHTPRICE);

}

else

{

ObjectSet(name, OBJPROP_TIME1, Tm);

ObjectSet(name, OBJPROP_PRICE1, Prc);

ObjectSet(name, OBJPROP_COLOR, clr);

ObjectSet(name, OBJPROP_WIDTH, 1);

ObjectSet(name, OBJPROP_ARROWCODE, SYMBOL_RIGHTPRICE);

}

}

//+------------------------------------------------------------------+

//| |

//+------------------------------------------------------------------+

void SetText(string name, string txt, datetime Tm, double Prc, color clr)

{

if(ObjectFind(name) == -1)

{

ObjectCreate(name, OBJ_TEXT, 0, Tm, Prc);

ObjectSetText(name, txt, 10, "Times New Roman", clr);

ObjectSet(name, OBJPROP_CORNER, 2);

}

else

{

ObjectSet(name, OBJPROP_TIME1, Tm);

ObjectSet(name, OBJPROP_PRICE1, Prc);

ObjectSetText(name, txt, 10, "Times New Roman", clr);

ObjectSet(name, OBJPROP_CORNER, 2);

}

}

Thanks & Regards

Privateer

Yous prove the correct price in the Prc parameter when you call those two functions

privateer
78
privateer  

waddah_attar_pivot.mq4 mladen am still in the learning stages of understanding the mql ,, could be kind enough to modify the code so text is displayed right next to the price ..waddah attar indicator is attached.....

Thanks & Regards

Privateer

Files:
Mladen Rakic
154349
Mladen Rakic  
privateer:
waddah_attar_pivot.mq4 mladen am still in the learning stages of understanding the mql ,, could be kind enough to modify the code so text is displayed right next to the price ..waddah attar indicator is attached.....

Thanks & Regards

Privateer

It is displayed next t the price

What you are seeing is the what metatrader does with the text - add some constant to the time parameter (for example 20*_Period*60) and it will move the text to the right, but even then it will not be perfect due toi the way how metatrader display text

privateer
78
privateer  

Thanks mladen now i perfectly understand wht ur saying

mladen:
It is displayed next t the price What you are seeing is the what metatrader does with the text - add some constant to the time parameter (for example 20*_Period*60) and it will move the text to the right, but even then it will not be perfect due toi the way how metatrader display text
Mladen Rakic
154349
Mladen Rakic  
ford7k:
hi mladen and experts

i saw the magnified market price indicator showing display of current close price on chart right side top corner.

I would like to add following

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

Close Price

ATR(14)= (display value on current time frame)

SMA50=

Volume change= (V-MA(V,14))/V

+DI=

-DI=

DELTA DI=DI-(-DI)

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

please do the needful

Knowing these values on current tf chart is an advantage

thanks

You have to create a new object for each value you wish to display and then assign the value to the desired object.

You can take a look at this indicator (as an example) how multiple objects can be created and assigned values : https://www.mql5.com/en/forum/178698

andrich
33
andrich  
mladen:
zefx Try it out now : 123patternsv6.03_amp_mtf_nmc_1.mq4

Hi Mladen,

unfortunately still nothing.

Mladen Rakic
154349
Mladen Rakic  
zefx:
Hi Mladen, unfortunately still nothing.

That indicator (neither version 60.2 nor version 6.03) can not alert on current bar

There is a condition in the code of the both indicators that goes like this :

if(shift > 0)

That is preventing assignment of "dot" value to a current bar (and that way, alerts on a current bar). Version 6.02 even does not have a n option to alert on a current bar (check the options and you shall see it)

_________________

Anyway, here is a version that handles the alerts exactly the same way as the version 6.02 : 123patternsv6.03_amp_mtf_nmc_2.mq4

Genesisman
54
Genesisman  

Hi Guys,

I'm hoping you can help me out. I'm looking for any and all divergence indicators, that have arrows and popup alerts, signifying what pair it's alerting on. Thanks so much for your help.

genesisman

William Snyder
9492
William Snyder  
Genesisman:
Hi Guys,

I'm hoping you can help me out. I'm looking for any and all divergence indicators, that have arrows and popup alerts, signifying what pair it's alerting on. Thanks so much for your help.

genesisman

Hi Genesisman, check in this thread here: https://www.mql5.com/en/forum/175886/page13 is an example what's there.

amiralias
90
amiralias  

hi dear friends

i need an alarm (pop up and arrow) on mtf adx indicator in below condition :

+di>40 and -diadx

thanks a lot in advance .