MQL4 and MetaTrader 4 - page 89

To post a new topic, please log in or register
hi I'm working with double numbers and after I normalize them with the following formula, it still remains non-normalized and has some digits that I don't need them. I want to know is there anyway to assure that if the double has been normalized correctly or not. I mean a formula to get the digits...
Hi, Please help on below that I keep seeing Error1 when the EA tried to modify the stop loss level? I already added the OrderModifyCheck  function provided by below link, but Error 1 still keep exist. https://www.mql5.com/en/articles/2555#no_changes_in_modification_request void MoveTP()   {...
Hello what does it mean this expression?...I'm confused with ? : etc. double price = (type == OP_SELL) ? Ask : Bid;
Hi, is possible to make modyfication: 1. add arrows 2. make level zero changeable as it is with upper/lower trigger 3. make final signal arrow/message on current/not current bar 4. make custom signals on/off cross buy lowertrigger - on/off cross buy level 0 - on/off cross buy upper trigger - on/off...
Hi I am quite new to coding and was wondering is there a function that can restart the terminal as there is a function on the live update that restarts the terminal? Thanks Antony
I am encountering the following problem while trading with Oanda through MT4 using an MQL4 EA. Now after 3 days of error tracing, debugging, monitoring, watching prices live, re-reading all the MQL book etc... my modest brain is near burning out due to effort plus frustration. Pointless to use the...
I have indexs in my code and I want to know the amount bars/ time from signal point and index. here is my code:  if (a[1]>=a[MaxIndex]) = OP_BUY; I  I want to know amount of bars between signal point and MaxIndex. How do I find time at MaxIndex? Thankyou!
Hello everyone, I found this post https://www.mql5.com/en/forum/150808 I am trying to get the example to work, but I have run into a problem with completely solving it. I get these errors: ')' - unexpected end of program     line 159 col  6 '{' - unbalanced parentheses          line  11  col  3...
hello everyone,  renko street trend is really interesting indicator when it is combined with renko chart, but it sometimes repaints, it is a signal bars indicator as you can see in the photo, so i am asking if there are no repainting version ? or if someone can recode it? it needs only one line of...
Hi everyone, Normally when the Buffers are printed, the minimum shift is 0. So you can only see the values from the past till now. My goal is to print the current value of shift 0 not just now, but till the end of the day. How can I do that ? It's an easier way to visualize for ex....
Please any one to advise before my purses. Thank you.
I am using MT4 and I cant see an obvious way of setting stop losses as trailing. Any ideas?
  Reverse Positions (19   1 2)
Hey everyone, can anyone please help me? i want a function that opens a position in reverse direction as soon as SL is hit.
Hi,my fellow  traders, I am using Heiken-Ashi-Smoothed(inputs: 2/5/3/2) for my EA robot. And I use Data Window for manual trading purpose  together with my EA. But I see only four decimal places for the values of  Heiken-Ashi-Smoothed like as : value 2: 1.0607 value 3: 1.0603 value 4: 1.0604 It...
It is an EMA20 based buy sell EA. But it opens positions frequently. I need to correct it. One position (per pair per time frame) only. And they must follow the TP/SL and TSL rules. Pls help. //+------------------------------------------------------------------+//                        DO NOT...
I made an indicator that can automatically put ea to chart. If i click windows taskbar (bottom), the indicator loses focus and the setfocus,key_event cannot work anymore. Is there any function that can setfocus over the taskbar? I tried SetForegroundWindow and ShowWindow BringWindowToTop ..etc. no...
For me it is quite frustrating not to be able to open the charts on more screens...
Hello, i have an idea that might work to get real volume on cryptocurrencies and i would like you to tell me why it's not goiing to work ! The Script joint is marketdepth.mq4, show market depth from exchange, you can choose from several feeds.  Is it possible to create an histogram with these data...
Hi guys, as title... I want to implement a function that close all orders when price touch the line i draw by myself... Is that possible? What can i do? thanks for any reply :)
I have a simple price action EA. I think the "business logic" works fine, from what I've seen in the tester, but I think there is a problem with the creation and modification of orders. This is for example the Buy function: void Buy(string comm) { double op=0,sl=0,tp=0; op =...
Hello, I was using attched mt4 indicator to get Renko charts on gold. Now I am using my new laptop and after installing this MT4 again this indicator stopped working not sure why? I allowed dll input as I remember it was a problem once on my last pc. OR please help to find another way to get renko...
Which indicator of mladen do you mostly use?
Hi All I am new to MQL and I am trying to replicate the code I used to have for Full Stochastic in MT4. Code I used to have for Full stochastic works as this, Step 1. Fast Stochastic is given as input to the stochastic function (For e.g say 14, and the output is stored in variable say K) Step 2....
Hi all, what to use as "Close" in the calculation below to find out SignalLine EMA of MACD??? I've been googling around to find how to calculate the SignalLine in a MACD-calculation. I know the following to calculate EMA of something but the last part with close is not clear to me in regards to...
I have a labelObject in the charts , and i can show it on the charts but i use the function to move the label to an other place is not work like this code       msg = StringFormat("%.4f", nowLow);       dvolue = nowLow - dWHigh;       td = Time[itime];       objname = sNameList[32];...
  StepMAExpert_EAs (539   1 2 3 4 5 ... 53 54)
StepMAExpert_v1.1 EA. H1 timeframe. 4 main pairs.
So I was on the demo account in a trade on the eur/usd. I was short and in profit. At 5pm the JOLTS Job Openings came out for the usd and it was positive (i know it is not a high impact news announcement) but it should be good for the usd. At 5pm though euro got a boost up and so my downtrend ended....
  MT4 on Cloud (4)
Is someone running MT4 on Cloud? Can you suggest good service providers there? Not looking at very costly service but yes not looking at more than an hour downtime a day that too during American session end and Sydney session start. Cheers, Guri
I am fairly new to this so please don't be annoyed if I sound silly . The subject is forex . So I've done research over the internet and you hear leverage this and that, leverage is dangerous ,take care , but leverage if used properly can give you some amazing returns but you need to gain a lot of...
I do it like this, but it seems a little hackish.  Is there a better way? Thanks.    for ( int i = bars; i >= 0; i-- )      {         Value = high[i-2];     } Also, is there a function that adds up the previous X amount of ohlc values?  MathSum is the only one I could find, but it only adds up one...