After adding the new code the problem was solved.Sarj wrote: Fri Jan 06, 2023 4:12 am Hello Xard, Can you please fix the Xard Index. Thank you for all you've given
XARD: In the Xard Index Line code you have to add the different brokers sysmbol used for WS30
int init(){
if(SymbolPair=="")SymbolPair=Symbol();
if(StringSubstr(Symbol(),0,4)=="WS30") {angle_up=360; angle_dn=360;}
if(StringSubstr(Symbol(),0,4)=="US30") {angle_up=360; angle_dn=360;}
if(StringSubstr(Symbol(),0,2)=="DJ") {angle_up=360; angle_dn=360;}
if(StringSubstr(Symbol(),0,4)=="DE30") {angle_up=360; angle_dn=360;}
if(StringSubstr(Symbol(),0,5)=="US30m") {angle_up=360; angle_dn=360;}
add new line
if(StringSubstr(Symbol(),0,4)=="Insert new symbol") {angle_up=360; angle_dn=360;}
then compile and it should work
if(StringSubstr(Symbol(),0,5)=="US30z") {angle_up=360; angle_dn=360;}[/color]
"US30z" is changed to a different symbol of the broker