Alert() can take multiple parameters . . . check the Dcoumentation
SendNotification() can only take one . . . check the Documentation
Use StringConcatenate() to combine your parameters into one string . . .
Alert() can take multiple parameters . . . check the Dcoumentation
SendNotification() can only take one . . . check the Documentation
Use StringConcatenate() to combine your parameters into one string . . .
Don't know how i can use this information?
If I try to modify the script allert, the Indicator doesn't work annymore.
Show your modification please.
I replaced "Alert" with "SendNotification"
if ((fasterEMAnow > slowerEMAnow) && (fasterEMAprevious < slowerEMAprevious) && (fasterEMAafter > slowerEMAafter)) { CrossUp[i] = Low[i] - Range*0.5; } else if ((fasterEMAnow < slowerEMAnow) && (fasterEMAprevious > slowerEMAprevious) && (fasterEMAafter < slowerEMAafter)) { CrossDown[i] = High[i] + Range*0.5; } if (SoundON==true && i==1 && CrossUp[i] > CrossDown[i] && alertTag!=Time[0]){ SendNotification("EMA Cross Trend going Down on ",Symbol()," ",Period()); alertTag = Time[0]; } if (SoundON==true && i==1 && CrossUp[i] < CrossDown[i] && alertTag!=Time[0]){ SendNotification("EMA Cross Trend going Up on ",Symbol()," ",Period()); alertTag = Time[0]; }
I replaced "Alert" with "SendNotification"
Alert() can take multiple parameters . . . check the Dcoumentation
SendNotification() can only take one . . . check the Documentation
Use StringConcatenate() to combine your parameters into one string . . .
O.K. I read. But where do i integrate this? I have no object!
double lastclose=Close[0]; if(lastclose>my_signal) SendNotification("Price changed "+DoubleToStr(lastclose,Digits));
O.K. I read. But where do i integrate this? I have no object!
You have this:
SendNotification( "EMA Cross Trend going Down on ", Symbol(), " ", Period() ); // and this SendNotification( "EMA Cross Trend going Up on ", Symbol(), " ", Period() );
the comma , separates the parameters you are passing to the function, Alert() can take several parameters, so your code works with Alert() . . . . SendNotification() can only take one parameter so you have to combine the parameters in the brackets ( ) the examples in the documentation show you how to do this . . . you can use + or StringConcatenate()
You have this:
the comma , separates the parameters you are passing to the function, Alert() can take several parameters, so your code works with Alert() . . . . SendNotification() can only take one parameter so you have to combine the parameters in the brackets ( ) the examples in the documentation show you how to do this . . . you can use + or StringConcatenate()
Have to much work to check out this now.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Dear together,
I have a Problem to get my script alert on my mobile by SendNotification.
The Indicator works well with an Arrow and an sound, but not wirth notification.
Test Notification works all well.
If I try to modify the script allert, the Indicator doesn't work annymore.
Thanks to all!!!
Olli
PS: Here is the Script for the Indicator alert: