Attachments forums

List of attachments posted on this forum.


All files on forums: 135741

Re: XARD - Simple Trend Following Trading System

traderokey, Thu Mar 18, 2021 11:35 pm

traderokey wrote: Thu Mar 18, 2021 10:08 pm That post was not meant for you, so no need for your response. I've been here for a little while now and I don't make unneccesary requests. Xard understands what I mean. The price display on the XU Panel comes out with many decimal places. This is because my broker symbol is "GER30.i" and Xard doesn't have that in his code. I could easily fix that if I had the .mq4 file.

XARD: I already have GER in the code, it should work as GER30
if( StringFind( aPairs[x], "JPY", 0) != -1 ) { Precision = 100; nDigits = 2+digits;}
else if( StringFind( aPairs[x], "DAX", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "DE" , 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "GER", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "#GE", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "DE3", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else { Precision = 10000; nDigits = 4+digits;}

Thanks Xard for checking this out. It displays 4 decimal places on my platform but that's just aesthetic issue, I can definitely live with that. Thanks again

XARD: OOps! My Bad, I thought it was the Dash that was to be amended. It is the Panel. OK, try this...


Update
Whoop whoop!! Thanks Xard. It works perfectly plus the Daily percent feature!
All files in topic