MQL4 and MetaTrader 4 - page 5

To post a new topic, please log in or register
A thanks to Marco vd Heijden whose comments showed that I was going in the wrong direction. I am trying to apply high and highest as well as low and lowest to a Bollinger Bandwidth indicator. I am new to MT4 programing. Code was copied from a BBW indicator. Then High(...Highest(...)) and Low(.....
I am running a scalping strategy and with all the chart trade arrows, my chart is unreadable. Is there a way to remove them ?
Hi coders, I need help on fixing OrderModify Error 4108. I am trying to develop EA that buys incrementally (Scaling In) with trailing stop on each order. Error happens when particular order hit the stoploss and later EA tries to modify the same order for trailing stop but, of course, EA cannot find...
Hello guys, Adding and subtracting datetime value within a single day can be done without any problem but doing such calculations which leaks into next day or previous day give some erroneous results. For Example I want to find out the time after adding TimeCurrent() + 23 hours, how to do it? At the...
I am trying to display two versions of a custom indicator (with differing lookback periods),  on the same chart, but when I try to change the indicator width or line style in the indicator properties box, it just disapears off of the chart after pressing "OK". What do I need to enable to allow the...
  Excess Printing (29   1 2 3)
I only want this to print the Spread to the Experts Journal when it places an order when the spread is low enough. Now it prints one every time (their is a Tick?) and more annoyingly, makes a sound. I want to fix it, not just eliminate the sound (< 8) Thanks for any and all assistance....
Thanks to Hendrick Stam for sharing this winning system and expert advisor. This EA (Phoenix 4 Contest) is currently 2nd place at ATC 2006 hosted by MetaQuotes. Phoenix_4_CONTEST.mq4: running live at ACT 2006. phoenix_ea_v5_6_03.mq4: the latest version. Hendrick: It’s time to start a new thread...
I am designing a robot in MetaTrader 4 that will trade 7 currencies, at a time. I want to make a B (Buy) S (Sell) or W (Wait) decision in the Current (1 of 7) currencies based on the current signals from the BSW signals in the other 6 currencies.  The way that I set it up, each currency has a...
Hi, Recently the icon for sharing a page to my news feed disappeared. Is there an explanation for this? Thanks!
When I refreshed the navigator window to show new EAs (build 670), I see the new EAs available for trading.  But I do not see the new EAs available for backtesting in the strategy tester. So that means that either the strategy tester also needs a 'refresh' button to refresh the available expert...
Hi guys, how can I disable combobox  ? (ComboBox.mqh form Controls ) I need to lock it and not allow to select items.
Hey guys, I'm a little stuck here. I downloaded the currency strength indicator from bug located @ https://www.forexfactory.com/showthread.php?t=300750 (file name CCFp_v1.0.2cvert.mq4 ) and opened up the data folder and pasted it into the library as well as indicator folders in mql4, restarted mt4...
  iForce (1)
Hello, I´m experimenting with the iForce indicator. And now I want that mt4 give a signal(arrow) as soon as the iForce indicator reach a defined value. May be 0.2. I tried it with this way. if(iForce(NULL,0,1,0,PRICE_HIGH,1) >= 0.2){          string FR="ArrBuy "+TimeToStr(CurTime());...
   EA on the local computer can trade, I use the VPS after the club's official website, but can't deal, display an error "trade operations not allowed by Settings", and why?
Hello can someone help me.I just download two indicators on my PC. I like them and I want to know is their a way to transfer them to my mt4 account on my iphone and android cellphone.
If yes, How can i get hold  of that unopened-chart's id?  I want to  apply ChartRedraw() on that chart. SO i need it's id. P.S: pure MQL solutions proffered, but if you suggest DLLs, please explain how to efficiently use them. Things mustn't slow down.
TheRumpledOne is now coding FREE indicators for MT4 I am having a blast!!
I want to know total profit of open orders (BUY position + SELL position) I also want to include swap + comission. I don't want to use AccountProfit, so I tried to calculate total (BUY+SELL orders). I coded below but when I check with Print(Total_profit), the value is different from MT4 current...
Please help. I am trying to get this into an array I can work with in mql4. No luck so far. [{"orderid":291,"symbol":"GBPNZD","type":"sellstop","price":"1.72","sl":"1.7320","tp":"1.682","ts":100,"expiry":"0000-00-00","status":"pending"},{"orderid":292,"symbol":"GBPNZD","type":"buylimit","price":"1...
With the following code, using the variable "period" (which can become PERIOD_M5, PERIOD_M1, PERIOD_H1) and the variable "long" (various integers) c = NormalizeDouble (iClose (NULL, period, length), Digits); if they were set to PERIOD_H1 and 4, I was sure I would have obtained the closing price of...
  Smtp gmx mt4 (2)
I have enabled smtp access in settings of gmx. However I get test message failed. Is this the correct configuration for gmx mt4 smtp settings? Also, On the gmx setting page where can I find "Send and receive emails via external program"?
I've created a dll that sends email with/without attachment to gmail For sure you can use it with hotmail/yahooetc. Setup Copy the dll to the MetaTrader_Path/Experts/Libraries folder. Copy the xpMail script to MetaTrader_Path/Experts/Scripts folder. These are the xpMail inputs: ServerFor gmail we...
Hi everyone I'm having trouble with my code specifically when the moving average goes above the upper band of the Bollinger band I want it to execute a buy order but it seems like it will only send a buy order if is above the band or if it is above the moving average regardless of the other...
I could not get bbwidthBuffer[i] drawn by the terminal. It would show a blank indicator window beneath the price chart. What is wrong with my coding? Counted_bars=IndicatorCounted();    i=Bars-Counted_bars-1;    while(i>=0)    {       bbwidthBuffer[i]=(iBands(NULL,PERIOD_CURRENT,bb_period,2,0...
hi where i can download MetaTrader 4 Client Terminal Build 432 file ? i need the file for runing testing tick story
trailing stop which activates after 20 pints of profit and has to shift every 10 pips but I kicked something Where i do mistake ? //+------------------------------------------------------------------+ //|                                                         od17.mq4 | //|...
What I want to do is to create a trendline with angle based on 2 anchor points and then find the angle using ObjectGetDouble() so it can help me do various trading tasks such as finding chart patterns. See the code below : // OnTick() event handler                void OnInit() {     // Finding 1st...
Hello,  Im trying to modify long positions on mt4 and im using a for loop to change the stop loss to move it up as the profit values are quite high and if it doesnt reach that value it sometimes ends in loss when it couldve still be very profitable, I dont know what im doing wrong and ive been stuck...
Hi I just started in MT4 and I am trying to back test the EAs that come with MT4. for some reason they only do one trade regardless of the timeframe. Am I doing sth wrong?