Forex



Go Back   Forex Trading > Discussion Areas > 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
  #11 (permalink)  
Old 08-17-2008, 12:33 PM
Junior Member
 
Join Date: Jul 2008
Posts: 13
agisthos is on a distinguished road
Need trailing bar stoploss

Can someone point to where I can find a stoploss that will adjust to a set amount of bars.

For example on a short trade, stop moves to the low of the 4th last bar.

On a long trade, stop moves to the high of the 7th last bar e.t.c

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
  #12 (permalink)  
Old 08-27-2008, 03:37 PM
Junior Member
 
Join Date: Dec 2005
Posts: 4
alpha is on a distinguished road
Drag and Drop Stop

Hi all,

Would be very nice if somebody can help me.

I search an indicator/script how allow to modified an current stop with
drag and drop of his line in the chart

Regards,
alpha
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
  #13 (permalink)  
Old 08-27-2008, 04:32 PM
Linuxser's Avatar
User Root
 
Join Date: May 2006
Location: Helliconia (Winter)
Posts: 4,410
Blog Entries: 56
Linuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond repute
Hi alpha,
pls chek this tool on my post
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
  #14 (permalink)  
Old 08-28-2008, 08:34 AM
Junior Member
 
Join Date: Dec 2005
Posts: 4
alpha is on a distinguished road
Hi Linuxser,


Great , exactly what I search.

Big thanks for your help

Regards,

alpha
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
  #15 (permalink)  
Old 09-28-2008, 04:30 AM
Member
 
Join Date: Jul 2008
Posts: 48
chiwing is on a distinguished road
Smile trailing stop ask for debugging

i try to compile a program, although it get 0 error, but have 3 warnings, do anyone tell me what i should amend

the 3 warning is :
1)
'UseTrailing' - expression on global scope not allowed C:\Program Files\FxPro MetaTrader\experts\scripts\b-TLE_v.1.6.mqh (52, 6)

2)
'TrailingPositions' - expression on global scope not allowed C:\Program Files\FxPro MetaTrader\experts\scripts\b-TLE_v.1.6.mqh (52, 19)


3)
Start function not found and cannot be run.


BELOW IS THE WHOLE PROGRAM:
//+------------------------------------------------------------------+
//| b-TLE_v.1.6.mqh |
//| 抌?闉?? aka KimIV |
//| Àâòîìàòèçàöèÿ òîðãîâëè íà ôèíàíñîâûõ ðûíêàõ - Ãëàâíàÿ |
//| |
//| 20.09.2005 秮跳鶇鍒翴瘔 鼨嚦樦?禖羻儋?(Three Level Exit). |
//| 昳譇摳譖瘔殣 碫?闅膴 瀁賥灕? |
//| 醫鸆譔 襜錪膰 縺 鍱鴈 錌搿?蜸僳鴀. |
//| 22.09.2005 v.1.0 邇賈 碴氂膻?櫡譇懤襝 儇 鵿譇碲樇? 賧膼? |
//| 碲?膻 勷瞂襡鴀? |
//| 22.09.2005 v.1.1 邇賈 櫡譇懤襝?儇 鍏譇膻灚膻?瀁 壝跟? |
//| 22.09.2005 v.1.2 瀔飶鳹 霟魨膧 ?闀謥麧錼膻樦 瘔錌譖. |
//| 22.09.2005 v.1.3 凎鳪鳿鍒鳪 懤矐膻賚 闅鼫癰?劖鳽樇? 欈蕻. |
//| 22.09.2005 v.1.4 砐瀔飶鳹 懤矐膻賚 闅鼫癰?劖鳽樇? 欈蕻. |
//| 23.09.2005 v.1.5 凎鳪鳿鍒鳪 邍膷儚殥膧?鵨蠉膼瞃?嚦闀鍒. |
//| 14.10.2005 v.1.6 秮?鶇鍒? 櫇謥膼黟 嚦闀? |
//| 23.11.2005 v.1.6 凎鳪鳿僪? ?睯麧 鵯魤歑黟錪膼蜦 斁劌?. |
//| 犧 黓瀁錪賧瘔膻 儋摳睯譔 嚦豂膧 ?斁劌錼 start |
//| if (UseTrailing) TrailingPositions(); |
//+------------------------------------------------------------------+
#property copyright "抌?闉?? aka KimIV"
#property link "http://www.kimiv.ru"

