Home About Contact
ForexForums.org




Reply
Old 04-23-2008, 10:49 PM   1 links from elsewhere to this Post. Click to view. #21 (permalink)
Administrator
 
kokas's Avatar
 
Join Date: Sep 2006
Location: Portugal
Posts: 507
Quote:
Originally Posted by Dr Hackenbush View Post
Hi

I think you need to review the 'isposition' function. It will need to be generalised for all currency pairs. At the moment there is a hard coded multiple (90) and presumption about the POINT size. I expect you've tinkered this to suit a particular pair while developing EA.

Also it is unbalanced in terms of reference to MODE_ASK for both buy and sell (subsequent) entries.

Without looking too closely are you not over exposed by distant TP. I guess this is in reality not a biggy as the fast signal would force an exit before it got too bad.

Keep up good work, thanks for sharing.

bool IsPosition(double inRange)
{
int totalorders = OrdersTotal();
for(int i = 0;i < totalorders;i++)
{
OrderSelect(i, SELECT_BY_POS);
if ((OrderSymbol() == Symbol()) && (OrderMagicNumber() == Magic))
{
int type = OrderType();

if ((MathAbs(OrderOpenPrice() - MarketInfo(Symbol(),MODE_ASK))*90) < (inRange))
{
if (type == OP_BUY || type == OP_SELL)
{
return(true);
}
}
}
}
return(false);
}

Regarding this function what changes do you recommend?

Many thanks
roger
kokas is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Old 04-24-2008, 12:55 PM   #22 (permalink)
Administrator
 
kokas's Avatar
 
Join Date: Sep 2006
Location: Portugal
Posts: 507
SuperStochs v3

Ok, here you have the new version of SuperStochs,

It has a EMA filter, I'm running an optimization now, so maybe later I will post some better settings, I'm running the optimization on EURUSD, both long and short with 90% quality, if someone could run this on other pairs it would be great.

It has also a Maxtrades where you can setup the maximum number of trades per pair.

Roger
Attached Files
File Type: mq4 SuperStochs v3.mq4 (10.2 KB, 245 views)
kokas is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-24-2008, 02:44 PM   #23 (permalink)
Member
 
Join Date: Oct 2006
Posts: 40
Kokas

excuse my english

i ask the link on FF

muchas gracias
juanche is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-24-2008, 07:48 PM   #24 (permalink)
Junior Member
 
Join Date: Jan 2007
Posts: 10
Quote:
Originally Posted by kokas View Post
... I'm running the optimization on EURUSD, both long and short with 90% quality, if someone could run this on other pairs it would be great.
Hello, what does it mean, 90% quality? Is that an optimization parameter that one can select somewhere, and if so, why did you choose that value?

I am trying it with 2 windows for each pair, one "short only" and one "long only". The use of a different "magic number" for each direction keeps the different position trades under control, and allows for different optimization parameters for short and long trades if needed, since the EURUSD is clearly in an intermediate and long-term uptrend.

Thank you.
henrietta is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-25-2008, 03:38 PM   #25 (permalink)
Junior Member
 
Join Date: Apr 2008
Posts: 3
Thanks for the EA kokas. Is the MoneyManagement function working for the version3? I set the risks but its always fixed lots...

kk

Quote:
Originally Posted by kokas View Post
Ok, here you have the new version of SuperStochs,

It has a EMA filter, I'm running an optimization now, so maybe later I will post some better settings, I'm running the optimization on EURUSD, both long and short with 90% quality, if someone could run this on other pairs it would be great.

It has also a Maxtrades where you can setup the maximum number of trades per pair.

Roger
kengking is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
Old 04-27-2008, 09:46 AM   #26 (permalink)
Junior Member
 
Join Date: Dec 2006
Posts: 24
Refer to post #16

I think Chris_H_FX asked some important questions but I haven't seen a reply.
I am a very experienced MT4 programmer and Trader and would be willing to help.
The version 3 code only compares each of the two lines for a given stochastic, not any crossovers or actual levels. It may be useful for example if all the stochastics were above 50 or 80 before placing a sell order or below 50 or 20 before placing a buy order. Or enter when the 5 mniute Stochastic crosses the 20/80 line or at least when the two lines on the 5 minute chart cross.

Just some thoughts. Let's make this win!
stevensign is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 04-27-2008, 10:20 AM   #27 (permalink)
Junior Member
 
Join Date: Dec 2006
Posts: 24
Close of Candle option?

Just another thought after looking at the code some more.
Maybe there should be an option to wait for the close of candle at least on the 5 minute stochastic and possibly the others.
stevensign is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-01-2008, 07:22 PM   #28 (permalink)
Junior Member
 
Join Date: Jan 2007
Posts: 10
Quote:
Originally Posted by stevensign View Post
I am a very experienced MT4 programmer and Trader and would be willing to help.
The version 3 code only compares each of the two lines for a given stochastic, not any crossovers or actual levels. It may be useful for example if all the stochastics were above 50 or 80 before placing a sell order or below 50 or 20 before placing a buy order. Or enter when the 5 mniute Stochastic crosses the 20/80 line or at least when the two lines on the 5 minute chart cross.
...
Maybe there should be an option to wait for the close of candle at least on the 5 minute stochastic and possibly the others.
I agree with your assessment of only taking an initial position when the values are above or below some arbitrary, optimizable value.

Since you're a very experienced programmer, I need to ask you please: How does one determine the close of a candle or bar using mq4? It was simple in Tradestation's EasyLanguage:

if barstatus(1) = 2 then ...

but I can't discover the equivalent function in mq4.

Thanks, and I'll submit my code for review when I hear back from you (or anyone for that matter) about how to recognize the candle close.
henrietta is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-02-2008, 12:54 AM   #29 (permalink)
Junior Member
 
Join Date: Jan 2007
Posts: 10
Quote:
Originally Posted by kokas View Post
The statement hasn't been updating since 24 April?
henrietta is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 05-05-2008, 03:57 PM   #30 (permalink)
Administrator
 
kokas's Avatar
 
Join Date: Sep 2006
Location: Portugal
Posts: 507
New Settings!

The optimization is still running, and on a few days I believe that we have some results.

For now, I pick up some settings (the best ones until now on EURUSD), and make a backtest. Here are the results:
Attached Files
File Type: pdf Strategy Tester_ SuperStochs v3.pdf (188.6 KB, 194 views)
kokas is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
stochastics indicator, superstochs

LinkBacks (?)
LinkBack to this Thread: http://www.forexforums.org/mt4-expert-advisors-factory/91740-superstochs-ea.html
Posted By For Type Date
MTF Stochastics EA's - Page 3 This thread Refback 07-12-2008 08:08 AM
MTF Stochastics EA's - Page 3 This thread Refback 07-11-2008 05:06 PM
MTF Stochastics EA's - Page 3 This thread Refback 07-10-2008 11:58 PM
MTF Stochastics EA's - Page 3 This thread Refback 07-10-2008 06:03 PM
MENCOBA MENGAMATI EXPERT ADVISOR This thread Refback 07-06-2008 12:05 AM
Digg - SuperStochs EA This thread Refback 04-28-2008 02:41 AM
New EA posted posted for download - GlobalGoldTalk Money Making Forum This thread Refback 04-26-2008 04:57 AM
Untitled document This thread Refback 04-18-2008 04:09 PM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Sedo - Buy and Sell Domain Names and Websites project info: forexforums.org Statistics for project forexforums.org etracker® web controlling instead of log file analysis

All times are GMT. The time now is 01:02 AM.
Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.