MQL4 and MetaTrader 4 - page 586

To post a new topic, please log in or register
Hi, anybody know of a program, indicator, ea, etc that will close my position when a candle closes on the wrong side of the stop loss, not when it punches through just to go right back in your favor, dramatically...? I hate those pesky stop hunters...
//+------------------------------------------------------------------+//|                                           SupportResistTrade.mq4 |//|                                 Copyright © 2008, Gryb Alexander...
Hello, The Print command has no effect in a script? Thank you kindly confirm.
Heya guys (and gals perhaps?)! I´m new to metatrader, been doing some very simple ea's and slowly making them more advanced. I am now trying to make an ea that buys when RSI is below 10 and when the last periods MA50 is higher then it has been duuring the last 50 periods. I have been searching alot...
I saw it somewhere but can't dig it up. Don't even know how to describe it. In strategy tester you can move through the preceding bars (or ticks?) instead of hitting the pause button every other second.
Hello sir how to show copy right on the chart lets say #property copyright "Copyright 2012" but this is not working on my chart ?
hi can somebody tell me how to remove comment in a through code ?
my EA has written the value of "Bars" to the MetaTrader log file. Since yesterday afternoon there is an unusual phenomenon. Nearly every two hours, the value is reducing by 128 points. example given: time     value of Bars14:30    120014:31    120114:32    120214:33    107414:34    1075...17:41...
FxAutomatedcom
Today i got a never seen before error when i tried to compile. It read like this "Variable name too long". I dont recall reading anything like maximum variable name length in mql4 book. Could this mean some things weren't published in the book?
FxAutomatedcom
  When will mt4 market launch (36   1 2 3 4)
Any updates on the launch date?
  NULL string comparison (16   1 2)
Hi, I've read https://www.mql5.com/en/forum/46695, but I still don't know how to test, if a string == NULL. The following results in false: string Str;string NullStr;      Str = NULL;Print(Str == NullStr); So what's the solution? Thanx.
I have an EA where I call a custom indicator and have some simple code to read shift 0 and shift 1 and do some comparisons with it and when a certain condition is true I generate an alert signal. The problem is that instead of getting this one alert signal I get several signals and I cannot...
  Please need help (15   1 2)
hi guys, i have the following problem, Im using a High and Low Period check for opening trades in my expert. For example, (Highest+Lowest)/2 is MIddle point it must buy below the middle point and sell above the middle point double HM1ask   =MarketInfo(M1,MODE_ASK); //M1 is the pair, it's...
I would like to program indicator similar to this one: ZigZag with Its Own "Channel",but instead of channel lines ends in ZIGZAG tops/bottoms, they should follow until price breakout/touches this line. Here is an example of such an indicator: I can see some issues regarding such an indicator, due...
Hi can some body tell me how to close the orders when a new comes means when a buy comes it close all orders related to sell and when sell comes closes all the order related to buy?
Hello everyone, I find have a different candlestick on my broker MT4 platform and Netdania chart. So that, It effect to my strategy when i compare value : High, Low, Open, Close of any candles on chart. I thinks that Netdania chart is better than MT4 broker and best for price action. So, anyone can...
Hi Guys, See below. I am using MT4 Build 509 on an Australian Global Prime ECN broker. 1. I cannot seem to use the loop variable i as the buffer array index directly. Have to change it to something else: shift = i, for example. Reversing shift and i give same result: a dark screen. No compiler...
Hi folks, Help needed. My advisor creates support and resistance levels in the main window as the day goes.. Those levels have certain life duration, which I define. When TimeCurrent() > exp..., the lines are removed. Everything works fine, but only when there is just one pair of levels on the...
Hello, I am working on an EA and have a problem with my BE function. For Example: BUY 1.00 BUY 1.10BUY 1.20Calculation of the BE is easy, it would be 1.10, so close all Trades if < = 1.10 But what do I do if I have this situation? BUY 1.00BUY 0.80 BUY 0.85First the BE would be above the price of...
Normally in the Setting tab in the metatrader 4 mobile for iphone got a message option and in it to find the metaqoutes ID. Since last night, i stop receiving notifications and reinstalled the new version build 505 and message is missing.
Hey Guys, my skills in MQL4 aren't that sophisticated so I have no idea why I get the Error 4051 all the time. It would be also very helpful I one could explain in more detail to me what an invalid ticket is, maybe I'll figure it out by my own then. Thanks in advance! This should the relevant...
  MARKET REPLAY (8)
Dear Members, I would like to find an add-on, or extra software for MT4 that would enable to do market replay (in a faster time than real preferably) and also paper trade at the same time. Could you help me with possible suggestions please ? kindest regards Peter 
Recently my send notification is no longer working for my EA. I have try testing directly using test notification from the option dialog from mt4 and got 403 error from the terminal window. Appreciate if anyone throw some light on why the notification breaks and how I can resolve it? Thanks.
#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...
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
  expert name (9)
Hi, Someone help me. How to know runing expert name in other indicator? thx
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--){FileWrite(f...
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...
Hi all, I need to shift a box object to be drawn starting from the left-side of the candle, not from the center.. is there a function to do this? Thanks