I am struggeling with this on the 5 min chart for GBPJPY. First "movAverA" gives correct value (ex. 141.5), but second "movAverB" always gives 0. What do I have to do different? barIndex is the index for each bar (looped). double movAverA = iMA("GBPJPY", 5, 12, 0, MODE_EMA, PRICE_CLOSE, barIndex);
How can i automaticly repeat the task of my EA when it's done can you help please thanks.
(22 1 2 3)
Below is my source code when the task is done i want it to be repeated automaticly i cant find the way to do it any help will be apreciated. void OnTick() { int PositionIndex; int TotalNumberOfOrders; slippage=10; volume=0.01; Count++; if(Count==1 )...
Two buffers indicator give me price target wich marchet must hit,sun or a later.Sometimes market price dont hit my buffer target. Loking to back ,how can i fund which buffer was hit and wich was not by the price? How to put this in a code mql4? Eny of ideea? I now the mql4 language but i dont now...
[Deleted]
This code will place an arrow on a chart with a unique name every second. Have tried everything to change arrow from up to down and change color from red to lime. Have had no luck. Is there some thing that I'm missing or not doing write? ObjectCreate(StringConcatenate("ArrowUpA",TimeCurrent())...
I am trying to put together an indicator that would show the signal line from the ADX indicator from the next three higher timeframes all on one indicator, the only variation being that if -DI is above +DI it will show as a negative value. I've got three lines displaying on the indicator, but they...
extern double Lots=0.1;datetime NewTime=0;int start() { if(NewTime!=Time[0]) { NewTime=Time[0]; if(Close[1]>=Open[1]) OrderSend(Symbol(),OP_BUY,Lots,Ask,3,0,0,NULL,0,0,Blue); else OrderSend(Symbol(),OP_SELL,Lots,Bid,3,0,0,NULL,0,0...
Hi, As my thread title implies I would like to know if TP/SL can be hard-coded into an existing EA. Currently, a trade is opened and then it is modified. Thanks. David.
I notice I can test up to 400 passes only. How can I increase this? And what does the 1280 below means? I know '3' means the current pass number and '630' is the total passes that are generated based on the optimization parameters I've set. Right now I just cannot get passed more than 400 passes...
Hi, i used the Strategy tester of MT4 previously in an intensive matter, and it was always running with almost 100% utilization of the CPUs. Now i am getting at most 20% of the CPU power when running the Backtesting. Am not sure it is related to windows or any update of MT4. But it is now really too...
Dears how to get the total of orders by orderType and OrderSymbol. and is there a way to know if the order close or not (orderClose event) any help
Hi everyone, I need a little Help with my Code. I want close every Trade after, for example, 20 Minutes. No matter if the Trades is profitable or not. It is possible to write this condition in my existing Code? And which Codelines and Definition of Variables I also need? I appreciate your help....
Hello, this is from my "I wanna know OOP" file. I'm stuck after message : Pointer to this function type is not supported yet.... And this is why I'm confused: it works sometimes. working one: here all pointers are working and pointing. bool MB() { int e=0; //--MB string name =...
Hi guys, What is the best workaround for having the broker server's time update lag like hell, like refreshing only once or twice every 15 seconds or so? I tried to put RefreshRates(); after TimeCurrent() command but it doesn't seem to improve anything at all... even using TimeLocal with...
Hello, Can you help with setting an EA for trading Binary Options with GO Markets? What is the format of the order comment for setting the option's expiry?
the objprop ray_right can set the line to right cornor but can't ray to left cornor , how to do this
Hello everyone, My first question is based around the code below. I would like variable (NoConnection) to descend while there is a internet failure. Return the value of NoCorrection is seconds and minutes void OnInit() { if(!IsConnected()) { Alert("Connection Not Available...
So I'm very new to coding and just looking at code. I am trying to figure out what "returnBars" and "calculateTMA" that are highlighted below refer to. Are they external indicator or what? Thanks for your help! <decompiled code removed >
I am trying to write an indicator that uses information from the ADX indicator and am trying to pull data from the ADX indicator the same way I do in my EA's, as follows: ADX_Signal[i] = iADX(NULL, 0, 14, PRICE_CLOSE, MODE_MAIN, i); // ADX Signal Line However, this doesn't seem to work when used...
Hi... i did the following code but it doesn't works... anyone knows why and could correct my error?
Hey Guys, I bought a few market items on the MQ4 market in my brokers MT4. Is ther anyway to export these to another brokers MT4? Thanks, Thomas
Hi i have a problem i write this and nothing change, the lots dont duplicate,why? help me please. #define PivotPoint "PivotPoint"#define PivotPoint_P 0extern int tp=25;extern int sl=100;extern double lotti=0.10;extern bool TENKANSEN;input int InpTenkan=9; // Tenkan-seninput int InpKijun=26; //...
Hello, sorry if this isn't the proper place to post- I know how to make a c++ program and how to make an MQL indicator. My question is, how do I make an indicator inside a c++ program, or in other words- Is there a library for c#/c++ that allows me to: - Query the state of a certain currency - Post...
Hi I have an active running EA which I am trying to control when the EA should start and stop trading based on conditions I provide. If anyone have any suggestions it would be much appreciated
Hi,i did some changes (more number of bars in tolos options, and downloaded more database from the history center) and when I try to do a test for an EA, it takes so long and the "bar" doesn't move, and those "error" (orange triangles appear in the journal), that I have to stop the test. What should...
hi, this is my first program with mql4, and I thing I have every thing to write the code, but I don't know how to write the stop loss with with a number of pips, is it posible? and if so, how do I do that? thanks
Hi, can anyone tell me how I can modify the lever in MT4? When I log on to my account I can choose the lever. Is it possible to modify this setting later? Thanks!
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.. :)
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.