#include <sampledll.mqh>
#include <stdlib.mqh>

//------- 鎮氂膻?櫡譇懤襝?斁劌? -----------------------------------
extern string _Parameters_Trailing = "----- 眈譇懤襝?襝鳪?;
extern bool UseTrailing = True; // 瀁錪賧瘔譔 襝鳪;

extern int LevelProfit1 = 20; // 盷謼 鶇鍒樇?瀔隮鼏?
extern int LevelMoving1 = 1; // 盷謼 鶇鍒樇?櫇謥膼黟
extern int LevelProfit2 = 35; // 鎗闉鍣 鶇鍒樇?瀔隮鼏?
extern int LevelMoving2 = 20; // 鎗闉鍣 鶇鍒樇?櫇謥膼黟
extern int LevelProfit3 = 55; // 秮殣鴇 鶇鍒樇?瀔隮鼏?
extern int LevelMoving3 = 30; // 秮殣鴇 鶇鍒樇?櫇謥膼黟
extern int TrailingStop = 40; // 冓賚歑 襝鳪?
extern int TrailingStep = 5; // 嵑?襝鳪?
extern bool UseSound = True; // Use sound
extern string NameFileSound = "expert.wav"; // name of the file for the sound
extern color clModifyBuy = Yellow; // Color of the modifybuy
extern color clModifySell = Pink; //
#define MAGIC 20051119

int Global_flag;
int start();

if (UseTrailing) TrailingPositions();

//+------------------------------------------------------------------+
//| 栦瀔鍒鍻麧膻?瀁賥灕? |
//+------------------------------------------------------------------+
void TrailingPositions() {
for (int i=0; i<OrdersTotal(); i++) {
if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES)) {
if (OrderSymbol()==Symbol() && OrderMagicNumber()==MAGIC) {
ThreeLevelSystemOfOutput();
}
}
}
}

//+------------------------------------------------------------------+
//| 秮跳鶇鍒翴瘔 鼨嚦樦?禖羻儋? |
//+------------------------------------------------------------------+
void ThreeLevelSystemOfOutput() {
int pr=ProfitPosition(), sl=StopLossInPoint();
int sp=MarketInfo(OrderSymbol(), MODE_SPREAD);

if (pr>LevelProfit1 && pr<=LevelProfit2 && sl<LevelMoving1) ModifyStopLossInPoint(LevelMoving1);
if (pr>LevelProfit2 && pr<=LevelProfit3 && sl<LevelMoving2) ModifyStopLossInPoint(LevelMoving2);
if (pr>LevelProfit3 && sl<LevelMoving3) ModifyStopLossInPoint(LevelMoving3);
if (pr>LevelMoving3+TrailingStop+TrailingStep) {
SimpleTrailingPositions();
}
}

//+------------------------------------------------------------------+
//| 栦瀔鍒鍻麧膻?瀁賥灕?瀔闃譖?襝鳪鍎 |
//+------------------------------------------------------------------+
void SimpleTrailingPositions() {
double pBid, pAsk, pp=MarketInfo(OrderSymbol(), MODE_POINT);

if (OrderType()==OP_BUY) {
pBid=MarketInfo(OrderSymbol(), MODE_BID);
if (pBid-OrderOpenPrice()>TrailingStop*pp) {
if (OrderStopLoss()<pBid-(TrailingStop+TrailingStep-1)*pp) {
ModifyStopLoss(pBid-TrailingStop*pp, clModifyBuy);
return;
}
}
}
if (OrderType()==OP_SELL) {
pAsk=MarketInfo(OrderSymbol(), MODE_ASK);
if (OrderOpenPrice()-pAsk>TrailingStop*pp) {
if (OrderStopLoss()>pAsk+(TrailingStop+TrailingStep-1)*pp || OrderStopLoss()==0) {
ModifyStopLoss(pAsk+TrailingStop*pp, clModifySell);
return;
}
}
}
}

