Forex



Go Back   Forex Trading > Downloads > Tools and utilities
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
  #361 (permalink)  
Old 05-19-2009, 04:08 AM
Junior Member
 
Join Date: Mar 2009
Posts: 2
jpdus is on a distinguished road
MAGIC NUMBERS for 1clicktrades scripts and closeallprofittarget EA

Hello,

I am seeking for such tools (sorry for my poor english) which already exist but in a global and basic trade way only (one pair, one time frame, if not : beware of interferences) :


script : one-click direct buy or sell order with a magic number identification flag (user parameter edit)

EA : close all (market or trailing stop) after specific profit(/loss if negative) in money, or pips, is reached for these magic numbers groups of positions/trades ONLY


purpose : straddle or hedged kind strategies within magic number selectivity for differenciated and independant actions


example :


on EURUSD 1MN :

I open manually and instantly at market price (quantity, slipping, etc. predefined by user modifying parameters in edit mode and recording each personalized version)

several buy 1 lot (user parameter edit) positions with 12345 MN idenfication (ex : double clicking on the script named "buydirect_1_12345")

several SELL positions with 54321 MN (ex : double click on the script named "selldirect_0 01_54321")


the same on USDJPY 5MN with 67890 and 09876

...


four EA activated on four graphics (I don't know other way to process multiples EA in MT4):


"closeall 12345 plus50EUR":

will close all eurusd long positions (remember : marked as 12345 precedently) as soon they are giving together a 50 EUR (money default account in this case) profit (even if total short pos or global account balance is in the red).

will let active all other positions, especially the short positions of the same pair, whatever their own profit/loss or the global account p/l are


"closeall 54321 tp3 loss10" :

will close by trailing stop (3 points) (on overall pips futures variations) all EURUSD short positions (originately marked as 54321 when ordered),
preserving all other existing positions (especially the long pos on the same graphics)
as soon the global pip loss of these specific lots, has broken the -10 barrier.

idem with

"closeall 67890 minus25EUR" and "closeall 09876 profit5" in the same spirit but for the USDJPY 5MN trades


would be nice also to visualize on the graphics, filled orders and PRU levels in different colors by different MN families.

the magic number differenciations would permit to manage several TIME FRAMES distinctive strategies for a same given pair (ex : buy-sell-close actions for 15MN coexisting with their sisters for 1H goal)

concerning the cancelling of eventual pending orders, there is an efficient and dedicated script easy to find on the web (no need to the MN in my opinion), embedded in the script "close all" in a snap.

last but not least, would it be possible to program, instead of "market" orders, "limit" orders calculated for each concerned positions when the profit amount is reached, in order to precisely protect the profitable array of trades from reverse volatility ?

Hoping to have been clear although, and that someone will find and post the corresponding codes.

Thanks in advance.
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
  #362 (permalink)  
Old 05-19-2009, 07:46 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
Hi jpdus,

The scripts to enter are on this page 'Close all'/'Open' tools
I am using it like that:
I am renamed the scripts and the settings according to what I need.

For example, I need to open buy for EURUSD by 0.1 lot size with take profit 80 and stop loss 100 with magic number 12.
So, I opened this script in MetaEditor, place in the settings (inside MetaEditor)

Order_Type = 1; // 0- Current Price; 1 - SELLSTOP; 2 - SELLLIMIT
Lots = 0.1;
Price = 0;
Distance = 0; // Distance from current price in pips for pending orders
TakeProfit = 80; // TakeProfit in pips
StopLoss = 100; // StopLoss in pips
Slippage = 3;
Comments ="SELL";
Magic = 12;
PointRatio = 10;

than renamed as AllBuyOrders_5d_EURUSD80100_01 and "Save as" and than compile.

So, I have may be 10 scripts which I need all the time for pending orders, buy or sell orders with all the settings.

As to exit so it should be some scripts as well. Search the thread - I think you will find it.
__________________
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
  #363 (permalink)  
Old 05-19-2009, 07:48 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
PointRatio = 10 for 5 digit broker (price as 1.32456 for example) and PointRatio = 1 for 4 digit broker (price as 1.3245 for example).
__________________
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
  #364 (permalink)  
Old 05-19-2009, 11:15 AM
Junior Member
 
Join Date: Apr 2009
Location: paris - france
Posts: 29
cmalbranc is on a distinguished road
Quote:
Originally Posted by toddanderson View Post
Could someone please mod. the attached scripts so
you can enter a buystop,sellstop at a specific price you want

hello i know script for send pending order...but only with a distance in pips from market price, maybe you can use it.

cedric
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
  #365 (permalink)  
Old 05-20-2009, 03:07 AM
Junior Member
 
Join Date: Mar 2009
Posts: 2
jpdus is on a distinguished road
manual entering Vs auto conditionnal and partial exiting

Hi NewDigital

Thanks for your response and for relocating my post in the appropriated thread.

I have in my library such quick order preset scripts with the closeallafterprofitreached working EA.

You gave the syntax solution for entrying, but it is pretty much harder to exit, partially in this case.

My problem is to find the profit manager EA which will considerate and close all trades associated with a specific magic number and ONLY THOSE,

and if possible,

with limit price (calculated in real time by the EA for each position concerned) or trailing stop orders, instead of a general market ones.


in other words :


close all trades made with the magic number edited (and leave absolutely active the others not concerned or identified with different MN),

after the profit generated by these MN positions (and not all others like in the classic ea of that type) has reached the amount predefined by user.

profit protected by an array of limit or trailing stop orders, calibrated and generated for this sub group goal.

I tried to adapt various close managers, in vain for now.

Multiple EAs working in parallel with possible resources collisions, seem to add difficulty and bugs...
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
  #366 (permalink)  
Old 05-21-2009, 09:19 AM
Junior Member
 
Join Date: Mar 2009
Posts: 16
jamesfrance is on a distinguished road
Can someone alter this EA please

Hi
I Was wondering if someone could please alter this close all orders EA to include the following options.or if you have one that already does this please post.

Add a trailing stop

Add a time Filter (maybe need a GMT +- setting for different brokers)


Thanks in advance
Attached Files
File Type: mq4 Close All orders at certian profit.mq4 (2.0 KB, 85 views)
File Type: ex4 Close All orders at certian profit.ex4 (2.1 KB, 39 views)

Last edited by jamesfrance; 05-21-2009 at 09:22 AM. Reason: adding file
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
  #367 (permalink)  
Old 05-26-2009, 01:58 PM
Member
 
Join Date: Jan 2009
Posts: 33
JForex78 is on a distinguished road
Position tracker.

Hi,

I am looking for an indicator that can automatically register new positions, and send alerts/ emails when position is closed?

I have something but it will not automatically register new positions, it has to be restarted.

Thanks,
JForex.
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
  #368 (permalink)  
Old 05-28-2009, 10:24 PM
Member
 
Join Date: Oct 2008
Posts: 68
wall03 is on a distinguished road
Have you an expert advisor taht revers martingale orders open from another ea ?
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
  #369 (permalink)  
Old 05-30-2009, 04:40 AM
Junior Member
 
Join Date: Dec 2008
Posts: 1
bulkbiz is on a distinguished road
Close trade EA

Hi all,

I am looking for an EA in MT4 that will close half of my position size when my TP1 was hit, move SL to BE and close all when TP2 was hit.

Any idea?

Thanks a lot.
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
  #370 (permalink)  
Old 05-31-2009, 10:50 AM
Junior Member
 
Join Date: Mar 2009
Posts: 5
kamehame is on a distinguished road
hi all

anyone have script to closed all in one pair not all open?

thanks
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
close, close all, Close all open positions.mq4, close all position script, close all positions, close all positions in MT4, close all script, close all trades, closeall, ddetool, forex, mt4 close all script, mt4 close all trades, open close, pending order ea, profit, script, scripts, stomper, stop, tools, trades, trailing


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
Open/close trade on same bar's close? WNW Expert Advisors - Metatrader 4 2 03-29-2007 06:37 AM
close all open trades ea G-Riper General Discussion 2 08-02-2006 10:41 PM
Close all open positions jonjonau Expert Advisors - Metatrader 4 6 07-12-2006 06:01 AM
Close All Open Positions? lonespruce Metatrader 4 9 06-22-2006 08:20 AM


All times are GMT. The time now is 12:41 AM.



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