Forex



Go Back   Forex Trading > Discussion Areas > Metatrader 4
Forex Forum Register More recent 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
  #1 (permalink)  
Old 06-12-2009, 04:19 PM
Junior Member
 
Join Date: Jun 2009
Posts: 5
blockie is on a distinguished road
Close trade automatically

Just starting this thread. Don't know where it will go.
I am running a demo on several currency pairs using two EA's.

An analysis of the past two weeks indicate to me that after a number of positive trade along comes a stop loss that wipes all or most of the profit out. I have also noted, on the forums, people are trying to deal with this by adjusting, risk,stop loss, etc.

I took a closer look at the length of time that a trade was open. I found that most positive trade stayed open for less than an hour, a few up to 9 hours. But, the losing trade was open for much longer than that trying to find either a TP or a SL.

So on the platform statement I crossed out (eliminated) all of the trades open for more than two hours and the result was a much better profit albeit fewer trades. But I think that is the name of the game. PROFIT OVER TRADES. This little experiment cut off ALL the losers.

I would like to try this by writing some code that will closed an open trade automatically after a certain number of hours. This number to be adjustable by the trader.

Some other considerations:
1. the code must be specific to a trading chart. It would be nice to load the code in a similar fashion as we do EA's.
2. the code must be portable. That is in a scrip or an EA.

I used to do some programming in FoxPro but am rusty. I know nothing about programming in this language. Is there a list of command and their meaning some where I can look at?
Anybody willing to help me on this?

Bill
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
  #2 (permalink)  
Old 06-12-2009, 05:01 PM
Junior Member
 
Join Date: Jun 2009
Posts: 5
blockie is on a distinguished road
Reading further I have some questions;
1.A script is one time event and would not be appropriate for my scheme. Correct?
2. It looks like my approach would have to be in a specific EA. Correct?
3. Should the code be placed in a .dll?
4. Would I have to write two sets of code, one for Euro-Blaster and one for Fap Turbo? Is an add on permissible on these EA's?
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
  #3 (permalink)  
Old 06-12-2009, 07:55 PM
Administrator
 
Join Date: Sep 2005
Posts: 20,083
Blog Entries: 243
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
One tool should be on this thread 'Close all'/'Open' tools
__________________
My blog on TSD
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
  #4 (permalink)  
Old 06-12-2009, 09:13 PM
Junior Member
 
Join Date: Jun 2009
Posts: 5
blockie is on a distinguished road
Thanks,
However those tools appear to be scripts. They only work once as I understand it. What I need is some sort of tool that will monitor open trades, keep track of their identifier and close them after a certain length of time.
Bill
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
  #5 (permalink)  
Old 06-13-2009, 03:29 PM
Junior Member
 
Join Date: Jun 2009
Posts: 5
blockie is on a distinguished road
Not many people jumping in. Would I get better response from an ELITE membership?
I don't even know where this code should go once written, the EA, a .dll or what?
Bill
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
  #6 (permalink)  
Old 06-14-2009, 07:00 AM
Administrator
 
Join Date: Sep 2005
Posts: 20,083
Blog Entries: 243
newdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud ofnewdigital has much to be proud of
Quote:
...monitor open trades, keep track of their identifier and close them after a certain length of time.
It should be EA. Scripts are not doing this kind of job.

There are many EAs which can monitor the trades. But to know which one can close all the trades - it is necessary to go through every single EAs (there are many of them) just to understand which one is closing all open trades on certain time. It is basicly half a day for this it.
Because of that no one replied: it is necessary to spend at least half a day for reply ...

As I see there are the following EAs:

- TimeBreakExpert EA: open and close the orders at established time (Trailing Stop and BreakEven). There are 2 threads in elite section with 2 versions. Coded by Igorad.

- ScheduleTrader EA: open/close the trades (any kind of) in established time. It is the public development. The thread is here: Indicators/EAs for news and trading signals

- WNV EA: this EA buys and/or sells at a certain time of day. One thread is on elite section. Idea is by WNV, coded by Igorad.

- TimeBasedEA: buy and sell specific currency pair at specific time is (many versions). Public EA. The thread is here Help: How to write simple EA to buy and sell at a specific time?

Thre are many other EAs in public threads and in elite threads (MultiPositionExpert EA; BreakEvenExpert EAs; EMATrailing Stop EA; CloseAll-PL EA; CloseTrades_After_Account_Profit_Reached EA; Trail Strength_Trend Stop; EquityMangager V2; EquityWatch; Close All Trades When Once Profit Taken EA; Swiss Army EA (Automatic order management) and so on).

But as I said - to reply to your questions - it is necessary to spend may be 1 full day ... and in the end you may say that you do not need it ... and it will be the other day ... and so on
That is why no one replied.
__________________
My blog on TSD
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


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
Close all and stay close? Cross Tools and utilities 1 09-27-2007 05:04 AM
Open/close trade on same bar's close? WNW Expert Advisors - Metatrader 4 2 03-29-2007 06:37 AM
To trade or not to trade Indicators? yaniv_av Indicators - Metatrader 4 1 03-27-2007 02:01 PM
Automatically change ( OrderMagicNumber ) jpsdyb Metatrader 4 2 10-08-2006 07:12 PM
how can i trade at the curren second price before the current stick reach it close ti huaxia009 Metatrader 4 2 05-29-2006 05:06 AM


All times are GMT. The time now is 07:29 PM.



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