MQL4 and MetaTrader 4 - page 202

I am toying with some ideas for a future indicator and I am stumped at this problem: The indicator draws some lines across the screen as soon as it is loaded, as expected. Then I save the chart as a template. Then I load the template in another chart and the indicator is loaded, but it doesn't draw
Hi community, I am new here, starting to play around with MT4 and it looks great. I usually trade the forex market and sometimes the FTSE100 index. My question is about the index. I was wondering, since the FTSE100 is supposed to be a regulated index by Eurex, would it be possible to get some sort
Hi,I'm new to programing. I have problems using the Mathrand() function in the strategy tester. I hope to conduct a MONKEY TEST with the Mathrand() function, but it does not operate in a way I want. In a Monkey Test, I hope to create a series of random trade results, by Entering / Exiting each
Hello Guys I am facing difficulty to test and run a demo robot on MT4 and I need a solution. I was successful to rent virtual host for a month and also I see the EA name on experts under navigator BUT when it comes to strategy tester nothing happens. I don't know what went wrong?! I even watched and
Hi There fellow coders, I have been working on a correlation EA, well it is two different EA's on two correlated pairs( separate charts) Once the two open trades come into a total profit I want to close both the trades. The problem I am having is I can't see how to identify the two trades on either
We all know the mq4 code for the CCI.... double iCCI ( string symbol , int timeframe , int p eriod , int applied_price , int shift ); And this is the mathematics formula, Value of CCI = (Typical Price - Xperiod SMA of TP) / (0.015 x Mean Deviation) However, how would you write it using the
I want highest high from specific candles a to b , say, form 6 to 12th candle, I want highest High. Can Someone Please Help me
I have written an EA that uses averaging and close all Buy or Sell trades at a certain profit. I use an emergency SL that is quite wide but no TP, of course. I find that often (not always) it seems to keep a trade in memory and waits for trades to close before it is activated. (Example given below)
Hello, I am new to coding with MQL4 and Expert Advisers. I have been writing my own EA for a couple days now and it has been running well however I would like to know how I could check the details of all the currently open trades individually and close then if a certain condition is met (Such as if
How to use MQ4 to get/ set Windows' Environment Variables? Can we do this
Hi, I struggle to partially close an order to 50%, I would like some help please. I've highlighted in yellow where I think the problem comes from but I can't think of anything else to get arount it. I keep having this error 131 which is Invalid trade volumes but I can't tell why... Hope that someone
double arrayvolume[]; double frist_eem= 0 ; double sum_ema_frist= 0 ; ArrayResize (arrayvolume, 101 ); for ( int i= 0 ;i<= 100 ;i++) { arrayvolume[i]=( double ) iVolume ( NULL , PERIOD_M5 ,i); } Print (arrayvolume[ 10 ]); Print (iMAOnArray(arrayvolume, 0 , 10 , 0 , MODE_EMA , 0 ));===>>>error array
[Deleted]
Hi seniors, I have created an EA that sends orders for me automatically. It works well, the condition is when close > value and OrdersTotal()==0, then send a limit order. My concern however is that the EA may continue to send another order when the first order has triggered stop loss or take profit....
please help me to solve this error in last line of loop , error array out of range??? why? double ma_valum(int shift=0,int number_of_day=100,int period=5) { double arrayvolume[]; for(int i=0;i<number_of_day;i++) { int new_size=i+1; ArrayResize(arrayvolume,new_size);
  Great EA in backtest!  (1495   1 2 3 4 5 ... 149 150)
Hello folks I found a very good EA that shows great results in Backtest, but wont work if its Loaded, can anyone fix this pls? Regards Link to download https://www.mql5.com/ru/code/8397 Edited: newdigital
Hi, I can't download indicators from MQL5 site unless they are posted in a Zip File or mq4 and ex4 format. If the indicator is like on the picture, then I can't download it. When I press the "Yes, I have Metatrader 4" and the OPEN "metaeditor.exe" LINK, then nothing happens. Also, I set the mq4...
Hi, I don't know what is a problem I not make such a thing to interrupt server I browse site 1-2 days ago lastly why is access denied
Hi I am new and trying to learn programming Expert Advice. I have simple EA and it is running fine. eg ticket = OrderSend(_Symbol, OP_BUY, lots, Ask, 100, stopOrder, orderTarget, "Buy Order", 1,0, clrGreen); How do capture or find out when StopOrder or ProfitTarget get trigger on a given order. I
I am using #resource directive for importing a technical indicator. The code on compilation always shows the error "Unknown Resource Type". It would be great if anyone could help me. Thanks in advance
Hi I am very new to MQL4 programming and I am try to write Expert Advisor. Here is my simple EA using RSI. It is working fine and also put order. But have a ticket id, which I want to reset to 0 (Zero) after stopLoss or profitTaken. I am having a problem to reset ticket to 0. Here is the code
I am currently backtesting an EA over a ten year period and have run into some trouble making it all the way through. I am using Tick Data Suite price history with 99.90% modeling quality and using a variable spread, accounting for slippage, etc. The EA doesn’t use any kind of martingale or grid
Hey guys, First of all, I'm a noob. So now that that's out of the way, I've got an account running with bdswiss.com and I've linked it to the Meta Trader 4 app on my smartphone. I didn't know there even was a desktop version I could run, so I just installed the app and started trading with a friend
  MT4 EA  (1)
Hi; Please help still learning coding, my code compiles but does not execute trades on Test, I also notice bugging button stays red, kindly correct my code
  need help  (16   1 2)
Hello all, I need help for my code The code doesn't execute as the following condition: BUY CONDITION: -Breakout of the upper bands on M15, and when the candle on M15 closed above the upper band,confirm the condition on M5 chart(wait the next candle on M5 breaks out the upper band too) SELL
I need some help. How to count days that the orders had been open including weekends and holidays. for example: buy/sell order had been open for 40 days, it should return 40 buy/sell order had been open for 20 days, it should return 20
I have written the code below that opens a buy and sell trade (a certain number of pips above and below the ask and bid price) at a specific time. How can I close/cancel one immediately when the other is opened? How can I close the opened trade if it's say X pips in profit or after a minute...
Good morning , I have a problem and need help please. I recover ... open = iOpen (Symbol (), PERIOD_M1 , 1); close = iClose (Symbol (), PERIOD_M1 , 1); I need open and close with 5 decimal places , but I come with 4 decimal places and if the string step puiedo not operate with them , and I need you
Hey, i tried to write code mql4 in stochastic's level Condition : open sell when volume[0]= close.Stochastic[3], close.Stochastic[2], close.Stochastic[1] > Stochastic.level(80); For detail picture = This Code is imposible success to compile, maybe somebody could write simple code mql4. THANK YOU
So I either do not understand for loops or visibility scope or both. I am just trying to loop through the history of my MA's and make sure they have not crossed over each other in a certain amount of time before I move on to my next criteria checks. For some reason I cant seem to get the loop to
  can't instal mt4  (3)
hi everyone. i had mt4 instaled a few month ago, uninstaled it. but when i try to instal it again, it doesn't work and send the error 0xc0000005 OR it does nothing at all. I already tried to -Reinstal windows over itself -fix the registry with ccleaner -try the cmd scannow Thank per advance for any