Forex



Go Back   Forex Trading > Downloads > Expert Advisors - Metatrader 4
Forex Forum Register More recent Blogs Calendar Advertising Others Help






Register
Welcome to Forex-TSD!, one of the largest Forex forums worldwide, where you will be able to find the most complete and reliable Forex information imaginable.

From the list below, select the forum that you want to visit and register to post, as many times you want. It’s absolutely free. Click here for registering on Forex-TSD.

Exclusive Forum
The Exclusive Forum is the only paid section. Once you subscribe, you will get free access to real cutting-edge Trading Systems (automated and not), Indicators, Signals, Articles, etc., that will help and guide you, in ways that you could only imagine, with your Forex trading.
  • Elite Section
    Get access to private discussions, specialized support, indicators and trading systems reported every week.
  • Advanced Elite Section
    For professional traders, trading system developers and any other member who may need to use and/or convert, the most cutting-edge exclusive indicators and trading systems for MT4 and MT5.
See more

Reply
 
Thread Tools Display Modes
  #101 (permalink)  
Old 02-25-2009, 12:26 PM
Member
 
Join Date: Jul 2008
Posts: 30
sfindlay is on a distinguished road
Quote:
Originally Posted by bcmfxtrader View Post
anyone having probs with duplicate/multiple consecutive orders?? i.e. it will enter and exit simultaneously for half an hour or so...chewing up equity by losing the spread on every "in and out"... read where someone is try on 16 different pairs, gold and silver... i seem to only have this problem with non-majors. ueor/gbp/chf, and jpy all seem fine. all others either dont trade, or get that multiple order thing going...

anyone else have this problem??

btw ... read back a few pages about "fewer trades but more consistent winners the higher the timeframe" ... thus far with me, that is TRUE. doesnt trade nearly as much on 30m and 4hr timeframes...but very nice equity curve. i've completely dropped the lower 15m timeframe..

let me know if anyone having a prob with the duplicate orders, as well as a possible fix...


thanks !!
I had the same problem last week, when trading live, the first real significant loss but on USDJPY (15 min) that took out my live "test" account. (I test on real money now since I have found that I get different results parallel testing on demo and live accounts.) I was Not Happy.

I looked at the code, and it shouldn't have happened.

I back tested and couldn't duplicate results, any which way.

I think it is because the code was not looking at the magic number before closing the trade. So, while my USDJPY 15 mins chart had a sell signal, and was going down, down, down, the USDJPY 30 min chart was in a close sell trigger. So, it kept closing my 15 min chart, and then my 15 min chart kept re-opening the trade because it was still on the 15 min candle and in a sell trigger. It didn't take long for slippage and the spread to kill my account.

So I've fixed the code so that it looks for the magic number like fxnelson suggested.

The other way to fix is to turn off "Every Tick". (Turn to False) But this does appear, on backtesting, to reduce the profitability.

If any of you have better coding skills than me, I'd love it to look at the equity 24 hours earlier, and kill the EA if the equity has reduced to a predetermined level.
Attached Files
File Type: mq4 Stoch EA-mm-V3.mq4 (12.5 KB, 168 views)

Last edited by sfindlay; 02-25-2009 at 12:28 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #102 (permalink)  
Old 02-25-2009, 12:37 PM
Member
 
Join Date: Jul 2008
Posts: 30
sfindlay is on a distinguished road
Quote:
Originally Posted by Light&Magic View Post
I agree with your back test results.Have tested on demo and got gr8 results. And yes setting the trades in the direction of trend is the way to go. An additional parameter could be to close all trades if the floating profit has reached the target amount u want to make in a day.

Sfindlay is that possible ?
Yup, if one of you has some coding skills. I know someone clever who could do it, but nailing his foot to the floor so he stays long enough at my computer to code the changes will take a few days.

Does anybody have a really good trend indicator? I usually use Heiken Ashi Kuskus manually, but I can't get the code to work in an EA, and none of the EAs I have seen written by others have the code reading the HAK signals either reliably. What else does anybody have?

I'll play around with using Fractals as an exit signal and let you know how they go.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #103 (permalink)  
Old 02-25-2009, 06:39 PM
Junior Member
 
Join Date: Feb 2009
Posts: 4
johnw213 is on a distinguished road
I don't know anything about mql4, but when I looked at the code it looked exactly like C or C++ (which I programmed in). I could give it a shot.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #104 (permalink)  
Old 02-26-2009, 04:43 AM
Member
 
Join Date: Jul 2008
Posts: 30
sfindlay is on a distinguished road
Quote:
Originally Posted by johnw213 View Post
I don't know anything about mql4, but when I looked at the code it looked exactly like C or C++ (which I programmed in). I could give it a shot.
That would be great. As I understand it metatrader 4 is based on C++.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #105 (permalink)  
Old 02-27-2009, 03:36 AM
alpine4133's Avatar
Senior Member
 
