Forex
Google
New signals service!

Go Back   Forex Trading > Discussion Areas > Metatrader 4


Register in Forex TSD!
Trading Systems Leaders in this forum (automated trading systems) are winning more than 3000 pips in a month (30000$ investing one lot every time).
Click here to register and get more information

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-12-2006, 06:30 AM
hitman's Avatar
Junior Member
 
Join Date: Oct 2006
Posts: 18
hitman is on a distinguished road
Smile T/p S/L ....script

hallo can any one find or creat script in meta trader allow us to cange T/p & S/l by change line positions like visual treader...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 12-12-2006, 07:02 AM
Administrator
 
Join Date: Sep 2005
Posts: 16,259
Blog Entries: 105
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:
Originally Posted by hitman
hallo can any one find or creat script in meta trader allow us to cange T/p & S/l by change line positions like visual treader...
I saw some EA or script and you may change/modify take profit and stop loss by moving mouse on the chart only. I was on Russian version of Metaquotes website www.mql4.ru (the English and Russian versions of Metaquotes website is different as you know).
I will try to find it on website (with some short describtion).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 12-12-2006, 03:06 PM
hitman's Avatar
Junior Member
 
Join Date: Oct 2006
Posts: 18
hitman is on a distinguished road
Thumbs up

ok i will wait you ................becouse i can not read russian ..............so i will wait until you find the script or ea............

thanks for your help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 12-12-2006, 03:32 PM
Administrator
 
Join Date: Sep 2005
Posts: 16,259
Blog Entries: 105
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:
Originally Posted by hitman
ok i will wait you ................becouse i can not read russian ..............so i will wait until you find the script or ea............

thanks for your help
I found it.
It is the script here http://codebase.mql4.com/ru/219

Download this script http://codebase.mql4.com/ru/download/1121
(mql4 file to download)
Source code posted in this page
http://codebase.mql4.com/ru/source/1121

Code:
Instruction for installation:

1. Open script in MetaEditor and set your desirable default settings. 
Default settings in the script are started and finished 
by this line //+--------------------------+

2. In Metarader: go to Tools, Options, Expert Advosirs 
and select "Allow external experts import". 

3. Move script to the chart by mouse just near the order 
which you want to modify.

4. Move all the lines to the necessary levels:

- Open_Price_Line (white color by default) - 
price to open the order (for pending orders only);

- Stop_Loss_Line (red color) - stop loss level;

- Take_Profit_Line (green color) - take profit level;

- Expiration_Line (yellow) - for pending orders only.

To remove stop loss, take profit, expiration date 
so just delete the lines on the chart (by mouse).

Move the lines by mouse on the chart to modify the order.
I tried it long time ago and it works.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 12-12-2006, 04:46 PM
Administrator
 
Join Date: Sep 2005
Posts: 16,259
Blog Entries: 105
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:
Originally Posted by newdigital
...1. Open script in MetaEditor and set your desirable default settings.
Default settings in the script are started and finished
by this line //+--------------------------+
I just checked it.
Works fine!

First of all you need to modify the settings.

Explanation of the settings inside the script:

Code:
Order_Find_Radius = 10;
It is distance between the price to open the order and where you drop this sctipt. Default is 10. If you are sniper so you may set to zero. It does not affecting on anything a lot because you should open the order manually before. So it is affecting on the following: will this script recognize the order to modify or not. I prefer 10 or more. 20 for example. Because I am not a sniper by mouse

Code:
Take_Profit = 50;
int Stop_Loss = 50;
It is understandable: stop loss and take profit value. You may set it to 100 (both) to move easy after.

Code:
Slippage = 5;
Understabdable.

Code:
Expiration_Shift = 0;
It is for pending orders only. Value is in bas. For example, if you are attaching (moving) ther script to H4 chart and Expiration_Shift = 3 so it means that the order will be expired in 12 hours (3 bars x 4 H timeframe).

How to use this script:

1. Open the order.

2. Move this script by mouse to the place with order price on the chart. If you get the error so it means that you are not sniper and you moved the script far away from the order on the chart. Just increase Order_Find_Radius value in this case. I prefer 20 for example (20 pips target aroud the order open price on the chart).

3. Wait. Pop up window will be opened (see image attached). Ignore this pop-up window (do not click on "OK" or "Cancel", just ignore). If this pop-up window prevent you to see or move the lines on the chart so just move this window to somewhere by mouse.

4. You should see the lines. Just wait 2 or 3 seconds. To speed up this process, or if you do not see red/green stop loss and take profit lines so simple click on the chart by mouse in any place.

5. Move take profit line and stop loss line what ven distance you want (by mouse on the chart). How to move? Double mouse click on the line and move.

6. So, now only you may press "OK" in pop-up window. Afer that order will be modified.

7. If you want to modify once again so move this script to the "open order place" and repeat it.

It looks complicated but it is very simple. Just set your desirable Order_Find_Radius and use your mouse.
Attached Images
File Type: gif screen2.gif (43.1 KB, 138 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 12-14-2006, 09:37 PM
Junior Member
 
Join Date: Dec 2006
Posts: 10
Freewheelin is on a distinguished road
Question Different trailing stop

Hello Community,

didn't want to start a new thread. I think this could be the right one.

I want to know if there is a script for MT4 that allows me other settings for trailing stop. The usual TS moves one pip, but I want to set more than one.

Example:

Long trade at 100
TS 30 points

Price reach 130 - TS moves to BE and is on 100
Price reach 131 - nothing happens
Price reach 132 - nothing happens
.
.
.
Price reach 160 - TS moves to 130
Price reach 161 - nothing happens
Price reach 162 - nothing happens
.
.
. Price reach 190 - TS moves to 160

and so on.

Is there hope to find a solution
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

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
Script halfasleep General Discussion 4 12-01-2006 02:44 PM
How can an EA Execute Script in the.... babarmughal Expert Advisors - Metatrader 4 2 05-16-2006 10:15 PM


All times are GMT. The time now is 08:58 AM.



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