Forex



Go Back   Forex Trading > Programming > MetaTrader
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
  #21 (permalink)  
Old 05-06-2008, 04:14 PM
Member
 
Join Date: Jul 2006
Posts: 32
agarwalsharma is on a distinguished road
Hi RickD

I am looking for EA to do the following;

If the pending order executed and end with SL the EA will put the same pending order again.

Some time the fluctuation end the trend with SL but if the market hit the same price again, it ends with TP.

Thanks for all your help.
AS
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
  #22 (permalink)  
Old 05-06-2008, 07:53 PM
Member
 
Join Date: Jul 2006
Posts: 48
Trader1 is on a distinguished road
Cool Simple hedge code needed

Programmers, Coders,

I want to insert a simple hedge function into an existing EA, so that when the open position is in a loss of (x) pips (MaxLoss) it triggers a hedge entry of (x) multiple lots. It needs a Hedge TP/SL with the option to exit on the next underlying entry. If anyone could provide me with a snippet of code or template I could insert it would be greatly appreciated.

Trader1
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
  #23 (permalink)  
Old 06-06-2009, 01:45 AM
kiromano's Avatar
Junior Member
 
Join Date: Feb 2008
Posts: 9
kiromano is on a distinguished road
Are you still around RickD?

Just came across this thread. Eventhough it's been a while since anyone posted here, I wanted to say thanks for the very useful code. The simplicity is wonderful.

In case you are still around, I have a good one for you. I am working with the timeline and trying to comeup with an average time difference between a recurring event. Then, I am trying to get the last event and add the average to that last occurrence. The thought being that there may be some value to knowing the possible average position of the next event.

You could say that the event is something like an macross up, or even a zigzag high.

Again thanks for the beautiful code.
__________________
“A loss never bothers me after I take it. I forget it overnight. But being wrong - not taking the loss - that is what does damage to the pocketbook and to the soul.”
Jesse Livermore.
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
  #24 (permalink)  
Old 11-17-2009, 08:19 PM
raene's Avatar
Junior Member
 
Join Date: May 2009
Posts: 10
raene is on a distinguished road
ADD PARABOLIC SAR to EA as a filter

I want to ADD A PARABOLIC SAR to EA as a filter. (currently 99% win rate but one losing order kills the account)
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
  #25 (permalink)  
Old 11-18-2009, 06:02 PM
Junior Member
 
Join Date: Oct 2009
Posts: 5
shawnmstout is on a distinguished road
trading functions

Hey I was wondering if there any quick drop-in functions that i can include in my ea's for trading functions, ill add a few for you guys that i created, i was hoping to have something similar for the following:

open buy trade
close buy trade (specific trade)
open sell trade
close sell trade (specific trade)
close all buys
close all sells
add trailing stop to buy
add trailing stop to sell

count open buys
count open sells

any other functions that control trading..

the simpler to initialize these functions the better imo

here is my donation to this project
this is for creating labels and lines on the chart

void LineMaker(string name,color LineColor,double price, string Description){
ObjectCreate(name, OBJ_HLINE, 0,TimeCurrent(),price);
ObjectSet(name, OBJPROP_STYLE, STYLE_SOLID);
ObjectSet(name, OBJPROP_COLOR, LineColor);
ObjectSet(name, OBJPROP_BACK, true);
ObjectSetText(name,Description,8,"Arial",LineColor );
return(0);
}
void LabelMaker(string lblname,int x,int y,string window,string txt,int size,string font,color txtcolor){
ObjectCreate(lblname, OBJ_LABEL, WindowFind(window), 0, 0);
ObjectSet(lblname, OBJPROP_CORNER, 0);
ObjectSet(lblname, OBJPROP_XDISTANCE, x);
ObjectSet(lblname, OBJPROP_YDISTANCE, y);
ObjectSetText(lblname,txt,size,font, txtcolor);
return(0);
}

as you can see i try to make it so its just a 1 line piece of code so that its easier to manage

my idea is to make programming easier and less code with just including the functions into the ea which would allow for easier manipulation.

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
Reply

Bookmarks

Tags
mql4 guide, mql4 orderclose


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
Welcome to the MQL4 course codersguru Metatrader 4 mql 4 - Development course 124 10-12-2009 01:45 AM
Arrays in MQL4 clippertm Questions 5 08-11-2008 02:16 AM
Help for convert from VT to MQL4 M-E-C Expert Advisors - Metatrader 4 11 07-27-2007 07:53 PM
www.mql4.com DeSt Metatrader 4 18 02-02-2006 12:59 AM


All times are GMT. The time now is 05:21 AM.



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