Attachments forums

List of attachments posted on this forum.


All files on forums: 136137

Re: XARD - Simple Trend Following Trading System

Jedidiah, Fri Jan 06, 2023 11:11 pm

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 :thumbup:

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
After adding the new code the problem was solved.

if(StringSubstr(Symbol(),0,5)=="US30z") {angle_up=360; angle_dn=360;}[/color]

"US30z" is changed to a different symbol of the broker
All files in topic