MQL4 and MetaTrader 4 - page 1584

[Deleted]
Hello, I have an indicator that makes alerts (signals) in metatrader. I need a script that can place the trade that the indicator has given an alert, in the direction with a stop loss and take profit that can be set in before, any ideas what/who and if this can be done? Thank you!
[Deleted]
HELLO PROS, IM A NEW BIES AFTER STUDIES HOW TO USED EA AND HOW TO TEST IT, I DOWNLOAD SOME EA FROM THE ONLINE LIBERARY AND ATTACHED IN MY CHART BUT IT DOES NOT WORK, WHAT HAPPEN, DO WE HAVE SPECIAL EA FOR SPECIAL CHART OR WHEN SOMEONE CREATE AN EA ITS FOR A PARTICULAR PURPOSE OR DO WE HAVE SOME EAs
[Deleted]
Placing the curser on the currency line (Point) a small window appears showing open, high, low, close and VOLUME. On the M5 chart I sometimes see VOLUME 145? Does this mean 145 lots traded during the line segment? Is this representative on the entire Forex, or just a small percentage? What is...
[Deleted]
We know we can create a trend line on the screen. But, is it an object that stays on the same position as it was placed. But, can we take a indicator like CCI or Stochastics and have them move and give them responsiblities like open and closing trades?
What will you tell about a demo the account? Increase in depot in 330 times for 2 hours!!! Working Orders:TicketOpen TimeTypeLotsItemPriceS / LT / PMarket PriceNo transactionsSummary:Deposit/Withdrawal:0.00Credit Facility:0.00Closed Trade P/L:3 393 973.85Floating P/L:0.00Margin:0.00Balance:3 403 973...
I want to call osMA indicator in my EA. Can anybody help me what changes I need to make to my EA to call a signal from osMA
Hi, I have programmed my day trading strategy, but I want it to run only in the daily trend direction. Is there any EA available which can help me find the dialy trend direction????
[Deleted]
  Erratic Behavior  (3)
Why a Expert Strategy has behavior in Strategy Tester and another in practice? In my account demo, I have done testing (past date period), with a result, then to apply in the account demo, not behaves just like. Thk.
Can anybody give me advice how I can allocate the second bar after midnight. For example in a 4 hour chart the chart that opens at 4:00. Thank you,
Stringo states that divide by zero stops EA... I cannot get this to happen. . ref: 'How to terminate an EA after it's done its job?' stringo 2008.06.17 11:16 Divide by zero in the EA stops your EA permanently. See https://docs.mql4.com/runtime/errors . 2008.06.27 20:26:24 divideByZero GBPUSD,H1:...
Hello folks! I've written a pretty complicated EA which makes a large use of arrays and I have some troubles to get things right. It seems like the program skips execution of some lines or mess up operations... yep, kind of strange and that's why I'm writing here. I've been programing forever in C,...
[Deleted]
Hello Friends, I am trying to trade based on Correlation between Pairs and Commodoties. I would like to know if it is possible to have two Charts on the same window. I tried searching on the forum but couldn't anything. Google wasn't much help either. Can someone please point me in right direction
[Deleted]
How do you store/capture a value, such as volume, after an event, such as ALERT, so that you can compare the next value to the last? int start() { int x,k; static int y; for (;;) { k=1; x=Volume[0]; Alert ("Minute ",Minute()," Vol ",x," ",y); y=x; if (k<10) k++; } //----...
[Deleted]
I wish to attach a ROC indictor to a standard chart, how do I go about this?
MetaQuotes Software Corp. is glad to announce that the registration for participation in the Automated Trading Championship 2008 starts on the 1st of July! From now on till the 19th of September, 2008 all persons interested can register for participation in the contest. Participation in the...
New article Two-Stage Modification of Opened Positions is published: The two-stage approach allows you to avoidthe unnecessary closing and re-opening of positions in situations closeto the trend and in cases of possible occurrence of divirgence. Author: Genkov
[Deleted]
How do I access more Forex charting currencies? I have 18 Forex currencies listed on my Meta Trader 4. My associate has 29 different currencies. Thanks, Fred
Hi, I'm trying to use the FTP function with metatrader but when I try to test it in the Publisher page, the platform cannot connect and return me following errors : 23:09:41 Publisher: starting 23:09:42 FTP: read answer error 23:09:42 FTP: login failed - 23:09:42 Publisher: error connecting to xxx...
[Deleted]
Hi there, I've noticed some strange bar behaviour when MT4 terminal connects to the server after being disconnected for a period of time. I wrote a simple indicator to examine this behaviour that prints details of the last 5 bars in a chart every time the start() function is called. The output...
[Deleted]
  Wininet and assigment ?  (18   1 2)
Hi all, I need some help - I'm trying to automate this process : Each day, I need to assign a new value to specific variables. I would like to upload a file on a server and that the expert advisor will be able to look for this file via internet and change the value of the variables with the new
[Deleted]
I can draw a rectangle fine, but what I'd like to do is have there be no fill in the rectangle, and just have the borders of the rectangle drawn. What OBJPROP would I need to call to set a border on a rectangle but have no fill? Thanks.
[Deleted]
Hello I have a weird problem with an indicator I wrote that uses IBandonArray. When I first drag the indicator on the chart it doesnt work properly -- the values of ibandsonarray are not displayed at all. However if I recompile the indicator while it is still attached to the chart it will start to...
Hi, Can anybody help me understand that the following if statment is not working??? double Minimum = lowest of last N candles;int ShortRSI=X; if(iRSI(NULL,0,14,MODE_CLOSE,1)<=ShortRSI && Bid<Minimum ) { ticket=OrderSend(Symbol(),OP_SELL,................. If I remove && part of the IF statment, then
I wish to utilize the same EA on many charts. Last week when I tested it, I had a condition whereby it would only place one order at a time. So if it was on two charts and the signal was generated, it would only place one of the two orders. So I modified it and now, I tested it over night and it...
[Deleted]
Hello, When the timeline is set to D-1 (daily), when does the currency price indicated become permanent on the chart and not subject to being re-draw or updated? Background: Timeline set at D-1 (daily). Chart is set to line display and the momentum function is displayed. We wish to place a...
Hi there, I need to import external tick information (pricing) from a csv file to metatrader as an offline chart. I searched the forums and now I know is possible. My problem is that I want the offline chart to be updated automatically every 5 minutes with new info in the external csv file. Is this
Hi, I am also one of the many people who are looking for a script to export indicator values to a .csv file. This is one of the things that should be standard in MT4. I'm convinced that the requirement to be able to program to really be able to use MT4 is not a good thing for 99% of the users
  Else-if Limit?  (9)
Is there a limit for the number of else if statements? I am attempting to define a couple of vars depending on what currency the EA is placed on. I'm running into a mismatched { error and the position referred to is sporadic depending on where I place a function - it's not always in the same place....
Hello folks - Just wanted to know if there's a way to make a custom metatraderindicator into a "native" MT4 technical indicator. Instead of iCustom,i would like to make calls to iMyIndicator (like iRSI or iADX) instead. The reason is -making iCustom calls in an EA makes backtesting verrrrry...
(English Version) Can someone help me write code in MQL4 modifying the opened order? I have in my EA the following variables: takeprofit=100; stoploss=50; lots=0.1; current_price; //the current market rate price_of_opened_order; //the rate when the order was opened...