Add Buy and Sell Signal from Histogram Indicator

 

I have tried to add Buy and Sell Signal, pop up alert, and push notification from Histogram Indicator.

Following line have errors :

string fullMsg = Symbol() + " + IntegerToString(Period()) + " - " + msg;


The errors after compiling :

'' - double quotes are needed    
'-' - illegal operation use 


Much appreciate for your kind help to fix it.

Thank you.

 
SUYANTO_SE:

I have tried to add Buy and Sell Signal, pop up alert, and push notification from Histogram Indicator.

Following line have errors :

string fullMsg = Symbol() + " + IntegerToString(Period()) + " - " + msg;


The errors after compiling :

'' - double quotes are needed    
'-' - illegal operation use 


Much appreciate for your kind help to fix it.

Thank you.

string fullMsg = Symbol() + " " + IntegerToString(Period()) + " - " + msg; // assuming that msg is a string
 
Ryan L Johnson #:

Thank you very Much Ryan.

There is no error now.

I will continue for back testing.