MQL4 and MetaTrader 4 - page 84

To post a new topic, please log in or register
Hello. Can someone please advise me what would be the shortcut key for Pause/Break Pause strategy tester? I use visual mode for testing and I have EA to pause when ever I it trades, And find it very troublesome to click everytime I need to restart. I have been searching for more than 3 days but...
I would like to obtain a unique ID in indicator code, to ensure that indicators on a chart do not interfere with each other. Originally, I used the MathRand() function, which unfortunately does not return unique numbers as I expected. Probably the random generator runs in every indicator...
A beginner question. Tried scripts from: https://www.mql5.com/en/code/mt4/scripts with the MT4  strategy tester . In some of them I get 0 errors  0 warnings but Results and Graph are remaining  empty . (Testing MACD Sample.ex4 and Moving Average.ex4 on the other hand, gives the Results and Graph...
I'm running MT4 build 1090 on a windows 10 laptop. I am trying out the free indicators, utilities, and EAs from the marketplace and they load and work fine during the session but after I shut down the terminal and relaunch, I get an error message saying that they won't load. I have closed out my...
Hi everyone.. Does anybody have indicator to give an alert for the candle body. For example if the body of the candle is more than 30 pips it will give us an alert. Appreciate it.. :)
Good afternoon, I have a question that I would like to resolve. I'm working with a builder ea, and to enter the market, buy or sell, you have to meet two conditions. CONDITION 1 MA 10> 20 CONDITION 2 The MA 50> 300 The problem is that the order only enters if the two conditions are given at that...
hi every one. I need an Expert can modify the first pending order (entry price, stop loss and take profit to be matched with the same type of Active order . Ex: Open position  buy entry price : 1.2900 take profit 1.1965 Stop loss 1.2800 1st pending order the same type Pending order buystop entry...
  Market condition indicators/tools (84   1 2 3 4 5 ... 8 9)
The first indicator (or indicators) for market condition was created by Igorad. It is AbsoluteStrengthMarket_v1.1. It was described starting from this page to this one. ------------------------------ Description of the color: Blue: Up; Red: Down; LightBlue: Bear Market Rally; Orange: Correction;...
Hi, I would like to add a sound alert to this mq4 indicator(it seems very simple to get it done but I am really not good at even the basic coding), is there anyone who could help me, please? thanks in advance! yours, shunfengcn
I want to edit this ea profit base system..like 50 pips withing one day (24 Hours). plz help me every one....
I'v created this function that will allow the EA to place another order when a current buy order exceeds 50 pips. The function works on testing but  problem is  it places the order too early for example when the first order has moved only 30 pips. What is the problem? Thank bool NTAB()  {  double...
Hi Guys! I want to create a class in MQL4, but when I compile it, launch some errors:     //+-------------------------------------------------------------------+     //| Classes                                                                      |...
Hi everyone, how I add in my OrderComment the current Symbol and the Timeframe? How I have to write this line?
Hi, how are you ? A few days ago I published this subject, but I did not get answers that would help me. Then I made a script that gets the highest price all day and also the lowest, showing the information in message boxes. But I also want to get the opening price of the 0 hours and the closing...
  Strategy to EA - teach me (12   1 2)
I tried to keep the subject short I have been trading profitable for 3 years with account management for clients for the past 18 months. I am now interested in turning my scalping strategy into an EA and I already know what I want but I'm a completely rookie when it comes to coding. So I'm lookin'...
Hi All, I am having trouble IHighest / ILowest to get the Correct High and Low Prices:  Part of the problem is that I am working with a 1 MIN Chart and I need the Highest high and Lowest low in the last 31 Days. My code works on a Daily Chart but not on a Minute chart. Here is the daily code that...
I've scoured the internet for a good ATR trailing stop indicator and EA. I found 1 of each that have been the best thus far, but they are still awful. The indicator its fairly useful. Plots support and resistance ATR using the visual dots the PSAR uses. The EA is junk. I thinking of combining the...
Hi, how can I code if I want a function of my EA is only executioning in a specified time. Example allways only in the 30th minutes of a hour. if (Minute()==30 && Seconds()==0) {....} Thanks for help.
I have MetaTrader 4 through Oanda and we are currently developing signals for FOREX. We have our own program which creates signals and emails to us in this format (we can change to any): Enter AUDJPY LONG AT 89.49600 STOP 88.84600 TARGET 90.44600 We'd like to automate this into MetaTrader. Can...
Hello everyone I want to ask if there is any course or a guide for MQL4 programming for a beginner. I searched on google I haven't found any, though I see many MQL4 developer but wonder from where did they learned all language skills. I know C#, C and SQl if it comes to basic programming other than...
Hello, Friends, my broker (and yours too, probably) has unpleasant limits for entering STOP orders. Sometimes I would need to enter BUY STOP (or sell stop) and it is not possible as it requires me to enter a price that is 20, 50 or so pips from the current price. This makes some trades impossible....
Interbankfx.com 66.114.120.22:443 MIGFX.ch 66.235.184.206:443 FXDD.com 66.151.194.185:443 Velosity4x.com 207.228.252.28:443 207.228.252.27:443 CoesFX.com 209.61.206.23:443 NorthFinance.com 83.220.163.101:443 MetaQuotes 66.235.184.162:443 Alpari 217.74.44.32:443 Orion 66.36.240.247:443 Windsor...
I created this feature for the time filter and it works, but if I close the Metatrader or compile the code for some modification, the function will no longer work. Should I initialize some variable? //Global scopeextern bool   TradeTimeFilter = true;          extern string      TradeBegin = "20...
Hi, I installed MT4 by Playonmac, but in terminal I don't have the tab market for install the application/indicators... How I can add this?? I tried to reinstall but nothing...
Shouldn't this line of code returned something other than zero? Print("Stop level in points=",MarketInfo(Symbol(),MODE_STOPLEVEL)); For me it simply returning "0" rather than the minimum stop level. I thought perhaps the stop level really was 0, (OANDA is my broker) so I tried setting my stop very...
Hi  I wrote an EA without sending/closing orders. for now I just want EA show me some Comments and an alert. It's not working well  and I can't find problems. Funny part is if I put Bullish(Calculate_Bullish_Volume()) and bearish (Calculate_Bearish_Volume()) in the comment Bullish is stop working...
  watch window (2)
All my watches show "expression could not be evaluated" How can this be remedied? Is it that "Wine" needs something installed?
Hi, help me realize, three-point automatic trendline, that you work at 1 minute? basic code in the file
Usually, when we attach williams percent range indicator to a chart, say 1M chart it just draws and fixes the line per bar. But I want it to fix the line per 5 seconds. In another words, WPR updates the drawn line per bar, I want it to update per 5 seconds. (not 5 ticks, not 5 bars, just per 5...
hello I have a problem with strategy tester I have one indicator that when i want to test it dont show indicator during test and I see naked chart but it show signals in trading chart!! why!!!!??? PLZ help