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

My shell EA code
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=79
Page 14 of 23
Author:  SteveHopwood [ Mon Aug 18, 2014 9:38 am ]
Post subject:  My shell EA code

Latest versions of my shells are in post 1. They include Paul's enhanced chart feedback code. Read the section 'Enhanced chart feedback' for instructions about adding this code to your existing EA's.

:xm:
Author:  mobthehop [ Tue Aug 19, 2014 1:19 am ]
Post subject:  My shell EA code

Hi Steve, let me be the first to thank you for your work and sharing the upgraded shell... Cheers
Author:  SteveHopwood [ Tue Aug 19, 2014 10:02 pm ]
Post subject:  My shell EA code

mobthehop ยป Tue Aug 19, 2014 1:19 am wrote:Hi Steve, let me be the first to thank you for your work and sharing the upgraded shell... Cheers
You could not be more welcome mop. The likes of Paul send me stuff because they know I will share it widely. I love it when that happens.

:xm:
Author:  SteveHopwood [ Sat Sep 06, 2014 1:19 pm ]
Post subject:  My shell EA code

Latest versions of the three main shells and user guide are in post 1.

Most of the changes are cosmetic because I have re-formatted code snippets to suite my taste. I have renamed the old init(), deinit() and start() functions to reflect the changes to these in CrapQl5 and included an explanation of TradingTimeFrame and how I use it.

No earth-shattering changes though, so not a vital re-download.

:xm:
Author:  SteveHopwood [ Thu Sep 18, 2014 11:38 am ]
Post subject:  My shell EA code

Latest versions of the 3 main shells are in post 1, with that useful little chart screenshot function I described in the FB thread.

:xm:
Author:  SteveHopwood [ Thu Sep 18, 2014 12:51 pm ]
Post subject:  My shell EA code

I forgot to add a coloured arrow for the trade closure. I see two downloads of the shells from post 1 before I added the fixed code, so those two people might want to change
bool result = OrderClose(ticket, OrderLots(), OrderClosePrice(), 1000, CLR_NONE);

to

bool result = OrderClose(ticket, OrderLots(), OrderClosePrice(), 1000, clrBlue);

to make it more obvious on the chart snapshot the ea will take.

:xm:
Author:  mobthehop [ Fri Sep 19, 2014 2:40 am ]
Post subject:  My shell EA code

Steve,

thanks a lot....

Quick question - any plans to release a generic multi-pair EA shell... Am trying to adapt one of your recent projects but am struggling somewhat....

Cheers
Author:  SteveHopwood [ Sat Sep 20, 2014 1:04 pm ]
Post subject:  My shell EA code

It seems as though turning off AutoTrading does not actually stop an EA any more, so I added this snippet to the start of OnTick in the latest versions in post 1:

Code: Select all

//Those stupid sods at MetaCrapper have ensured that stopping an ea by diabling AutoTrading no longer works. Ye Gods alone know why.
   if (!IsExpertEnabled() )
   {
      Comment("                          EXPERTS DISABLED");
      return;
   }//if (!IsExpertEnabled() )
   
Mop, next time my occd needs a good scratch and I have nothing else to do, I will develop the multi-pair shell.

:xm:
Author:  SteveHopwood [ Sat Oct 04, 2014 2:12 pm ]
Post subject:  My shell EA code

Latest versions of the three shells I still use are in post 1 - a few bits of tidying up here and there.

For the guts of the update, read 'Closing/modifying/deleting trades' and 'Matts Order Reliable Code' on page 1.

:xm:
Author:  SteveHopwood [ Sun Oct 05, 2014 11:06 am ]
Post subject:  My shell EA code

I realised there is a better way of protecting ourselves from the cretins breaking Matt's code. Go back to the section about Matt's Order Reliable code in post 1 if you downloaded the updates before the time stamp on this post.

:xm:
All times are UTC Page 14 of 23