//+------------------------------------------------------------------+
//| 盷謥膼?鶇鍒? StopLoss |
//| 眈譇懤襝? |
//| ldStopLoss - 鶇鍒樇?StopLoss |
//+------------------------------------------------------------------+
void ModifyStopLoss(double ldStopLoss, color clModify) {
bool fm; // 婑飹 斁儰鐓罻灕?瀁賥灕?
int err;

if (IsTradeAllowed()) {
fm=OrderModify(OrderTicket(),OrderOpenPrice(),ldSt opLoss,OrderTakeProfit(),0,clModify);
if (!fm) {
err=GetLastError();
Print("Error(",err,") modifying: ",ErrorDescription(err));
}
if (fm && UseSound) PlaySound(NameFileSound);
}
}

//+------------------------------------------------------------------+
//| 盷謥膼?鶇鍒? StopLoss |
//| 眈譇懤襝? |
//| ldStopLoss - 鶇鍒樇?StopLoss |
//+------------------------------------------------------------------+
void ModifyStopLossInPoint(int pp) {
bool fm;
color clModify;
double ldSL=0, mp=MarketInfo(OrderSymbol(), MODE_POINT);
int err;

if (OrderType()==OP_BUY) {
ldSL=OrderOpenPrice()+pp*mp;
clModify=clModifyBuy;
}
if (OrderType()==OP_SELL) {
ldSL=OrderOpenPrice()-pp*mp;
clModify=clModifySell;
}
if (IsTradeAllowed()) {
fm=OrderModify(OrderTicket(),OrderOpenPrice(),ldSL ,OrderTakeProfit(),0,clModify);
if (!fm) {
err=GetLastError();
Print("Error(",err,") modifying: ",ErrorDescription(err));
}
if (fm && UseSound) PlaySound(NameFileSound);
}
}

//+------------------------------------------------------------------+
//| 鎬誺譇╠殣 瀔隮鼏 瀁賥灕??瀀臌蠉? |
//+------------------------------------------------------------------+
int ProfitPosition()
{
double pBid, pAsk, pp=MarketInfo(OrderSymbol(), MODE_POINT);
double pr=0;

if (OrderType()==OP_BUY)
{
pBid=MarketInfo(OrderSymbol(), MODE_BID);
pr=(pBid-OrderOpenPrice())/pp;
}
if (OrderType()==OP_SELL)
{
pAsk=MarketInfo(OrderSymbol(), MODE_ASK);
pr=(OrderOpenPrice()-pAsk)/pp;
}
return(MathRound(pr));
}

//+------------------------------------------------------------------+
//| 鎬誺譇╠殣 StopLoss 瀁賥灕??瀀臌蠉? |
//+------------------------------------------------------------------+
int StopLossInPoint() {
double pp=MarketInfo(OrderSymbol(), MODE_POINT);
double sp=0;

if (OrderType()==OP_BUY) {
sp=(OrderStopLoss()-OrderOpenPrice())/pp;
}
if (OrderType()==OP_SELL) {
sp=(OrderOpenPrice()-OrderStopLoss())/pp;
}
if (OrderStopLoss()==0) sp=-OrderOpenPrice()/pp;
return(MathRound(sp));


return(0);
}
//+------------------------------------------------------------------+


can ANYONE HELP ME TO DEBUG AND POST IT HERE

big THANKYOU

Last edited by chiwing; 09-28-2008 at 05:06 AM.
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
  #16 (permalink)  
Old 09-28-2008, 05:07 AM
Member
 
Join Date: Jul 2008
Posts: 48
chiwing is on a distinguished road
Smile please download this TRAILING STOP mq4 and debug

TRAILING STOP is a wonderful startegy that allow your fund will not loss a lot in one tarde , and can let you gain big profit when strong trend exist .


below is a trailing stop program, it get 0 error, but have 3 warnings after compile, do anyone tell me do anywhere that i should amend?

the 3 warning is :
1)
'UseTrailing' - expression on global scope not allowed C:\Program Files\FxPro MetaTrader\experts\scripts\b-TLE_v.1.6.mqh (52, 6)

2)
'TrailingPositions' - expression on global scope not allowed C:\Program Files\FxPro MetaTrader\experts\scripts\b-TLE_v.1.6.mqh (52, 19)


3)
Start function not found and cannot be run.


