Forex
Google
New signals service!

Go Back   Forex Trading > Programming > Metatrader Programming


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
  #311 (permalink)  
Old 02-26-2008, 06:50 PM
MiniMe's Avatar
Senior Member
 
Join Date: Nov 2006
Location: Montréal
Posts: 1,297
MiniMe is on a distinguished road
if thats not possible how to modify the current TP ?

Like I need to add 5 more pips to the current of the TP
__________________
x.x.x.x.x. $$$ x.x.x.x.x.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #312 (permalink)  
Old 02-26-2008, 06:52 PM
Junior Member
 
Join Date: Nov 2006
Posts: 20
pipsmaster is on a distinguished road
Quote:
Originally Posted by Devil2000 View Post
Few of my EAs working with OrdersHistoryTotal() and it's doing well on backtest. Your problem maybe on OrderComment() function. You can use it as identifier only when it's an active order. For closed order, MT4 modify it a little bit, adding [tp] if it was closed by takeprofit or [sl] if it was closed by stoploss.
So my ordercomment doest work on backtest. Ok i will add double check for istesting or not.
Thanks for the reply. Can you tell me the MT4's newest function or syntax site?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #313 (permalink)  
Old 02-26-2008, 07:03 PM
MiniMe's Avatar
Senior Member
 
Join Date: Nov 2006
Location: Montréal
Posts: 1,297
MiniMe is on a distinguished road
don't bother reply I got it
__________________
x.x.x.x.x. $$$ x.x.x.x.x.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #314 (permalink)  
Old 02-26-2008, 07:04 PM
Senior Member
 
Join Date: Dec 2005
Location: In front of my trading desk
Posts: 345
Devil2000 is on a distinguished road
Quote:
Originally Posted by pipsmaster View Post
So my ordercomment doest work on backtest. Ok i will add double check for istesting or not.
Thanks for the reply. Can you tell me the MT4's newest function or syntax site?
I think you can find everything about it here.
__________________
Need a professional MQL4 programmer? PM me
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #315 (permalink)  
Old 02-26-2008, 07:07 PM
Senior Member
 
Join Date: Dec 2005
Location: In front of my trading desk
Posts: 345
Devil2000 is on a distinguished road
Quote:
Originally Posted by MiniMe View Post
if I have an order placed by an expert advisor, later on I decided I want to remove SL and TP and set them back to 0.000 is that possible ? if so how ?
Sure..
Code:
if(blablabla) OrderModify(OrderTicket(),OrderOpenPrice(),0,0,0,0);
Quote:
Originally Posted by MiniMe View Post
if thats not possible how to modify the current TP ?

Like I need to add 5 more pips to the current of the TP
Code:
if(blablabla) OrderModify(OrderTicket(),OrderOpenPrice(),OrderStopLoss(),OrderTakeProfit()+5*Point,0,0);
Hope this helps
__________________
Need a professional MQL4 programmer? PM me
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #316 (permalink)  
Old 02-26-2008, 07:10 PM
Senior Member
 
Join Date: Dec 2005
Location: In front of my trading desk
Posts: 345
Devil2000 is on a distinguished road
Quote:
Originally Posted by MiniMe View Post
don't bother reply I got it
You post it after I click on reply button
__________________
Need a professional MQL4 programmer? PM me
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #317 (permalink)  
Old 02-26-2008, 09:12 PM
MiniMe's Avatar
Senior Member
 
Join Date: Nov 2006
Location: Montréal
Posts: 1,297
MiniMe is on a distinguished road
Quote:
Originally Posted by Devil2000 View Post
You post it after I click on reply button
thanks a looooooooooooooot for your reply, I am still new in programming so I appricate all the help
__________________
x.x.x.x.x. $$$ x.x.x.x.x.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #318 (permalink)  
Old 02-27-2008, 03:40 PM
Junior Member
 
Join Date: Nov 2006
Posts: 20
pipsmaster is on a distinguished road
Quote:
Originally Posted by Devil2000 View Post
I think you can find everything about it here.
Ok, i will try your tips, to read the history comment, 4 char from right to get [tp]/[sl]
that is nice idea, you're great coder

Last edited by pipsmaster; 02-27-2008 at 03:43 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #319 (permalink)  
Old 02-28-2008, 06:33 PM
Senior Member
 
Join Date: Dec 2005
Location: In front of my trading desk
Posts: 345
Devil2000 is on a distinguished road
Quote:
Originally Posted by pipsmaster View Post
Ok, i will try your tips, to read the history comment, 4 char from right to get [tp]/[sl]
that is nice idea, you're great coder
Thank you, but "to read the history comment, 4 char from right to get [tp]/[sl]" is your own idea
__________________
Need a professional MQL4 programmer? PM me
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #320 (permalink)  
Old 03-14-2008, 03:55 AM
MANSTIR's Avatar
Senior Member
 
Join Date: Nov 2007
Posts: 143
MANSTIR is on a distinguished road
how to make pivot calculation ea?

pivot : (yesterday high price + yesterday low Price + yesterday closed) / 3

exp : pivot for usdjpy --> 100.73
add : + 20 ( for buy)
add : - 20 ( for sell)

ea enter buy when price goes to '100.83' and enter sell when price is '100.63'

Last edited by MANSTIR; 03-18-2008 at 08:00 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Tags
automated close order, close, eas, forex, learn mql4, learn mql4 video, mql4 learning, OrderCloseBy, profit, reach, secure profit function, T101_v1.11_orest_IBFXm.mq4, learning mql4

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
Learning Cycles For New Traders Dan7974 General Discussion 350 01-18-2008 07:04 PM
Learning to code for autotrading GoatT Metatrader Programming 8 01-10-2007 09:55 PM
Self learning expert mrtools Expert Advisors - Metatrader 4 32 10-22-2006 06:29 PM


All times are GMT. The time now is 11:59 AM.



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