Closing trades at end of candle
  #1 (permalink)  
Old 07-21-2005, 09:32 PM
TraderSeven's Avatar
Sophomore
 
Join Date: Jun 2005
Posts: 86
Thanks: 0
Thanked 1 Time in 1 Post
TraderSeven is a glorious beacon of lightTraderSeven is a glorious beacon of lightTraderSeven is a glorious beacon of lightTraderSeven is a glorious beacon of lightTraderSeven is a glorious beacon of light
Default Closing trades at end of candle

I'm trying a very simple system.
Buy if EMA(5) crosses EMA(13) --> using opening prices
Close all open positions at close of current candle or at open of next candle.
Opening goes ok but somehow it never closes on the same bar.

I know backtesting is flawed but not for simple OHLC data I think/hope...

Can someone please help me with this weird problem?



MetaTrader4 code
__________________
If your system fails just swap long & short :whistling
Reply With Quote
  #2 (permalink)  
Old 09-22-2005, 01:18 PM
gazuz's Avatar
Senior Trader and Moderat
 
Join Date: Aug 2004
Posts: 768
Thanks: 1
Thanked 8 Times in 5 Posts
gazuz is a name known to allgazuz is a name known to allgazuz is a name known to allgazuz is a name known to allgazuz is a name known to allgazuz is a name known to all
Default

bumping this one as well to see if anyone can fix it now
__________________
____________________________\¦/
___________________________(ò ó)
______________________o0o___(_)___o0o__
___¦_____¦_____¦_____¦_____¦_____¦_____¦
¦_____¦_____¦_____¦_____¦_____¦_____¦__
___¦_____¦_____¦_____¦_____¦_____¦_____¦
¦_____¦_____¦_____¦_____¦_____¦_____¦__
Reply With Quote
It's easy as 123
  #3 (permalink)  
Old 09-22-2005, 02:53 PM
scorpion's Avatar
Administrator
 
Join Date: Aug 2004
Posts: 1,922
Thanks: 97
Thanked 361 Times in 147 Posts
scorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to beholdscorpion is a splendid one to behold
Send a message via MSN to scorpion Send a message via Yahoo to scorpion
Default It's easy as 123

This is best to program in zerocode.

First, setup EMA 5. Parameters: Method = EMA, Period = 5, Applied Price = PRICE_OPEN
Second, setup EMA 13.
Third, add logics as seen in attached screenshot below.

That's it!
Attached Images
File Type: png zerocode_trader7_close.png (19.5 KB, 36 views)
Sponsored Links Profitable Forex Systems
Automatically trade proven forex trading systems.
Real trading records available!
__________________
Make easy pips with the Advanced Economic Calendar for Forex Trading.
Reply With Quote
Reply


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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
"10 Minute Strategy" gazuz Trading Systems 33 08-24-2007 10:11 AM
How to calculate the Close and Open price of candle? scorpion MetaTrader and ZeroCode 5 09-07-2005 02:05 PM
Fundamental trades TraderSeven Trading Systems 6 06-22-2005 10:33 AM


All times are GMT. The time now is 02:18 AM.
Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

Registered members have access to special online forex currency trading tools, software, mt4 expert advisors and indicators. Register now