Alert when closed price >= X value

 
Hi,

Let say on 1 hour chart,
Can someone do an alert when closed price >= X value .
 
rolypoly:
Hi,

Let say on 1 hour chart,
Can someone do an alert when closed price >= X value .

You may try,

double Previous_bar_close = iClose(NULL,PERIOD_H1, 1);

if(Previous_bar_close >= Xvalue )

do something!

else

do something else!




Hope it works :)

 

Hi,



I have tried.. i think i am missing a few essential things.

Would you mind help do a quick code for me?


Need to have alert on close of candlestick on the current timeframe i am viewing.

 
Hi guys,

I need some help to code certain alert.

Reward: Free 1 month of vps hosting


MT 4 will play alert sound like for 5 times.. not forever.

Alert 1:

on close of candlestick. (can be on any timeframe where i am currently on)
if the closed price of candlestick > or < than my specific price i setup to alert on.

Alert 2.
on close of candlestick.
if ema 100's price > or < than my specific price i setup to alert on.