It made 44 pips profit on EurUsd.
- #28
- Jun 21, 2011 3:12am Jun 21, 2011 3:12am
- Joined Jun 2010 | Status: Trader | 1,085 Posts
No one wants to be defeated~
SSS EA v1.0 - Auto Trader Bot 623 replies
Manual (non auto) Fibonacci retracement tool needed 9 replies
Kevinator 5m retracement-Live trading 2,335 replies
SteveHopwood EAs 4 replies
Auto Trade Tradestation Strategy to GFT Forex Account 3 replies
double prevTtfStoch = iStochastic(Symbol(),60,14,3,3,MODE_EMA,0,0,1);
double currTtfStoch = iStochastic(Symbol(),60,14,3,3,MODE_EMA,0,0,0);
double prevHtfStoch = iStochastic(Symbol(),240,14,3,3,MODE_EMA,0,0,1);
double currHtfStoch = iStochastic(Symbol(),240,14,3,3,MODE_EMA,0,0,0); double prevTtfStoch = iStochastic(Symbol(),60,14,3,3,[b]MODE_LWMA,1[/b],0,1);
double currTtfStoch = iStochastic(Symbol(),60,14,3,3,[b]MODE_LWMA,1[/b],0,0);
double prevHtfStoch = iStochastic(Symbol(),240,[b]10[/b],3,3,[b]MODE_LWMA,1[/b],0,1);
double currHtfStoch = iStochastic(Symbol(),240,[b]10[/b],3,3,[b]MODE_LWMA,1[/b],0,0); DislikedHi Steve,
I'm not sure if the following makes any difference, but I noticed in the ReadIndicatorValues() function you are using:
...instead of...Inserted Codedouble prevTtfStoch = iStochastic(Symbol(),60,14,3,3,MODE_EMA,0,0,1); double currTtfStoch = iStochastic(Symbol(),60,14,3,3,MODE_EMA,0,0,0); double prevHtfStoch = iStochastic(Symbol(),240,14,3,3,MODE_EMA,0,0,1); double currHtfStoch = iStochastic(Symbol(),240,14,3,3,MODE_EMA,0,0,0);
[code]
double prevTtfStoch = iStochastic(Symbol(),60,14,3,3,MODE_LWMA,1,0,1);...Ignored
That's it for now as I am busy for the rest of today. Tomorrow I will look at coding the MOM trades.
if(CciVal > 0 && currTtfStoch > prevTtfStoch && Ask < TMAMain)
{
if (UseH4Stoch)
{
if (currHtfStoch [b]<[/b] prevHtfStoch) return;
}//if (UseH4Stoch)
LongSignal = true;
return;
}//if(v > 0 && (currTtfStoch > prevTtfStoch && currHtfStoch > prevHtfStoch))
if(CciVal < 0 && currTtfStoch < prevTtfStoch && Bid > TMAMain)
{
if (UseH4Stoch)
{
if (currHtfStoch [b]>[/b] prevHtfStoch) return;
}//if (UseH4Stoch)
ShortSignal = true;
return;
}//if(v > 0 && (currStoch > prevStoch)) DislikedI have the EA on more than 10 pairs for more than 5 hours without single trade, tried with ECN false/true and nothing, however the retrace finder indi. is alerting.Ignored
DislikedThanks. I am not entirely sure which planet I was infesting when I coded this.
Update in post 1, with some revisions in line with simpleguy's summary. Please re-read post 1 for details.
Ignored
DislikedOne section of code didn't seem right to me... the less than / greater than signs are back to front when testing the H4 current/prev stoch values:Ignored