Forex
Google

Go Back   Forex Trading > Programming > Metatrader Programming
Forex Forum Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


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 01-03-2006, 11:15 AM
Kalenzo's Avatar
Kalenzo Kalenzo is offline
Senior Member
 
Join Date: Dec 2005
Location: Bydgoszcz - Poland
Posts: 682
Kalenzo is on a distinguished road
MQL4 Learning

[CUT] This post was deprecated.

Last edited by Kalenzo : 02-27-2008 at 02:46 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-29-2006, 09:55 AM
nelmart nelmart is offline
Junior Member
 
Join Date: Nov 2005
Posts: 1
nelmart is on a distinguished road
EA convert

Hello

Who can convert me this expert for Meta 4.

Thanks for your help.
Attached Files
File Type: zip Robot-Scalper.zip (1.1 KB, 184 views)

Last edited by nelmart : 01-31-2006 at 02:36 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-25-2006, 02:30 AM
drtorque drtorque is offline
Junior Member
 
Join Date: Feb 2006
Posts: 5
drtorque is on a distinguished road
Unhappy stop-and-reverse TSL

hi everybody,
i am trying to find an indicator and ea that would set a benchmark distance a stop-and-reverse stoploss level at
X pips from the lowest low (highest high) since the last triggered bearish (bullish) trend.

say eur/usd is 1.2210 in a bearish trend, and lowest low since the indicator triggered the bearish trend at 1.2250 about 45 minutes ago, is 1.2200. if i set X=40, the benchmark for SAR system should be fixed at 1.2240. if price makes a new low to 1.2180, the new benchmark will move to 1.2220, down 20 pips as price did. else if price goes up to 1.2215, the benchmark will do nothing and wait for being hit. if it is hit at 1.2240, a long will be triggered with the initial highest high at 1.2240, so new benchmark SAR level will be 1.2240-50pips=1.2190.

i would appreciate if anyone can point out to something useful for this kind of a stoploss indicator and/or EA.

importantly, i dont want "close" prices to be referenced in calculations, either high or low of any of the bars should be referenced in calculating the SAR.

