MQL4 and MetaTrader 4 - page 299

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
Hi and sorry for my poor english. Actually i'm trying to add alerts on chart for my MT4 interface. I'm able to draw lines but i need to put special graphic symbols in place. Is someone able to help me ? thank's by advance
  chartevent  (5)
i write some chartevent for redraw some object in chartwindow but in debug mode if i insert a break point in chartevent function , it can gatch everone event if i clear the break point , some event will lose what can i do to fix it
Hello, I need Indicator to ema Example for buy 1. open candle h1.. example 1.3300 2. EMA 100, distance to open candle 10 pips at 1.3310 3. Indicator calculate distance of open to ema 4. Indicator calculate 1.3310 - 1.3300= 10 pips .... 5. 10 pips x 125%= 23 pips 6. suggest indicator buy at 23 pips
Hello everyone, I'n new on this forum and know very little about mql programming, but I have created my own indicator using an online expert advisor builder app. The indicator is very simple, it is based on the change of the direction of the Momentum indicator . ( I use this indicator for binary
Hi Guys, I am a new experimenter of Virual hosting server provided by MetaQuotes. I am wondering if it is possible to change the stoploss value with MT4 platform when the EA is runing  on the Virtual Server. Did'nt find much about it.. THANKS
Hi I created a EA using MQL4 (build 1090). Everything was going to plan until i wanted to us it on a different PC. I installed the same copy of my brokers MT4 on both machines but they respond entirely different. The PC i developed the EA opened and closed trades as expected but on the other...
Hello everyone, i'm having issue with set up my personal alerts on price level, the issue is that.. in last weeks i noted a decrease of quantities of alerts i was avaible to set up.. right now i can only set up 4 alerts on the metatrader4 ( i'm using 18 forex cross so you can imagine only 4 alerts...
Hi, my graph draws a series of vertical lines following specific indicators. If i want to check the position of the last i have found this function datetime  ObjectGetTimeByValue(   long     chart_id,      // chart ID   string   object_name,   // object name   double   value,         // price...
So I draw my trend lines on the monthly chart, then on the weekly , then on the daily and then on 4h. The problem is that the trend lines coming from higher time frames are not respected on lower time frames, and instead I have this huge gaps from where price is and where my trend line drawn on a...
I am looking to use this indicator -  This indicator generates a blue arrow to indicate start of buy trade and red arrow to indicate start of sell trade. How can I read the blue and red arrows in the OnTick() function of Expert Advisor? Best regards, Ashish.
  double numbers  (5)
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;
  cci modyfication  (1)
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...
[Deleted]
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...
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...
[Deleted]
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 :)