Page 1128 of 1980

Re: XARD - Simple Trend Following Trading System

Posted: Thu Sep 15, 2022 4:34 am
by normannasty
traderokey wrote: Sun Sep 11, 2022 3:57 am Hi XARD,

I've been using XU v6 version because most of the later versions give me a "Zero divide" error. Could you please help look at the code? I understand that only a few people are getting this error but it will be nice if you can add a zero divide constraint to the codes. It seems "XU v39-XARD UNIVERSE" and perhaps the Clock might be the culprits. I recall Mladen suggesting the code snippet below as a possible fix;

"Mladen Rakic 2009.09.18 17:09 #7
...
Zero divide error is exclusively a coding error. Metatrader does not provide a trap (or rather, that message is the trap, and since by definition divide by zero yields to undefined, they chose the terminate the code execution in such cases) for such errors, so if not dealt with within the code it will happen, sooner or later

Find in the code every occurrence of division and add before every division a zero condition checking
Something like this :"

Code: Select all

 if (divisor!=0)

result = dividend/divisor;

else result = 0; // or whatever result you prefer here since the result

// of division by 0 by definition is undefined

XARD: Thanks I will give it a try when I am sober
I got also the same error. Until now its worked well but once its not drawing the candles in realtime, I need to change timeframe back and forth to see the candle move. This came today, with 2 different brokers.

XARD: I know exactly what the error problem is. It's my shit coding.
At the weekend if I am sober I will take a look at XU v6 and update it to my current setup (without the OpenPipS section and post it for ALL.

Re: XARD - Simple Trend Following Trading System

Posted: Thu Sep 15, 2022 4:55 am
by xard777
Finished for today. I see that I came out of that trade too soon as well, no need to be greedy if I am still hitting my targets.

Re: XARD - Simple Trend Following Trading System

Posted: Thu Sep 15, 2022 11:21 am
by Nero
xard777 wrote: Thu Sep 15, 2022 4:55 am
Image
may i know your broker please, my broker does not carry your index pair,
thanks so much and more power to you and your family.
XARD: https://www.gomarkets.eu/

Re: XARD - Simple Trend Following Trading System

Posted: Thu Sep 15, 2022 2:20 pm
by Mickey Abi
normannasty wrote: Thu Sep 15, 2022 4:34 am
XARD: I know exactly what the error problem is. It's my shit coding.
At the weekend if I am sober I will take a look at XU v6 and update it to my current setup (without the OpenPipS section and post it for ALL.
If possible, Kindly remember to make the MA's of 5, 15, 30 mins also sync with the new upgrade..

Kind Regards

Re: XARD - Simple Trend Following Trading System

Posted: Thu Sep 15, 2022 4:14 pm
by LJC
Mickey Abi wrote: Thu Sep 15, 2022 2:20 pm If possible, Kindly remember to make the MA's of 5, 15, 30 mins also sync with the new upgrade..

Kind Regards
FYI, you can actually do that yourself if you want the ma's to sync across the tf required. just use xu-38 and change the ma's to match.

Re: XARD - Simple Trend Following Trading System

Posted: Thu Sep 15, 2022 10:04 pm
by xard777
I like watching this guy talk about Tesla...
Xard777

Re: XARD - Simple Trend Following Trading System

Posted: Thu Sep 15, 2022 10:53 pm
by xard777
The US session has not even started yet...
Xard777

Re: XARD - Simple Trend Following Trading System

Posted: Thu Sep 15, 2022 11:42 pm
by phnthnhnm
Dear Xard,
Do you think it is possible to make EA with your system?
Thank you.

XARD: Nope, I think trading is a gut feeling. The Dow shot down to make an intra-day low then started to go up and gapped and did not fill in the gap and kept going. Too many variables

Re: XARD - Simple Trend Following Trading System

Posted: Fri Sep 16, 2022 12:58 am
by djorshuar
Already determine my daily bias before the trigger, I only observe the price close below the daily open line and wait for my T1MA change colour to my desired direction and fire on retest

Re: XARD - Simple Trend Following Trading System

Posted: Fri Sep 16, 2022 3:59 am
by Chickenspicy
dearest Xard have yoy already tried mtf zz/semaphore?
XARD: I really like the one that I am using just now.