Re: XARD - Simple Trend Following Trading System
Posted: Fri Jan 06, 2023 8:06 am
Thank you Xard, but how do I decide on what angle to use for the currencies ? is it 22.5 default as seen in mql file ?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