Sarj wrote: Fri Jan 06, 2023 2:33 pm Hi FourXXXX, Can you post an image of say EURUSD so I can see the XARD INDEX working. it's 3:31 am . Can't sleep![]()
Re: XARD - Simple Trend Following Trading System
12651nil desperandum
Sarj wrote: Fri Jan 06, 2023 2:33 pm Hi FourXXXX, Can you post an image of say EURUSD so I can see the XARD INDEX working. it's 3:31 am . Can't sleep![]()
Hi FourXXXX. Thanks for all the checks (even the ones I didn't ask for) you've done for me. You are a real bro. I will take to your advice. ThanksFourXXXX wrote: Fri Jan 06, 2023 11:45 am My US30 Symbol on Global Prime has been trading now for over 1.5 hours, your RoboForex Broker has not had a new bar on this symbol since 30 minutes before the US close. No wonder your open is different just change to a better Broker.
Try these two sites for planning your trading hours.Sarj wrote: Fri Jan 06, 2023 2:33 pm Hi FourXXXX, Can you post an image of say EURUSD so I can see the XARD INDEX working. it's 3:31 am . Can't sleep![]()
I have fixed index entry lines for all indices. You have been of great help to me. Thanks.FourXXXX wrote: Fri Jan 06, 2023 9:44 am I opened a demo account with your broker my broker was still trading 30 minutes after yours had stopped. Yes, the open price is different, I don't know what is going on there.
Anyway, I tried Xards fix but it did not change, I used this to get the US30 chart Index Entry to match mine.
if(StringSubstr(Symbol(),0,9)==".US30Cash") {angle_up=120; angle_dn=120;}
But this may or may not work for other brokers and symbols. As well as changing the angle value you need to enter the correct number of characters in the symbol name where I entered 9 as above.Code: Select all
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,9)==".US30Cash") {angle_up=120; angle_dn=120;} if(StringSubstr(Symbol(),0,5)=="US500") {angle_up=180; angle_dn=180;} if(StringSubstr(Symbol(),0,6)=="XAUUSD"){angle_up=180; angle_dn=180;} if(StringSubstr(Symbol(),0,5)=="DAX30") {angle_up=360; angle_dn=360;} if(StringSubstr(Symbol(),0,6)=="GBPUSD"){angle_up= 22.5; angle_dn= 22.5;} if(StringSubstr(Symbol(),0,6)=="GBPJPY"){angle_up= 22.5; angle_dn= 22.5;} if(StringSubstr(Symbol(),0,6)=="USOUSD"){angle_up= 67.5; angle_dn= 67.5;}
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
Hello FourXXX, I see you have it working
if(StringSubstr(Symbol(),0,6)=="EURUSD") {angle_up=12.5; angle_dn=12.5;}Sarj wrote: Sat Jan 07, 2023 1:42 am Hello FourXXX, I see you have it working, Can you show me the line code you used ?