MQL4 and MetaTrader 4 - page 1111

  efficiency of EA  (5)
Dear all Does anybody know, if I put most calculation into reference section (i.e. below return() of start() ), the efficiency of EA can be improved or not? (for example, shorter time used during running of backtest) Wing
Dear all If I want to open another order immediately when an order is closed automatically by hitting stop loss or take profit, how to write it? (if the original order is closed manually, I know how to write it, but have no idea if it is closed automatically) Pls help! Wing
do any tools can set pend order by horizontal lines? send it manually in MT4, easy to set a wrong SL,TP thanks
//+------------------------------------------------------------------+//|                                                    Parabolic.mq4 |//|                      Copyright © 2004, MetaQuotes Software Corp. |//|                                       http://www.metaquotes.net/...
Dear all, Please help me on the following issue: When my EA open an OP_BUY order, it will open an OP_SELL_LIMIT order at the same time. When the price reaches certain level, it will open an OP_SELL order to lock up the profit. When everything runs smoothly, it will close all three orders...
[Deleted]
I am new to the EA community. After months of learning and coding, I finished an EA and backtested it, but it only works for EUR/USD 1 min chart, which generates about 70% return from Aug 23, 2011 till today. But I tried it in 1 min chart of GBP/USD with a break-even and 1 min chart of AUD/USD...
For instance, if you do not know how to use this trading robot in real trading, and you do not know what to do with it, you may use it as a tool to assess the performance of the robot in real trading, or to check the profitability of the robot. I have an stp broker - the broker does not look bad and
How does the iClose() function work? In other words when I look on my chart and identify a bar 0, shouldn't this function pick up the value of the close for that particular bar? In putting together an EA, I was able to tie-out bar 1 and bar 2 close values from the iClose() function with the...
I have these results finally after completed optimization based on Drawdown, for a period of 1 year. My question is just so silly, but i cant help asking: what these optimization results tells me? and what now? also, Which pass is true, and which ones are fake? The picture is below, and the htm...
[Deleted]
I'm Trying to find a function that will tell me the setting of the "Positions" choice box in the "Expert Properties" window -- i.e., only long, only short, or long and short. Can anyone help me? Thanks. dennisne
Hello there every1. I'm working on an EA. I am trying to use the zigzag and moving average indicators while i get this error. 2011.10.14 11:53:59 Master EURUSD,M1: invalid integer number as parameter 2 for iSeries function I have checked the perimeters for the ZigZag as well as the Moving Averages...
Hi, how can I add a button on the chart, so when somebody is clicking on it, all open positions would be closed. Can I do that in my ea or do I need an indicator for that?
HI, I have a horizontal line on my chart which is manually positioned. I would like to position a text label next to it in an EA. So far I've tried -- double ypos = ObjectGet("Horizontal Line 35541", OBJPROP_PRICE1); and double ypos = ObjectGet("Horizontal Line 35541", OBJPROP_YDISTANCE); along...
[Deleted]
Good day, I would like to create a curved trend line indicator. It must work like a normal trend line, exept that it must be curved according to a specific equation. It however does not seem possible to do, unless I am mistaken. Any suggestions in this regards will be much appreciated. Best regards
[Deleted]
a same EA performs entirely different on history test at different mt4 platforms.
[Deleted]
  Newbee first question  (12   1 2)
Hello guys, I try the very first code in MQL4book below. https://book.mql4.com/programm/execution The compilation is fine. When I "drag and drop" it to a chart, the window show up and I leave it default: Checking only "Enable Alert" and "Allow import of external experts" Once click ok, the first...
[Deleted]
As you could see from my attached pic, there is no chart(and also no data) from June to September. Data are just downloaded from mt4's historical center, from "MetaQuotes Software Corp." How to solve this problem?
Hi, Is it possible to use a number of copies of the same indicator on the same chart but with different time frames when the indicator does not have the time frame as a variable ? If so, how? If so, how do I differentiate between them and tell which is which ? Thanks for any and all assistance.
Is it possible to call MT4 or MT5 from an external program written in C++ or Visual Basic? And possibly pass some information?
Found one of these things on the net. Can anyone explain what the point is
Hi, I wrote one dll that after it starts to work after 10-20 minutes get below error in my MT4: 2011.10.13 19:04:28 Indi1 EURUSD,M15: function 'ind_Ichimoku' call from dll 'C_Source.dll' critical error When starts it works properly but after a while I get above error. In dll I am using dynamic...
Hi everybody, I usually trade with Renk Charts. When I open the platform, I must authorize all DLL calls on the charts. Is there a way to authorize all these calls without flagging all the requests? With a script, or other ways, could you suggest a way? Thank you!
I have this code before. The StopLoss is set at 30 points at the moment, but when a trade is placed, the stop loss on the trade is anything between 60 and 70 points. Seems very random and I cant work out what is causing this. Can anyone help me with this please ? if...
[Deleted]
I have spent quite a bit of time on this to get it to work. Tried other Trade Order formats and that didn't work either. I have never done any programming before when more than one currency pair is used in the code. Am still new at the code also but doing ok. This thing has got the best of me...
[Deleted]
  Server Down?  (2)
So, will it be that way every week-end?
[Deleted]
Hi all. I'm new to mql4 but I do my best to learn coding. I have created my first EA using custom indicator which I post below. Indicator //+------------------------------------------------------------------+ //| DT-ZigZag-ATR.mq4 |...
I have this for the True Strength index: Parameters Raw (Raw = 25 ) Smooth (Smooth = 13 ) Indicator programming NetChg = MOMENTUM [ 1 ] Value1 = EXPONENTIALAVERAGE [Smooth]( EXPONENTIALAVERAGE [Raw](NetChg)) Value2 = EXPONENTIALAVERAGE [Smooth]( EXPONENTIALAVERAGE [Raw]( ABS (NetChg))) IF...
[Deleted]
Hi, Given the current weakness of both EUR and USD, and the subsequent volatility of the market, it would seem to me that backtesting & optimizing an M15 timeframe-based EA on any more that the most recent 12 months of Historic Data would be a complete waste of time. I would like to know what...
[Deleted]
Hello Forum, does a triggered buy_stop order get a new order with a different MagicNumber? If so, how can i get an association between this two orders? Thank you in advance