[Deleted]
#property copyright "Copyright 2013, MetaQuotes Software Corp."#property link "http://www.metaquotes.net"//This ea sets the stop loss for a trade, given the lots used in the trade and the risk factor inputed. extern double risk_factor = 0.02;extern double reward_risk_ratio = 2.0; int...
[Deleted]
Hi, Experts Please advise me how to open chart windows always in maximized form specially when CTRL + TAB is used to change chart windows already saved in profile. Kind regards wkurukul
Hi, Someone help me. How to know runing expert name in other indicator? thx
[Deleted]
Very good, I wanted to get a file with OHLC historical data, fractal and zigzag. I developed what I think is the main part, and I'm learning MQL4 language. But the rest of code would be to get these EURUSD historical data on all timeframes? thank you very much for ( int i= Bars - 1 ;i<= 0 ;i--) {
hi all, i just finished writing an EA. the EA works just fine, only that it generates many alerts. every time after the conditions have been met(crossovers) if there is a movement in the 5th digit there is an alert. Isn't the shift field used to take values from "x" bars relative to the current one?...
Hi, please if s.o. can confirm or tell me a mistake or if s.th. is missing except the the code to admin. the targets before and after this: I want to catch if the new target for a buy-position is too close to the actual price: double pointProfitBuyTarget = (qtsTarget - Bid)/Point;if...
I just setup MT4 on another machine. After downloading historical data from MetaQuotes for GBP/USD, I then tried to test my EA in StrategyTester, but nothing happens. The screen is stuck on 'waiting for update'
I have looked around, and I have determined how to use the time of day / day of week to determine strategies in my EA. My question is, does this actually work in the strategy tester? (I am not sure how the strategy tester pulls the time) - Props to Raptor for this source code btw. Additionally...
Hi everyone I am kinda new to programming and am currently trying to code my own EA. when im tried to backtest my EA using the ordersend() function, the EA starts to execute too many new orders and thus ccausing the EA to overload and thus getting the error 148. According to my understanding, the...
With the help of forum members i have been able to put together an EA. Now while my EA was running i noticed that every time the EA generated an alert, the journal shows "custom indicator oscillator removed." Just for convenience the indicator is also display on the terminal. so every time there an...
[Deleted]
Couple hours ago I downloaded and tried to use two EA. I've found the manual how to optimize the strategy: http://www.easyexpertforex.com/backtesting-optimization.html . I have run the optimization and the optimizer gave me many results. The best result was copied to input parameters and then I...
Hi I creat New EA,when I test it in Strategy tester in MT4,it work for some day then screen is freezed without any error in journal tab!!! can any one Help me!!
Hello everyone, i came across a function offered on one of the trading platforms. it is something like this : once an open order has reached take profit the pending order will be closed for that chart. has anyone come across such a script for mt4? help this poor soul manage his trades :D
Hi guys, I’minterested in strategy that modifies pending stop orders price (buy stop andsell stop) in that way that it keeps both at the same distance from the market.So if the market moves up, buy stop pending order as well as sell stop pendingorder will go up and vice versa. Is it possible to have...
Hi, when I declare a variable in a included file, if this var is called of a included file loaded from it, the compiling fails, examples... THIS WORKS FINE Script... #include <include1.mqh> // note: without this comment between include commands, the SRC style shows all in the same color #include
dev = dev * 1.0; Why does the above line compile, but if I add a negative sign (below) then I get a compile error '-' unexpected token? dev = dev * -1.0;
Lets consider 4 moving averages : double EMA1 = iMA ( Symbol (), 0 , 1 , 0 , MODE_EMA , PRICE_CLOSE , 1 ); double EMA2 = iMA ( Symbol (), 0 , 2 , 0 , MODE_EMA , PRICE_CLOSE , 1 ); double EMA3 = iMA ( Symbol (), 0 , 3 , 0 , MODE_EMA , PRICE_CLOSE , 1 ); double EMA4 = iMA ( Symbol (), 0 , 4 , 0
Dear Coders, I need a simple EA (MT4) that moves stop loss to Heiken Ashi open price plus some pips for sell position and minus for buy position. Stop losses should be moved to complete bar open, not to current bar which is not closed yet. Will be most gratefuller if you post the code. Thank you in...
This one trader from Australia appears to have found the holy grail we have all been looking for? I've been following his Mt4 Charts blog site http://harryoo.blogspot.com/ for almost two weeks now. He posts the daily one-minute chart of his Mt4 Expert-Trader-Program trading the Emini CFD every...
[Deleted]
Hello Everyone, I have done backtest for my EA on H4 using Strategy Tester, Control Point setting. I have few questions and hope you can help. 1. Using broker historical data, the results on Fxpor, Peperstone, FXDD, Axitrader are not the same. The shape of the balance Graph is similar across these...
[Deleted]
Hi Everyone, I have a problem with Strategy Tester - it always returns in log window: 2013.10.12 16:00:43 There were 1 passes done during optimization. I did some manual testing during previous week and this EA send many pending orders and many of them were activated, so one passes during tests...
Hello, I need some help to create a simple Array(I guess thats what I need). When I get a signal I have stored the time of the signal like this: datetime TimeofCross; TimeOfCross = TimeCurrent(); I get the time of the current signal but I would also like to get the time...
[Deleted]
In code I have the following lines if (g_stopBuffer[bar] == EMPTY_VALUE) g_stopBuffer[bar] = g_stopBuffer[bar+1]; The g_stopBuffer is not drawn on screen i this case. I spent lots of time guessing why, but if I add another couple of lines and get: if (g_stopBuffer[bar] ==...
An EA that I wrote and demoing stops working sometimes (I don't know why!). I have written an indicator which continually checks the EA's operation and sounds an alarm when it detects that the EA has "gone to sleep". I then restart the EA manually. Is it possible to have the indicator restart the
I want create a EA. EA work like. Take profit start with 50 pips. then every next trade TP will be double form last trade. What is the calculation solve this problem. 1. Trade TP : 50 2. Trade TP : 100 3. Trade TP : 200 4. Trade TP : 400
[Deleted]
Hello can somebody tell me how to find the indicator is moving with trend or not? Is their is a method available which help to find the indicator is moving with trend
Hi You can create a new custom window? as image? grateful
Hello, I want to identify which of the open trades has the biggest open loss. And then I want to close it or a part of it. I got the part with the biggest open loss, but I do not know how to add the ticketnumber to that information in the array. so I could select this one trade after I guess...
Hi all, I'm trying to calculate a cross currency price from two majors. I get close but not exactly. The broker is variable spread. E.G. EURUSD bid:1.35000 ask:1.35002 GBPUSD bid:1.59290 ask:1.59297 EURGBP bid:0.84747 ask:0.84756 dividing the bids I get: 1.35000 / 1.59290 = 0.84751 dividing the...
Hello gamonies :D tu je reptaj I don't know where to report bugs. I have some words in memory from moderator Raptor.. but don't have enough time with this all.. soo.. https://forum.mql4.com/5719 - I'm sure that policy form MQ here is bad. - Add: option: Clear Experts/Journal logs (save to file -...

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.