Re: XARD - Simple Trend Following Trading System

#6515
The benefits of using the portrait view screen

You can code on one part of the screen while seeing the result on the chart below... nice.
I tested the Daily percent figure (making sure that it went to zero the following day).
Works a treat.
Xard777
Editor + Chart.png


Re: XARD - Simple Trend Following Trading System

#6517
Yuri_I wrote:
Thu Mar 18, 2021 1:22 am
Open the properties of this indicator and write the symbols as they appear in your MT4. I think so. Why once again strain a person.
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], "WS3", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "DJ", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "DOW", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "US3", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "#US", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "US5", 0) != -1 ) { Precision = 10; nDigits = 1+digits;}
else if( StringFind( aPairs[x], "S&P", 0) != -1 ) { Precision = 10; nDigits = 1+digits;}
else if( StringFind( aPairs[x], "SP5", 0) != -1 ) { Precision = 10; nDigits = 1+digits;}
else if( StringFind( aPairs[x], "SPX", 0) != -1 ) { Precision = 10; nDigits = 1+digits;}
else if( StringFind( aPairs[x], "UST", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "NDX", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "US1", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "NAS", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "US2", 0) != -1 ) { Precision = 10; nDigits = 1+digits;}
else if( StringFind( aPairs[x], "HK5", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "HKC", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "NIK", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "JP2", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "JPN", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "CHI", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "CAC", 0) != -1 ) { Precision = 1; nDigits = 1+digits;}
else if( StringFind( aPairs[x], "FRA", 0) != -1 ) { Precision = 1; nDigits = 1+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 if( StringFind( aPairs[x], "ITA", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else if( StringFind( aPairs[x], "ESP", 0) != -1 ) { Precision = 1; nDigits = 1+digits;}
else if( StringFind( aPairs[x], "SPA", 0) != -1 ) { Precision = 1; nDigits = 1+digits;}
else if( StringFind( aPairs[x], "FTS", 0) != -1 ) { Precision = 1; nDigits = 1+digits;}
else if( StringFind( aPairs[x], "UK1", 0) != -1 ) { Precision = 1; nDigits = 1+digits;}
else if( StringFind( aPairs[x], "UKO", 0) != -1 ) { Precision = 1000; nDigits = 3+digits;}
else if( StringFind( aPairs[x], "USO", 0) != -1 ) { Precision = 1000; nDigits = 3+digits;}
else if( StringFind( aPairs[x], "WTI", 0) != -1 ) { Precision = 1000; nDigits = 3+digits;}
else if( StringFind( aPairs[x], "BRE", 0) != -1 ) { Precision = 1000; nDigits = 3+digits;}
else if( StringFind( aPairs[x], "XAG", 0) != -1 ) { Precision = 100; nDigits = 3+digits;}
else if( StringFind( aPairs[x], "SIL", 0) != -1 ) { Precision = 100; nDigits = 3+digits;}
else if( StringFind( aPairs[x], "NAT", 0) != -1 ) { Precision = 100; nDigits = 3+digits;}
else if( StringFind( aPairs[x], "XAU", 0) != -1 ) { Precision = 10; nDigits = 1+digits;}
else if( StringFind( aPairs[x], "GOL", 0) != -1 ) { Precision = 10; nDigits = 1+digits;}
else if( StringFind( aPairs[x], "BTC", 0) != -1 ) { Precision = 1; nDigits = 0+digits;}
else { Precision = 10000; nDigits = 4+digits;}

Re: XARD - Simple Trend Following Trading System

#6519
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...

GER30-i.PNG

Update
Whoop whoop!! Thanks Xard. It works perfectly plus the Daily percent feature!
XU v3-Panel.ex4
(62.43 KiB) Downloaded 128 times

Re: XARD - Simple Trend Following Trading System

#6520
xard777 wrote:
Thu Mar 18, 2021 9:52 pm
Not really trading today, just testing stuff.
You can see the Daily & Current percent working OK.
Now running three sets of Triangles TF-1, TF0, and TF+1
Xard777

The Daily percent feature works a treat. It's going to be so helpful to me especially to remind me to stop and not be greedy...

Daily Percent feature.PNG


  1. Similar Topics

    1. 273 Replies
      33461 Views
    2. XU-MA Indicator Buffers (Automating Xard System)

      1 Replies 833 Views

      by Jagel, Mon Dec 07, 2020 10:37 am in Coding Help

      1 Replies
      833 Views
    3. Trend Lock System

      2 Replies 818 Views

      by menber100, Sat Aug 22, 2020 8:50 am in Coding Help

      2 Replies
      818 Views
    4. H1 Trend Swing/Scalp system

      8 Replies 4013 Views

      by mitalpatel, Sat Jun 20, 2020 6:26 pm in Trading Systems

      8 Replies
      4013 Views

Return to “Trading Systems”