Hello
I need your help in programming a (pre determined initial and ending dates) linear regression channel with (sound alert, notification and send email) in all cases of crossing the mid line of the channel or moving outside.
thanks in advance
What have you tried so far ?
int start()
{
int counted_bars=IndicatorCounted();
ObjectCreate(TLineName, OBJ_REGRESSION, 0, Time[25], Bid, Time[0], Ask);
ObjectSet(TLineName, OBJPROP_STYLE, LineStyle);
ObjectSet(TLineName, OBJPROP_COLOR, LineColor);
double val=ObjectGetValueByShift(TLineName, 0);
if (Bid-AlertPipRange*Point <= val && Bid+AlertPipRange*Point >= val) PlaySound(AlertWav);{
PlaySound(AlertWav);
SendMail("TLine Alert","T Line Alert Pip Range");
SendNotification("T LIne Alert Pip Range");
}
int start()
{
int counted_bars=IndicatorCounted();
ObjectCreate(TLineName, OBJ_REGRESSION, 0, Time[25], Bid, Time[0], Ask);
ObjectSet(TLineName, OBJPROP_STYLE, LineStyle);
ObjectSet(TLineName, OBJPROP_COLOR, LineColor);
double val=ObjectGetValueByShift(TLineName, 0);
if (Bid-AlertPipRange*Point <= val && Bid+AlertPipRange*Point >= val) PlaySound(AlertWav);{
PlaySound(AlertWav);
SendMail("TLine Alert","T Line Alert Pip Range");
SendNotification("T LIne Alert Pip Range");
}
this was a trend line indicator with alert :D untill i tried to editing it !
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hello
I need your help in programming a (pre determined initial and ending dates) linear regression channel with (sound alert, notification and send email) in all cases of crossing the mid line of the channel or moving outside.
thanks in advance