BELOW IS THE WHOLE PROGRAM:
//+------------------------------------------------------------------+
//| b-TLE_v.1.6.mqh |
//| 抌?闉?? aka KimIV |
//| Àâòîìàòèçàöèÿ òîðãîâëè íà ôèíàíñîâûõ ðûíêàõ - Ãëàâíàÿ |
//| |
//| 20.09.2005 秮跳鶇鍒翴瘔 鼨嚦樦?禖羻儋?(Three Level Exit). |
//| 昳譇摳譖瘔殣 碫?闅膴 瀁賥灕? |
//| 醫鸆譔 襜錪膰 縺 鍱鴈 錌搿?蜸僳鴀. |
//| 22.09.2005 v.1.0 邇賈 碴氂膻?櫡譇懤襝 儇 鵿譇碲樇? 賧膼? |
//| 碲?膻 勷瞂襡鴀? |
//| 22.09.2005 v.1.1 邇賈 櫡譇懤襝?儇 鍏譇膻灚膻?瀁 壝跟? |
//| 22.09.2005 v.1.2 瀔飶鳹 霟魨膧 ?闀謥麧錼膻樦 瘔錌譖. |
//| 22.09.2005 v.1.3 凎鳪鳿鍒鳪 懤矐膻賚 闅鼫癰?劖鳽樇? 欈蕻. |
//| 22.09.2005 v.1.4 砐瀔飶鳹 懤矐膻賚 闅鼫癰?劖鳽樇? 欈蕻. |
//| 23.09.2005 v.1.5 凎鳪鳿鍒鳪 邍膷儚殥膧?鵨蠉膼瞃?嚦闀鍒. |
//| 14.10.2005 v.1.6 秮?鶇鍒? 櫇謥膼黟 嚦闀? |
//| 23.11.2005 v.1.6 凎鳪鳿僪? ?睯麧 鵯魤歑黟錪膼蜦 斁劌?. |
//| 犧 黓瀁錪賧瘔膻 儋摳睯譔 嚦豂膧 ?斁劌錼 start |
//| if (UseTrailing) TrailingPositions(); |
//+------------------------------------------------------------------+
#property copyright "抌?闉?? aka KimIV"
#property link "http://www.kimiv.ru"

#include <sampledll.mqh>
#include <stdlib.mqh>

//------- 鎮氂膻?櫡譇懤襝?斁劌? -----------------------------------
extern string _Parameters_Trailing = "----- 眈譇懤襝?襝鳪?;
extern bool UseTrailing = True; // 瀁錪賧瘔譔 襝鳪;

extern int LevelProfit1 = 20; // 盷謼 鶇鍒樇?瀔隮鼏?
extern int LevelMoving1 = 1; // 盷謼 鶇鍒樇?櫇謥膼黟
extern int LevelProfit2 = 35; // 鎗闉鍣 鶇鍒樇?瀔隮鼏?
extern int LevelMoving2 = 20; // 鎗闉鍣 鶇鍒樇?櫇謥膼黟
extern int LevelProfit3 = 55; // 秮殣鴇 鶇鍒樇?瀔隮鼏?
extern int LevelMoving3 = 30; // 秮殣鴇 鶇鍒樇?櫇謥膼黟
extern int TrailingStop = 40; // 冓賚歑 襝鳪?
extern int TrailingStep = 5; // 嵑?襝鳪?
extern bool UseSound = True; // Use sound
extern string NameFileSound = "expert.wav"; // name of the file for the sound
extern color clModifyBuy = Yellow; // Color of the modifybuy
extern color clModifySell = Pink; //
#define MAGIC 20051119

int Global_flag;
int start();

if (UseTrailing) TrailingPositions();

//+------------------------------------------------------------------+
//| 栦瀔鍒鍻麧膻?瀁賥灕? |
//+------------------------------------------------------------------+
void TrailingPositions() {
for (int i=0; i<OrdersTotal(); i++) {
if (OrderSelect(i, SELECT_BY_POS, MODE_TRADES)) {
if (OrderSymbol()==Symbol() && OrderMagicNumber()==MAGIC) {
ThreeLevelSystemOfOutput();
}
}
}
}

