Please help me with this problem, don't know why i can't double a value by this double a= 0.1 * 3 ; But if i use this it will work well double a= 1 * 0.3 ; Even i change the code to this double a= 0.1 + 0.1 + 0.1 ; it still doesn't work well. Never have this problem before, don't know why, anyone
I have a simple MQL4 program that creates a simple one line text file for each minute with the datetime/open/high/low/close values. I then have a C# program that copies the output file from MQL4 to a network directory so that a secure/isolated pc can process the values in a database. At the end of
Hi, This ea opens/closes positions perfectly with forex pairs, but doesn't work with stocks, commodities and so on, i believe problem is digit number, can someone help with that
What is the calculation principle of index iForce, I need your help. Thanks in Advance
Hi folks, I'm trying to find a good example of posting JSON data in MQL4. Is there an easy way to do this? Thanks in advance
Hello, hoping someone might be able to advise me on this. I am wondering if there is a way of showing your local time zone (in addition to broker time) when you hover the cursor over a bar on MT4. I have found clocks that will display local and broker time and GMT etc for the current bar, but am yet
I use a broker in Europe whose MT4 server is based on GMT. Hence when I move the cursor, the GMT date/time is displayed at the bottom of my MT4 screens. Is it possible to have my local (Australian time) displayed as well as the GMT server time either on the bottom of my screen or better still in a
Is there a fix or add on to change time on cross hair to local time ? I don't want to have to calculate 10 hours difference for every part of the chart I look at
So for my strategy I want to close half of the open position when it hits a TP1 value and then I want the remaining order to be modified so that the new stop loss is set at the open price . The code below is what I have, but I'm not sure how to make it work using the OrderSelect and OrderModify
I have been using the MT4 MACD visually and manually to trade MACD and trigger line crosses. Visually the MT4 MACD histogram and red line cross at similar to typical MACD crossing lines. However, the MT4 does not provide any code to make use of the 3 element MACD for crosses which I was unaware of
Hi, The prices I am seeing in the Order window do not match the chart data. Does anyone know the reason for this? Thanks
Hi coder,... Hope all is well I have made an indicator that uses buffers to display arrow up and down,.. Having complex code around 1200 lines The problem is that when the indicator loaded to the chart and new data comes from server, and conditions meets on some candle for the up arrow,.. The arrow
I am working on an EA that has some success, but also has failures during volatility. For example: if 5M MACD down to sell. However, volatility and candles are actually going up quickly. So we get multiple selling and s/l's hit because 5M MACD is delayed with the move and isn't actually up but is
Hello guys. I have to change my PC and, as you can read in the title of the post, I would like to avoid the stressing job of reset every single chart and EAs of my new MT4. It is possible to transfer the whole MT4 on another brand new MT4?
if ( ( iOpen ( NULL ,Timeframe, 1 ) <= SMAS1 && iClose ( NULL ,Timeframe, 1 ) > (SMAS1 + gap) && ( iHigh ( NULL ,Timeframe, 1 ) - SMAS1) < ATR && iHigh ( NULL ,Timeframe, 0 ) > ( iHigh ( NULL ,Timeframe, 1 ) + gap) ) ||
Hello, I try to read the data from the 100pips Momentum_1 .4 indicator, but I get very large numbers for each candlestick. double BuyBuffer= iCustom ( NULL , 0 , "100pips Momentum_1.4" , 1 , 15 , "" , false , false , false , "" , 4 ,i); Thanks for an answer
I was running this EA on demo for testing. See the image showing a Buy signal and when the 1M and 5M MACD crosses down it was suppose to close trade but it didn't. I don't see why but the code seems ok to me. Thanks //+------------------------------------------------------------------+ //|
Hello, please help Please give me some advice on what I should do about this... zcolor = ObjectGet( "prev-LR-Trend" , OBJPROP_COLOR ); if (zcolor== clrDarkBlue ){zBias= 3 ;} else if (zcolor== clrDarkGreen ){zBias= 2 ;} ...so, I'm creating an object ( a OBJ_STDDEVCHANNEL) over
Hello. I'm looking for these indicators : Profit Taker 7 MM Trend Momentum LTF Price Action HTF Price Action Which are for MT4. I have already searched online but could not find these exact one's. Thanks for your assistance
Hi, Ok so I have an issue with my EA that I use as a screener / setup alerter. Here’s how it works: I set it up on any chart, M5 TF, and it scans through a predefined number of pairs (which corresponds to my watchlist). For each pair, in the example I give it gives the low of the last couple of
[Deleted]
Hi, Ive been trying to convert indicator logic to a function but it seems not to work and I get repainting issues. Please see the code attached and let me know where I've gone wrong because this doesnt make sense to me. Attachments are original code and include containing the function. Original
the pivot range's simple but effective , pivot = ( high + low + close ) / 3 , the range two lines are calculated like that, range = ( high - low ) / 2 , 1st line ( above the pivot ) = pivot + range , 2nd line ( below the pivot ) = pivot - range , at the next chart i draw all the lines manualy cause...
Hi Guys How do you change the font size and font face in a ListView object? It looks like there are no methods to do that and it seems like a fairly basic requirement. Regards Steve
Hello, I got this trading strategy from a friend who trades equities. Looks like I am getting good results so far. The strategy is pretty simple: Components: 4EMA, 10EMA, 50SMA BUY: 4EMA crosses up 10EMA and both are above 50SMA - StopLoss=Lowest point in last 5 bars - TrailStop=20 - TakeProfit=60...
Hi everyone, I've created EA that using ichimoku indi as a condition to open order. In the EA I've created 2 magic number to open a STRONG or WEAK open position. The problem of this EA is when the indicator indicates there's a WEAK open position and start to open position every tick like the ss I've
Hi, As mentioned in another section ,the intention of this thread is to explain how to use centered Triangular moving averages to gain an edge in the decision making process prior to entering or exiting a trade. Let`s start by the simplest and most important point...How to decide the Half length of
HI I would like to be able to toggle some/all of the indicators on and off when viewing the chart, is this possible ? Thanks N
Hi I'm in the early leaning stages of coding, can anyone help me modify the break even code. The EA opens trades on a new bar open, but I would like the break even stop loss to move when the tick reaches the correct point not when the new bar opens. Any help would be great. Thanks if (BreakEvenAt> 0
Hi Can any one help i can't seem to clear the Error:- 'symbols'-undeclared identifier in the line double ask = MarketInfo(symbols,MODE_ASK); input int OpenTradeTime= 0015 ; input double Lots= 0.01 ; input string TradeComment= "D1Long" ; input int MagicNumber= 200 ; input int
Hi These days I have discovered the Murrey Math indicator (very good, by the way). Although it has helped me a lot, what I'm really looking for is an indicator of recurring levels: basically what it does is draw a horizontal line where it crosses the largest number of candles, the more candles 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.