Stochastic EA - page 19

 

I got the latest version in the first post.

Applied Robs settings of reinv 15 and lot 1 to 6 currency pairs on 30 mins.

One trade in 12 hr. Not the most active EA, but i'll let it run a bit longer.

 

Not enough money

Afte seting the lot size to 1 i'm getting the message not enough money.

I'm back to 0.1 lot size. Now waiting for the next trade to take place.

Lets see what happens. It's not trading enough just to keep this solitary EA.

 

Rob

Hi Rob;

How is your live trading working out with this EA?

 

Hi,

tried to use 3 different stochastic ea's downloaded here, the smiley is on however nothing happened for nearly 24 hours. Any idea of what can be fixed?

from the posts above I know it's not the most active ea, however in 24 hrs both 80 and 20 have been touched on EURUSD without any trade

 
kaamos:
Hi epsilon:

I took a little time and i made an expert using the conditions that you gave us.

I was trying to optimize it and looks promising. Later i will post some optimization results.

Enjoy it.

do reverse the handle of the an you will be goog rich man

 

thanks for this EA, I was searching for a stoch EA to backtest.

can you please tell me how to change the stochastic settings?

does it have the standard 14, 3, 5, ? it seems it doesnt use those settings.

what settings are you using to get that nice up move diagram?

what ever I use it just go down

 

My favourite chart

Rarely do I read all the comments on a thread but this was of interest.

I've downloaded V3 and V4 and will test them with a range bar (offline) indicator.

The advantage is that when stochs is over 80 it means either over bought or a trend. The skill is knowing which is the more likely.

I've attached a PDF to show the stochastics indicator that is currently used manually,

This is how I did it when I was trading - each bar is only 5 pips in the first illustration and 15 pips in the second - both using the same template.

The stochs triple indicator is two stochs superimposed and I have the buy/sell areas as +65 and 35 respectively. This is suitable for the settings used.

I didn't use it for OB or OS situations, I used it for getting into trades.

Retired now so hope this helps.

If it is successful, I'll post the template.

If anyone can code it into an alert or better still into an EA, that would be a bonus.

Regards

TEAMTRADER

Files:
 

Anyone know if this EA still works ? I'm testing it, no error but still no trades for 1 week.

I'm testing on EUR/USD.

 

Did a 5 digit and Ecn broker mod not able to back test to verify it works, but didn't change the buy sell routine, so it should work. Added some mickey mouse comments and you will need TimeGMT in your experts\include folder for this Ea to compile. If your broker uses an extra suffix or prefix in the currency pairs, for example "EURUSDi" ,then in external parameters suffix you would put i.

Was refreshing my memory about this Ea in the thread and there was a tester who had it on 9 pairs not sure the time frame though, and still not many trades.

PS) for some reason the TimeGMT include file compiled when i put it on my desktop so in case it doesn't work, below is the source.

//+------------------------------------------------------------------+

//| TimeGMT.mqh |

//| Paul Hampton-Smith |

//| paul1000@pobox.com

//+------------------------------------------------------------------+

/*

HOW TO USE THE TIMEGMT LIBRARY

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Place this TimeGMT.mqh file in your experts\include folder and do not compile

Add a line to your EA:

#include

Enable dll calls in MT4 using Tools->Options->Expert Advisers>Allow DLL imports

Functions now available in your EA will be:

datetime TimeGMT() returns GMT at last tick

double TimeZoneLocal() returns local timezone in hours, adjusting for DST

double TimeZoneServer() returns server timezone in hours, adjusting for DST

*/

/////////////////////////////////////////////////////////////////////////////

#import "kernel32.dll"

int GetTimeZoneInformation(int& TZInfoArray[]);

#import

#define TIME_ZONE_ID_UNKNOWN 0

#define TIME_ZONE_ID_STANDARD 1

#define TIME_ZONE_ID_DAYLIGHT 2

// Local timezone in hours, adjusting for daylight saving

double TimeZoneLocal()

{

int TZInfoArray[43];

switch(GetTimeZoneInformation(TZInfoArray))

{

case TIME_ZONE_ID_UNKNOWN:

Print("Error obtaining PC timezone from GetTimeZoneInformation in kernel32.dll. Returning 0");

return(0);

case TIME_ZONE_ID_STANDARD:

return(TZInfoArray[0]/(-60.0));

case TIME_ZONE_ID_DAYLIGHT:

return((TZInfoArray[0]+TZInfoArray[42])/(-60.0));

default:

Print("Unkown return value from GetTimeZoneInformation in kernel32.dll. Returning 0");

return(0);

}

}

// Server timezone in hours

double TimeZoneServer()

{

int ServerToLocalDiffMinutes = (TimeCurrent()-TimeLocal())/60;

// round to nearest 30 minutes to allow for inaccurate PC clock

int nHalfHourDiff = MathRound(ServerToLocalDiffMinutes/30.0);

ServerToLocalDiffMinutes = nHalfHourDiff*30;

return(TimeZoneLocal() + ServerToLocalDiffMinutes/60.0);

}

// Uses local PC time, local PC timezone, and server time to calculate GMT time at arrival of last tick

datetime TimeGMT()

{

// two ways of calculating

// 1. From PC time, which may not be accurate

// 2. From server time. Most accurate except when server is down on weekend

datetime dtGmtFromLocal = TimeLocal() - TimeZoneLocal()*3600;

datetime dtGmtFromServer = TimeCurrent() - TimeZoneServer()*3600;

// return local-derived value if server value is out by more than 5 minutes, eg during weekend

if (dtGmtFromLocal > dtGmtFromServer + 300)

{

return(dtGmtFromLocal);

}

else

{

return(dtGmtFromServer);

}

}

Files:
timegmt.mqh  3 kb
stoch_ea.gif  24 kb
 

Anyone trading this EA?

Is anyone trading this EA? I was thinking about trying this on range bars like someone said earlier. Any results?

Thanks