Attachments forums

List of attachments posted on this forum.


All files on forums: 163447

Re: XARD - Simple Trend Following Trading System

waal69, Fri Jan 06, 2023 10:58 pm

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;}

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;}

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.
Image
I have fixed index entry lines for all indices. You have been of great help to me. Thanks.
All files in topic