stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

ShelleyJem. Fantastic collision of accident and analysis
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=610
Page 20 of 20
Author:  michaelhryu [ Thu Jun 21, 2012 11:56 pm ]
Post subject:  Re: ShelleyJem. Fantastic collision of accident and analysis

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!
Author:  Jemook [ Fri Jun 22, 2012 2:10 am ]
Post subject:  Re: ShelleyJem. Fantastic collision of accident and analysis

Steve - feel free to unsticky this. I'll be doing my basket discussion in the new thread.
Author:  SteveHopwood [ Sat Jun 23, 2012 11:53 pm ]
Post subject:  Re: ShelleyJem. Fantastic collision of accident and analysis

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
Author:  SteveHopwood [ Sun Jun 24, 2012 7:59 am ]
Post subject:  Re: ShelleyJem. Fantastic collision of accident and analysis

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
Author:  franzzz [ Wed Jun 27, 2012 12:53 pm ]
Post subject:  Re: ShelleyJem. Fantastic collision of accident and analysis

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.
Author:  SteveHopwood [ Wed Jul 18, 2012 10:21 pm ]
Post subject:  Re: ShelleyJem. Fantastic collision of accident and analysis

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
All times are UTC Page 20 of 20