//+------------------------------------------------------------------+
//| 秮跳鶇鍒翴瘔 鼨嚦樦?禖羻儋? |
//+------------------------------------------------------------------+
void ThreeLevelSystemOfOutput() {
int pr=ProfitPosition(), sl=StopLossInPoint();
int sp=MarketInfo(OrderSymbol(), MODE_SPREAD);

if (pr>LevelProfit1 && pr<=LevelProfit2 && sl<LevelMoving1) ModifyStopLossInPoint(LevelMoving1);
if (pr>LevelProfit2 && pr<=LevelProfit3 && sl<LevelMoving2) ModifyStopLossInPoint(LevelMoving2);
if (pr>LevelProfit3 && sl<LevelMoving3) ModifyStopLossInPoint(LevelMoving3);
if (pr>LevelMoving3+TrailingStop+TrailingStep) {
SimpleTrailingPositions();
}
}

//+------------------------------------------------------------------+
//| 栦瀔鍒鍻麧膻?瀁賥灕?瀔闃譖?襝鳪鍎 |
//+------------------------------------------------------------------+
void SimpleTrailingPositions() {
double pBid, pAsk, pp=MarketInfo(OrderSymbol(), MODE_POINT);

if (OrderType()==OP_BUY) {
pBid=MarketInfo(OrderSymbol(), MODE_BID);
if (pBid-OrderOpenPrice()>TrailingStop*pp) {
if (OrderStopLoss()<pBid-(TrailingStop+TrailingStep-1)*pp) {
ModifyStopLoss(pBid-TrailingStop*pp, clModifyBuy);
return;
}
}
}
if (OrderType()==OP_SELL) {
pAsk=MarketInfo(OrderSymbol(), MODE_ASK);
if (OrderOpenPrice()-pAsk>TrailingStop*pp) {
if (OrderStopLoss()>pAsk+(TrailingStop+TrailingStep-1)*pp || OrderStopLoss()==0) {
ModifyStopLoss(pAsk+TrailingStop*pp, clModifySell);
return;
}
}
}
}

//+------------------------------------------------------------------+
//| 盷謥膼?鶇鍒? StopLoss |
//| 眈譇懤襝? |
//| ldStopLoss - 鶇鍒樇?StopLoss |
//+------------------------------------------------------------------+
void ModifyStopLoss(double ldStopLoss, color clModify) {
bool fm; // 婑飹 斁儰鐓罻灕?瀁賥灕?
int err;

if (IsTradeAllowed()) {
fm=OrderModify(OrderTicket(),OrderOpenPrice(),ldSt opLoss,OrderTakeProfit(),0,clModify);
if (!fm) {
err=GetLastError();
Print("Error(",err,") modifying: ",ErrorDescription(err));
}
if (fm && UseSound) PlaySound(NameFileSound);
}
}

//+------------------------------------------------------------------+
//| 盷謥膼?鶇鍒? StopLoss |
//| 眈譇懤襝? |
//| ldStopLoss - 鶇鍒樇?StopLoss |
//+------------------------------------------------------------------+
void ModifyStopLossInPoint(int pp) {
bool fm;
color clModify;
double ldSL=0, mp=MarketInfo(OrderSymbol(), MODE_POINT);
int err;

if (OrderType()==OP_BUY) {
ldSL=OrderOpenPrice()+pp*mp;
clModify=clModifyBuy;
}
if (OrderType()==OP_SELL) {
ldSL=OrderOpenPrice()-pp*mp;
clModify=clModifySell;
}
if (IsTradeAllowed()) {
fm=OrderModify(OrderTicket(),OrderOpenPrice(),ldSL ,OrderTakeProfit(),0,clModify);
if (!fm) {
err=GetLastError();
Print("Error(",err,") modifying: ",ErrorDescription(err));
}
if (fm && UseSound) PlaySound(NameFileSound);
}
}

//+------------------------------------------------------------------+
//| 鎬誺譇╠殣 瀔隮鼏 瀁賥灕??瀀臌蠉? |
//+------------------------------------------------------------------+
int ProfitPosition()
{
double pBid, pAsk, pp=MarketInfo(OrderSymbol(), MODE_POINT);
double pr=0;

if (OrderType()==OP_BUY)
{
pBid=MarketInfo(OrderSymbol(), MODE_BID);
pr=(pBid-OrderOpenPrice())/pp;
}
if (OrderType()==OP_SELL)
{
pAsk=MarketInfo(OrderSymbol(), MODE_ASK);
pr=(OrderOpenPrice()-pAsk)/pp;
}
return(MathRound(pr));
}

