ShelleyJem. Fantastic collision of accident and analysis

Share your 10.x automated traders here.
Locked
michaelhryu
Trader
Posts: 33
Joined: Wed May 09, 2012 1:32 pm

Re: ShelleyJem. Fantastic collision of accident and analysis

Post by michaelhryu »

SteveHopwood wrote:You guys do realise that there is still a problem with the rapid opening/closing of orders thingy, and that I have yet to solve this?

Just making sure, that's all. At some point, this will re-emerge. I know this, because it happened on my demo.

:D
This happened to ShelleyJem trades on my Cowboy IBFX demo again last night. No such incident for a week or so, though. Hopefully, you will be able to solve the problem shortly!
User avatar
Jemook
Trader
Posts: 1085
Joined: Thu May 10, 2012 10:19 am
Location: Bondi, Sydney, Australia

Re: ShelleyJem. Fantastic collision of accident and analysis

Post by Jemook »

Steve - feel free to unsticky this. I'll be doing my basket discussion in the new thread.
Please note I am no longer affiliated with Global Prime. I've moved on to my next adventure with Afterprime.

Catch me here: https://www.afterprime.com
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Re: ShelleyJem. Fantastic collision of accident and analysis

Post by SteveHopwood »

Jemook wrote:Steve - feel free to unsticky this. I'll be doing my basket discussion in the new thread.
Done. I have made your new thread a sticky instead. I would have done so before but have had a busy few days and missed this post.

For latecomers, the thread is at http://www.stevehopwoodforex.com/phpBB3 ... 542#p16542

:D
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Re: ShelleyJem. Fantastic collision of accident and analysis

Post by SteveHopwood »

V 1i is in post 1.

spotdespot sent me this pm on Friday:
"Steve,

One thought for you - the following declaration is in all the Shelley Ea's:

extern int JumpingStopPips;//Zero to disable

It never gets initialized and shows in the EA properties when added as Zero but is it????

I have been changing it to:

extern int JumpingStopPips=0;//Zero to disable

and recompiling and have never had the rapid open/close thing but I hadn't really connected the two. I'm still not sure there is a connection but it was worth a thought!

Cheers,
Dave."

This was an oversight on my part. Failing to initialise variables explicitly causes problems in mql4, despite the documentation claiming that integers are set to zero by default. Those of you interested in continuing your experimentation need to either make the change in the source yourself, or download the latest version.

Thanks Dave.

:D
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
franzzz
Posts: 1
Joined: Wed Apr 18, 2012 9:52 pm

Re: ShelleyJem. Fantastic collision of accident and analysis

Post by franzzz »

Hello all,

This is my first post, but i've been following this forum for some time now, and there's some very good stuff here.

My humble participations is about this question:
effluvium wrote: 4) Why displaying properties of this EA is disabled? Try urself to right click on the chart , ExpertAdvisors/Properties ====> NOTHING there. Why ? (it's not solution to remove EA completly then reattach it, You agree ?)
I've found that in the documentation (http://docs.mql4.com/runtime/start/) :
At incoming of new quotes, the start() function of the attached experts and custom indicators will be executed. If the start() function launched at the preceding quote was running when a new quote came, the new quote will be skipped by the expert. All new quotes income while the program was being executed are skipped by the program until the current execution of the start() function has been completed. After that, the start() function will be run only when a successive new quote incomes. For custom indicators, the start() function will be launched for recalculation after the current chart symbol or timeframe has been changed independently on new quotes incoming. The start() function will not be run when the expert properties window is open. The latter cannot be opened during the expert execution.
So this is not a bug, it's a feature. It is because of the while loop in the start() function.

One way around that is to modify the code in the start() function to add a break when the experts are disabled:

Code: Select all

      if (IsExpertEnabled() == false) 
      {
         Comment(Gap, "--------------EXPERTS DISABLED--------------");
         break;
         while(!IsExpertEnabled()) Sleep(100);
      }//if (IsExpertEnabled() == false) 

So whenever you need to modify the properties, you hit the big "Expert Advisors" button (it will stop all experts at the same time), then you can open the properties window.

Hope that helps...

Keep up the good work guys :mrgreen:

Francis.
User avatar
SteveHopwood
Owner
Posts: 9904
Joined: Tue Nov 15, 2011 8:43 am
Location: Misterton - an insignificant village in England. Very pleasant to live in.

Re: ShelleyJem. Fantastic collision of accident and analysis

Post by SteveHopwood »

taipan99 wrote:I have encountered some error using shelleyjem ver. li on demo.

Hope this error can be fixed shortly.

06:02:56 ShelleyJem AUDUSD,M15: open #184081 buy 1.00 AUDCHF at 1.00731 ok
06:02:56 ShelleyJem AUDUSD,M15: invalid double number as parameter 2 for GlobalVariableSet function
06:02:57 ShelleyJem AUDUSD,M15: open #184082 sell 1.00 EURAUD at 1.19274 ok
06:02:57 ShelleyJem AUDUSD,M15: invalid double number as parameter 2 for GlobalVariableSet function
06:02:57 ShelleyJem AUDUSD,M15: open #184083 sell 1.00 EURCAD at 1.24419 ok
06:02:57 ShelleyJem AUDUSD,M15: invalid double number as parameter 2 for GlobalVariableSet function
06:02:58 ShelleyJem AUDUSD,M15: open #184084 sell 1.00 EURGBP at 0.78517 ok

taipn99
Forget this one - we have all moved on. http://www.stevehopwoodforex.com/phpBB3 ... f=44&t=658

:D
Read the effing manual, ok?

Afterprime is the official SHF broker. Read about them at https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?p=175790#p175790.

I still suffer from OCCD. Good thing, really.

Anyone here feeling generous? My paypal account is always in the market for a tiny donation. pianodoodler@hotmail.com is the account.

To see The Weekly Roundup of stuff you guys might have missed Click here

My special thanks to Thomas (tomele) for all the incredible work he does here.
Locked

Return to “10.x EA forum”