i think it is very simple to code but most of the programmers i asked for help was either busy or was not interested i suppose. but i need such a thing to stop me, or i am losing a lot of money :.(

thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-30-2006, 01:49 AM
BC Brett's Avatar
BC Brett BC Brett is offline
Member
 
Join Date: Mar 2006
Location: Vancouver, British Columbia
Posts: 33
BC Brett is on a distinguished road
OrderCloseBy()

Could someone explain to me how the OrderCloseBy() function works exactly?
I've already done a search on this forum and on metaquotes.net for detailed information, but with no luck.

bool OrderCloseBy(int ticket, int opposite, color Color=CLR_NONE)

The obvious scenario is when the order that "ticket" refers to and the order that "opposite" refers to are both the same size - they both cancel eachother out completely.
But what happens when the sizes of the 2 orders are different?
1. An error code is generated and nothing is closed?
Or
2. The smaller sized order is closed (its ticket# is removed from the system) and the larger sized order (minus the size of the smaller order) stays open (its ticket# remains in the system)?
Or
3. Something else?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 05-24-2006, 04:10 PM
folioboy folioboy is offline
Junior Member
 
Join Date: May 2006
Posts: 8
folioboy is on a distinguished road
I must be missing something...

I might be blind or i'm missing something... But when i trade manualy and put an instant execution order on long EUR/USD at price 1.2700 with 10 lots. Then i will let the trade run but as soon EUR/USD hits 1.2800 i want to close 5 of the 10 lots and let the other run. I know i can use Close Order and change volume to 5 and just close them, but is there a way to make this automaticly within the user interface or do i need a small script for it? So i dont have to watch the screen all the day....

/Best Regards
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 05-29-2006, 02:47 PM
Hubert Hubert is offline
Junior Member
 
Join Date: May 2006
Posts: 1
Hubert is on a distinguished road
Question NEWBIE Needs help

Hi, I am interested in obtaining info on writing a program using expert indicators. Or possibly hiring someone to teach me. Can anyone direct me, I am in NYC and have no programming knowledge but I do have a vast amount of financial markets experience.


Thank you in advance.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 05-29-2006, 03:00 PM
newdigital newdigital is offline
Administrator
 
Join Date: Sep 2005
Posts: 14,391
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 Hubert
Hi, I am interested in obtaining info on writing a program using expert indicators. Or possibly hiring someone to teach me. Can anyone direct me, I am in NYC and have no programming knowledge but I do have a vast amount of financial markets experience.


Thank you in advance.
You will find in this forum almost everything.

1. You need to read the Codersguru lessons. Even if you are advanced user or programmer:
- http://www.forex-tsd.com/metatrader-...opment-course/ and
- http://www.metatrader.info/
And there are some usefull threads as well:
- Can't you autotrade?
- http://www.forex-tsd.com/metatrader-...totrading.html

2. In Analytics section there are some other lessons (MT3 in English, something in Russian, and so on).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 05-31-2006, 05:52 AM
huaxia009 huaxia009 is offline
Junior Member
 
Join Date: Mar 2006
Posts: 7
huaxia009 is on a distinguished road
do u have any suggestions?

int start()
{
......

for (i=Bars-1;i>0;i--)
{
if (Close[i]=a+b)
m=i;

}
......;

}


as new quotations received, new sticks appears,and the index 0,1,2.... are pointed to different sticks. for example, Close[5] of current time is equal to previous Close [4] after receiving a new quotation. now, i assign i to m, the Close[m] is different between before and after receiving new quotations. how can i point to the same sticks with a fixed index or a varible whenever i reveive new quotations? can you give me some suggestions? thanks!

Last edited by huaxia009 : 05-31-2006 at 07:51 AM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 06-10-2006, 12:23 PM
mojojojojo mojojojojo is offline
Junior Member
 
Join Date: Jun 2006
Posts: 1
mojojojojo is on a distinguished road
Smile MT4 Questions

Hi, I been trying MT4 for quite some days now, and I have a few
questions regarding the software. Any help regarding these Questions
would be deeply appreciated...

1.) How do I enable Global Crosshairs...meaning how do I enable
crosshairs on all charts at the same time without clicking each chart
& enabling it one by one, and it is possible for the crosshairs to
stay on the chart even if the mouse button is pressed?

2.) Is there anyway to automatically load scripts in MT4? I have read
that it's not possible, but has anyone done a work around? Mainly I
use the Period Converter, can this script be achieved in some other
form which can be loaded automatically each time I open MT4?

3.) Is there anyway to hide the Indicator info(what the indicator is
and its settings), from showing to the top left of the indicators?

4.) Is there a script/expert etc, that i can use to enter(Buy/Short) a
"market order" with one click and exit(Sell/Cover) the position with
one click? The currect way in which you open several windows is slow
because I'm a scalper.

I hope I didn't go all out in asking questions, please bear with me, I
have not searched all the FAQs and all the Forums regarding to
Metatrader, that would take me years, but I have searched certain
keywords on metatrader forums and have not found anything that would
be of any help. Please answer in any way you can. Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 06-22-2006, 05:42 PM
rbowles rbowles is offline
Junior Member
 
Join Date: Jun 2006
Posts: 15
rbowles is on a distinguished road
How to display Graphics on an EA?

I have been working on an EA the last few days and with the help of this forum I have made some progress. I want to know how I would print an arrow or sometime of graphic that indicates where It is getting in a trade and where it is getting out. I no how to do it for an indicator but not for an EA.

Thanks in advance

Randy
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Learning Cycles For New Traders Dan7974 General Discussion 350 01-18-2008 06:04 PM
Learning to code for autotrading GoatT Metatrader Programming 8 01-10-2007 08:55 PM
Self learning expert mrtools Expert Advisors - Metatrader 4 32 10-22-2006 05:29 PM


All times are GMT. The time now is 07:37 PM.