MQL4 and MetaTrader 4 - page 747

To post a new topic, please log in or register
I added this part of code, but does not work, all the others if it works, OK. int iHigh20H1 = iHighest(NULL,PERIOD_M15,MODE_HIGH,20,1); double highestPrice = iHigh(NULL,PERIOD_M15, iHigh20H1); if (highestPrice < Bid) int iLow20H1 = iLowest(NULL,PERIOD_M15,MODE_LOW,20...
Hello, How to exit properly from a EA? Regards, Pierre8r
Hello, Is there a MQL4 EA skeleton ? I mean a EA with log, error handling, money management, etc. already implemented ? Strategies are not coded, but everything else yes. Regards, Pierre8r
I am trying to determine the minimum and maximum profit/loss before the order closes. Somethings wrong with the code. Please review. Thanks OrderSelect(OrdersTotal()-1,SELECT_BY_POS,MODE_TRADES); { profitloss=OrderProfit(); if(profitloss>max)...
Hi every body. Is it possible to conditioncalculation of indicator formula for different TIMEFRAM ? Forexample, if the TIMEFRAME is WEEKLY – compare average 5 to 13, if the TIMEFRAMEis DAILY compare average 5 to 26 and so on ? Thank you,
How can you change it so the default chart is not black and green. I am forever changing the charts to a custom setting and would like to see it the default for new charts, and when backtesting too. Is that possible?
why i can not login my live account with the MT4 on android?? please help me.
Hi, I`m new to the forum and am wondering if there are a few people here that have experience with both ninjascript and MQL4? If so can you please comment on which you think is best and why? As I`m interested in learning one or the other to be able to program my own automated trading strategies. I...
Wondering if there is some kind of problem in the code base publishing process somewhere. I posted a code for publishing on 7/10/2012 and only get error "404 The page you have requested does not exist" when I try the link from my profile back to where the post is supposed to be ( https://www.mql5...
So it appears I may have triggered a bug in the Fibo's in MT4 (Build 432) and wonder if one of you can tell me how to undo what I did short of reinstalling. Or alternatively how I can get all my current settings and charts over to a new copy and leave the defective fib setting behind Here is what I...
What would be the way to calculate the n-th percentile of an array of data in mql4? I know I probably need to sort the array, but then what? Thanks
Hi I have no idea on programming. Can anyone pls help me to customize an indicate which gives the difference in values between two or three rsi values. For example, If latest RSI value is 46 and the previous candle's RSI value is 13, I need the value as 33 (diff between two rsi values). Also,...
  two EA simultaneous (11   1 2)
Hi boys and girls, I am not sure, but it seems that if I start two EA on different charts, then one of them is not working, only the one in the active chart is working. I left them to work online for two days and I have got messages from the first, and none from the second, but then I ran back...
Hello! I have Escape#1 and Stop Hunter..these 2 EA’s are great “Pips Hunters”!!being used by lots of profit traders..but problem is that ‘Escape’ cannot go 1direction! It shoot rapid lot orders totrap the chart half of the page! Wow! 1000pips in 1hr..thenbig lost come as it doesn’t follow trend...
Hi, I have set up extra profiles on my MT4 platform and was wondering if there was any way of pertinently saving them? as I have noticed that they do not appear in the MT4 profiles folder in my c-drive? Thanks Roman
Hello traders. I have a hedging EA that I found in the code base. Basically all it does is randomly opens a buy and sell at the same. It opens new trades when current have been closed by take profit or stop loss. Currently there are only 2 possible outcomes....either 1 loss 1 win or 2 losses. What...
I'm too new with this code, I've been try to fix it so many times and the result is False T_T at first this script open 2 order (buy &sell) and 2 pending order (buylimit &selllimit) step this EA is BUY -> BUYLIMIT -> BUYLIMIT ... SELL -> SELLLIMIT -> SELLLIMIT ... I need your help to change the step...
hello, my name is Jay and I've been testing a strategy lately and I was hoping one of our talented programmers here can make an EA based on it. the strategy: its a very simple one, I only use 2 indicators: the Heiken Ashi candles and an indicator called Mindhero ( both are attached), basically...
Hi All I would like to make an order, stop loss and a take profit, I dont know how because everytime I`m starting to decide on a stop loss and a take profit there is a "market closed" words that keeps popping up. I need an advice Im still new.
Hi all, I would like the code below to have the price values removed (from the right hand side of the indicator) so I can place a zero-line on the indicator BUT I do not know how to code. Would someone out there be kind enough to tell or show me how to do this? If so, I'll buy them a pint or two!...
Hello guys. I googled a bit MTF RSI and I found many indicators that did not work. I needed to plot two reading of RSI on one timeframe using two separate buffers. I noticed at first glance the indicator works but the readings are completely wrong. #property copyright "Copyright 2012, MetaQuotes...
Hello guy, This is my first post in the forum, I would like to start programming ExpertAdvisor. My friend follows the forex for a long time but does not know how to program ExpertAdvisor. I know I do some programming languages ​​like PHP, HTML,. NET, C, C + +, JAVA, JavaScript and many others so I...
Hello there, I am playing around a bit with an EA to allow proper pyramiding. I want to find if the last opened trade of a given type is risk-free. The thing is that I don't know the chronological order in which OrdersTotal() returns trades, the behavior of the EA seems no to change much. Which code...
Hi, I use 9 different EAs with 24 sub programs at the same time for one broker account activestrades. I manage this at a moment that I have 3 MT4 sessions installed on one server at the same time. Every session use 8 sub EAs programs at the same time. How can I handle this easier? Is it possible to...
How Can one restrict a number of open position par pair?
Currently, I am developing an complex EA, which is watching at several courses, evaluating these and giving trading orders based on this evaluation. I planed to use multiple EAs to realize this complex strategy (1 EA per symbol) + 1 masterscript which is controlling these EAs. Since I am doing this,...
Good afternoon, I am developing an indicator which draws a text label with a 270º angle, which means the label is displayed vertically. Here's the setting code: ObjectSet(labelName, OBJPROP_ANGLE, 270); It worked fine in b409, and b419. But for some reason, on b432, it does not and the label is...
Hi everyone. I have a question. I am working on a EA and the idea is to have as an input parameter the symbol i want the EA to run. I though on a combobox but i understand that mql4 doesn't allow a combobox. Am i right? I'm trying right now using an extern string variable. But it's not sending any...
Is there any way to takeprofit in pips? My base currency is GBP and im trading EURUSD. If I set my takeprofit as 25, it will close the order at 25GBP profit when i really want 25pip profit. ticket=OrderSend(Symbol(),OP_BUY,1,Ask,3,Ask-25*Point,Ask+25*Point,"My order #2",16384,0,Green); Thanks for...
Is there any way to make function iLowest() to return the most *recent* bar's shift when analyzing a series of bars, and more than one bar is found with identical low price values? Currently it seems to be returning the farthest away bar's index instead of the newer one... Thanks!