Join Date: Nov 2008
Posts: 203
alpine4133 is on a distinguished road
settings for other pairs

I really like this EA, but I can only get it to trade well on eurusd, with the default settings. Do you better settings for usd/jpy, gbp/usd and eurgbp.

Or if you know of better pairs for this ea I am open to try them.

Thanks for any suggestions.

Quote:
Originally Posted by sfindlay View Post
I had the same problem last week, when trading live, the first real significant loss but on USDJPY (15 min) that took out my live "test" account. (I test on real money now since I have found that I get different results parallel testing on demo and live accounts.) I was Not Happy.

I looked at the code, and it shouldn't have happened.

I back tested and couldn't duplicate results, any which way.

I think it is because the code was not looking at the magic number before closing the trade. So, while my USDJPY 15 mins chart had a sell signal, and was going down, down, down, the USDJPY 30 min chart was in a close sell trigger. So, it kept closing my 15 min chart, and then my 15 min chart kept re-opening the trade because it was still on the 15 min candle and in a sell trigger. It didn't take long for slippage and the spread to kill my account.

So I've fixed the code so that it looks for the magic number like fxnelson suggested.

The other way to fix is to turn off "Every Tick". (Turn to False) But this does appear, on backtesting, to reduce the profitability.

If any of you have better coding skills than me, I'd love it to look at the equity 24 hours earlier, and kill the EA if the equity has reduced to a predetermined level.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #106 (permalink)  
Old 02-27-2009, 04:11 AM
Member
 
Join Date: Jul 2006
Posts: 37
Light&Magic is on a distinguished road
Ea

I tested the ea on about 18 pairs at the same time. To accelerate the testing phase as each pair is either trending,ranging,sideways etc.What i found is the ea fails ultimately.It might work well on EU for now but you can expect the equity to be wipped out .Unless it is evolved further by adding more trend filters.I dont know if murray math can somehow be incorporated as thats the only time when i could do 35 trades in a row without a loss

L&M
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #107 (permalink)  
Old 03-01-2009, 10:18 PM
Junior Member
 
Join Date: May 2007
Posts: 2
elway is on a distinguished road
Ea

sfindlay,

I had the same problem as you with the ea. I was testing it last week on GBP-CHF. It began placing and closing orders rapidly and it very quickly drew my demo account down by about 70%. I only had one GBPCHF chart open.

Elway
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #108 (permalink)  
Old 03-03-2009, 11:09 PM
Member
 
Join Date: Jul 2008
Posts: 30
sfindlay is on a distinguished road
Quote:
Originally Posted by elway View Post
sfindlay,

I had the same problem as you with the ea. I was testing it last week on GBP-CHF. It began placing and closing orders rapidly and it very quickly drew my demo account down by about 70%. I only had one GBPCHF chart open.

Elway
Turn Every Tick off. That will stop it opening and closing in the future.
BUT
It is not supposed to do that in the code even if every tick is on. I can't figure why.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #109 (permalink)  
Old 03-04-2009, 04:18 PM
Junior Member
 
Join Date: Sep 2008
Posts: 1
modren11 is on a distinguished road
help me please

heloo i have exspert ..... it open buy and sell but only one Currency i want open man
Welcome, I have exspert open and close the deals, but to buy or sell one currency .....I want to open several currencies in the chart in the same moment, buy or sell alot currency , and not wait until its closure, thank you
Attached Files
File Type: mq4 Nouf_Stochastic_20&80(2).mq4 (8.5 KB, 124 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
  #110 (permalink)  
Old 03-04-2009, 09:00 PM
Senior Member
 
Join Date: Oct 2008
Location: Vancouver, BC
Posts: 158
Roger09 is on a distinguished road
To modren11
Actually you can use it to any currency.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!StumbleUpon this Post!Reddit this Post!Facebook this Post!BlinkList this Post!Google Bookmarks this Post!Yahoo! My Web this Post!
Reply With Quote
Reply

Bookmarks

Tags
SDS UMM ver1, stocahstic EA, stoch ea, stoch ea mm, stochastic, STOCHASTIC EA, Stochastic ea mq4, stochastic expert advisor


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 Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Stochastic ea ajk Metatrader 4 6 01-24-2009 12:43 AM
RSI ADX Stochastic Shinigami Suggestions for Trading Systems 11 12-17-2008 09:11 AM
stochastic danu Expert Advisors - Metatrader 4 1 06-21-2006 07:47 AM
rsi and stochastic One Indicators - Metatrader 4 5 04-01-2006 06:12 AM
Stochastic v1 kostya2312 Expert Advisors - Metatrader 4 16 01-17-2006 08:15 AM


All times are GMT. The time now is 06:05 AM.



Search Engine Friendly URLs by vBSEO 3.2.0 ©2008, Crawlability, Inc.