//+------------------------------------------------------------------+
//| 鎬誺譇╠殣 StopLoss 瀁賥灕??瀀臌蠉? |
//+------------------------------------------------------------------+
int StopLossInPoint() {
double pp=MarketInfo(OrderSymbol(), MODE_POINT);
double sp=0;

if (OrderType()==OP_BUY) {
sp=(OrderStopLoss()-OrderOpenPrice())/pp;
}
if (OrderType()==OP_SELL) {
sp=(OrderOpenPrice()-OrderStopLoss())/pp;
}
if (OrderStopLoss()==0) sp=-OrderOpenPrice()/pp;
return(MathRound(sp));


return(0);
}
//+------------------------------------------------------------------+


can ANYONE HELP ME TO DEBUG AND POST IT HERE

big THANKYOU
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
  #17 (permalink)  
Old 09-28-2008, 08:06 AM
Administrator
 
Join Date: Sep 2005
Posts: 20,058
Blog Entries: 241
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
You placed this file in wrong folder.
This file is not EA. No need to compile it.
It is some program to be used in your EA.

For example, you have some EA and you want for your EA to use this file.

Trailing file

Look at this post:
http://www.forex-tsd.com/3872-post6.html
__________________
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
  #18 (permalink)  
Old 10-05-2008, 12:58 PM
Member
 
Join Date: Jul 2008
Posts: 48
chiwing is on a distinguished road
SOLVED , nothing anymore

Last edited by chiwing; 10-05-2008 at 01:51 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
  #19 (permalink)  
Old 10-10-2008, 12:29 AM
Junior Member
 
Join Date: Aug 2007
Posts: 8
Matrix 78 is on a distinguished road
Ea

I want to do this thing:
there is an ea that can do it for me? (before write code i,maybe someone have do it before me)
I trade manually on mt4, so entry on trade
External paramet
Stop loss=40pt
Traling=55
Break even=35

So i entry at 1.4000 long this mean 1.4002 ask
the ea should be this for me:
1)Set stop loss at -40 so this mean (1.3962 ? or 1.3960 ?)
2)If we reach +35 so it mean 1.4000 +35=1.4035 (the market price not my bid/ask entry) at 1.4035 i want to move my stop loss at 1.4003 so at break even+1
3) When the price reach +40 so at 1.4042 close Half position, like if i use 2 lot or 0.2 the EA close half position
4) When price reach +55 start the trailing at +55
there is an EA that do it?
thanksss
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
  #20 (permalink)  
Old 10-10-2008, 01:51 AM
Linuxser's Avatar
User Root
 
Join Date: May 2006
Location: Helliconia (Winter)
Posts: 4,410
Blog Entries: 56
Linuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond reputeLinuxser has a reputation beyond repute
Quote:
Originally Posted by Matrix 78 View Post
I want to do this thing:
there is an ea that can do it for me? (before write code i,maybe someone have do it before me)
I trade manually on mt4, so entry on trade
External paramet
Stop loss=40pt
Traling=55
Break even=35

So i entry at 1.4000 long this mean 1.4002 ask
the ea should be this for me:
1)Set stop loss at -40 so this mean (1.3962 ? or 1.3960 ?)
2)If we reach +35 so it mean 1.4000 +35=1.4035 (the market price not my bid/ask entry) at 1.4035 i want to move my stop loss at 1.4003 so at break even+1
3) When the price reach +40 so at 1.4042 close Half position, like if i use 2 lot or 0.2 the EA close half position
4) When price reach +55 start the trailing at +55
there is an EA that do it?
thanksss
There are many EAs on the forum that could to that.

Please, fread this thread and the inserted links: Trailing Stop EA

And this one: Swiss Army EA (Automatic order management)
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
metatrader trailing stop script, mql4 trailing stop, MT4 trailing stop script, pendind orders, profit target, script, trailing, trailing stop, trailing stop mq4, trailing stop mql, trailing stop script


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
ATR Trailing Stop - Help Boiseboy Indicators - Metatrader 4 59 11-06-2009 02:24 PM
Help Needed Making Perfect Trailing Stop EA sbwent Expert Advisors - Metatrader 4 31 08-07-2009 07:41 PM
Trailing Stop Script - Not EA iscuba11 Tools and utilities 3 07-02-2007 03:22 PM


All times are GMT. The time now is 10:31 AM.



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