Download MetaTrader 5

MQL4 and MetaTrader 4 - page 948

To post a new topic, please log in or register
i am a new to MQL4.I wanted to send an automated buy trade whenever upper arrow comes and sell whenever down arrow comes Can anybody help me to develop an EA based on the following indicator? https://www.mql5.com/en/code/9276
How can I close a part of a market order? Not the whole order, just a part of it, for example one half, one third etc. I want to do the following: 1. Open a market position (buy or sell) 2. When my first profit target is reached, close half of the position. For the remaining order, set a new...
Hi everyone, Happy new year to all! Can anyone help me express mathematically the the date time for the end of the day's trading session? I am using pending orders in my robot and I would like to create a formula that will set the expiration date to the end of the current day's trading.. So if I...
Hi all, When I attach EA to chart the "system" ask me some parameters (Common Long & Short Position and "Allow DLL import" and "Allow live trading" and other). I don't want set this manually always when I deinit ed init EA. Can I set this parameter in EA for automatic setting? Thanks!
I heard about Expert Advisors like Martingale, Grid & Fap Turbo - what mean EAs like that ?
I need the code to close all active trades if they have been active for longer than 30 mins. can anyone help? thank you.
Hello everyone, first of all I apologize for my English, I am an Italian programmer, I know how to start a script from an EA, for example in metatredder4's the script "trade" by default, how can we start from an expert advisor? Thank you very much
MT4EmailSender Send mass email from MT4 directly...... Click here to read more
Ok this is nothing special I just want to make an indicator that increases in value by 1 if bid is greater than last bid price or decreases in value if bid is less than last bid price. The variable I used for last bid price is called Last_Bidprice which I try to assign to bid. I have no idea what...
I just run this back test and the graph looked good so I checked the stats report. Can someone explain what it means. There is a total of 6 trades with 4 short wins and 2 long wins and yet it thinks 50% of shorts won and 50% of longs won. To add to the confusion there were 3 loss trades where did...
pls any one gide me ;- HOW TO ADD NEW CODE IN MTQ4 ?
find out the damn color of my indicator as i cannot see the pattern stored in the eight buffers (0-7) actually there is no pattern, or it is really complicated while i only have 2 colors. The buffers only give me price action. is there a way of "seeing" what is being painted? as is iCustom color or...
I have a friend using MetaTrader in the hebrew language. The terminal itself works fine and all menus are in hebrew, but his account name shows up as question marks. Also AccountName() returns question marks. This behavior is on windows XP and the setting for 'Regional and Language Options' >...
hello frds i am using standard 4 hours candle, how can i get customised periods like 3.5 hours or 210 minutes ? tks frds lerecidiviste
I'm an inch close to finish my ea but i can't do just one thing, so i ask for your help. How can i make the ea chose one option, like, Close If (......) Or If(......)? Thanks all
Hello all.... I know there has been a lot of discusion regarding CUSTOM TIME FRAMES... I've used the Period Converter and for the most part have been satisfied. That said, here's my question.... My EA is running in the 1HR chart... and I want to run a custom indicator against a custom chart.... in...
I need some script that can set a SL 2 pips below/above a particular M5 candle. E.g. I would enter on the beginning of the 9:40 M5 candle long then it would put a SL below the 9:35 M5 candle. I have been looking for hours now but I cannot find anything. Thanks
I need help creating an EA that will in order 1) Calculate the difference between high and low of the last closed candle ( Range=Prev_CandleH - PrevCandleL) 2) Compare this value to a a variable 3) If the difference between high and low of the last closed candle is equal or greater than user...
Okay, so with a few pointers from some kind folk on this forum. I've created an indicator that pretty much gives me a definitive signal. Basically I have it put an arrow in a separate window for my long and short entries and exits. I tried making an EA to follow it and it wouldn't do anything......
Hello, I would like to have an indicator that I can tell it the angle I want to project and click on the chart where I want a trendline of that angle drawn. Does anyone have such an EA or could write me one? OneOleGuy
Hello my friends Today I offer you the results of my work on real account from the beginning of the year 2010 to the end of trading today 22/1/2010 And thanks to God has been achieved 42.2% of the principal amount Risk only 10% with good stop loss Account management For more details, please send...
If a chart is locked at a 1 to 1 ratio, is the angle of the line between the closing of 2 adjacent bars, isn't the 'slope' the same thing as the angle of it?
I assume these colors have to do with the meaning of the code but what do they mean? Is there anywhere that defines what these colors mean? Regards, CV
I am writing some utility functions that I can add to any experts/indicators I create via an include file. For example: //--------------------------------------------------------------------------------//Function: CreateVlineObject//Purpose:  Creates VLine objects. VLines take one time coordinate...
Hello, I am writing my first Expert - Limit/Stop order. The idea is to activate Stop Order only then a certain level (support or resistance) is reached. It is necessary to input Limit and Stop levels as parameters. I use command OrderSend(Symbol(), with parameter OP_BUYSTOP or OP_SELLSTOP However...
Hi, I am thinking of the following logic: Take the first H4 bar from opening bell, measure the range if range > threshold then enter immediately, else do nothing. What is the code for getting the open and close for the first H4 bar of the day? ( Assume London open is the opening of the day.)...
Hi, I apologize if this has been asked already. The 'search' seems to be not working. Kindly assist in answering my question or pointing me to existing related threads.
How to modify the standard trailing stop code for dealing desk to be used for ecn? This is like the standard trailing stop code that is everywhere. Works for broker that does not charge commission. When I try testing on an ECN broker, some of the stop losses ended with negative profit because of the...
  Help to write some codes (13   1 2)
Hi, I wanna to write a code that start to scan chart in 8 GMT, when price move for example 15 pips in each direction, puts a pending order in opposite direction, i wrote some code but it didnt work properely, WHY? if(OrdersTotal()<Max_Order){ if (h>=8 &&h<9 ){...
Dear Developer, G'day I would like to create very simple Indicators. Due to security reason I would like discuss it personally. If you are interested, please mail me with Subject: MQL4 in your mail to raj.dreamjobz@gmail.com Lots can happen, keep charging. Be Awesome, Raj DreamJOBZ.com