MQL4 and MetaTrader 4 - page 1004

[Deleted]
Hi I would like to ask you, it is possible to setup OrderClose() on my price not Ask or Bid? When i try to close position on my price i receive error 138, because actually price is different then my. It is possible to setup "pending close" something like pending buy - OP_BUYLIMIT ? Thx for help.
[Deleted]
  2 ema  (2)
/*[[ Name := 2EMA system-v03 Author := Copyright © 2003, Smoky Link := http://www.company.com/ Notes := 2 ema I use 5 minute on EUR Update on every tick := Yes Positions := Long & Short Enable Alerts := Yes Disable alert once hit := No Lots := 1 Stop Loss := 50 Take Profit := 360 Trailing Stop :=...
[Deleted]
Hello, Can we declare variables in a loop, by this way for exemple for(i=1,i=10,i++) { variable+"i"= value+"i"; } Thank you for your help
  Cubic root  (2)
Hello, How to take cubic root in MetaTrader ? for example: CubicRoot(8) = 2; CubicRoot(27) = 3; There is only SquareRoot sqrt(4) =2; Perhaps Logarithm function should fit ? Thanks, Edas
double zuizongbuyzhisun=NormalizeDouble(zuidapingcang,Digits);                                   if((MarketInfo(Symbol(),MODE_BID)-zuidapingcang)>zuizongjiange*Point)                                    {                                       for(int i0 = 0; i0<OrdersTotal();...
Hello guys, i used the function in object for have this result: StopLoss_MR=20.00000000StopLoss_MR,F=1StopLoss_MR,1=20.00000000StopLoss_MR,2=1.00000000StopLoss_MR,3=25.00000000 but i have this:StopLoss_MR=20.00000000StopLoss_MR,F=1StopLoss_MR,1=20.00000000StopLoss_MR,2=1.00000000StopLoss_MR,3=25...
hi everyone i would like to know if someone can teach me how to pull the high & low from a day before my open order to put in my EA thanks in advanced B.T.w. anyone knows if by "MT5" exsist Debugging step by step or other way to do it?
[Deleted]
hi guys, I need a help of a programmer or an expert. I am looking for a simple breakout EA which has the following options. I would like to set up TP/SL and trailing stop. Select a reference candle or time range, than place pending orders like buy stop/sell stop to the high/low of the candle....
Hello, I'm looking for a way to keep my past trades marked with an arrow ( or something similar) on entry and some other mark where I closed and possibly a doted line drawn from entry to close of the trade, is there a tool that I could use to do just this automatically?
[Deleted]
Does anyone know of current issues with MT4? I've tried two different brokers and I cannot complete loading an MT4 demo. When I get to the screen that fills up with green bars, the login and password is not given. As I said, this problem shows up with two different brokers.
[Deleted]
HELLO FRIENDS, I AM NEW IN FOREX..I WANT A INDICATORS WHICH TELL BUY SELL SIGNALS AND ALSO TELL STOPLOSS OF IT..SO PLEASE PROVIDE ME BEST SIGNALS... THANKS IN ADVANCE
Hi all! I am watching my mt4 terminal charts and notice that sometimes there are these "spikes" in price. Surely a coder in the mql4 forum has created a strategy to "capture" these profits when the price spikes very high/low, very quickly. These spikes must be created by traders placing buy/sell...
This is an answer, rather than a question. I searched for an anwser for my question and all I found were threads started by other people asking the same question, with no complete answer. I think I solved the problem I was having - so here is the answer for the next person. (I hope I am correct). I...
Dear Coder, i need for help to fix my e.a which can't op_position base on indicator. thks. //+------------------------------------------------------------------+//|                                                     RSIARROW.mq4 |//|          Copyright 2012, Multitrade-International Software Corp....
[Deleted]
Is there a way to find out (decode) which indicators and their settings make up a template and/or a custom indicator?
Hello guys. I wanted to ask you if there is any function or somebody has any idea to determine the index of last formed fractal in a bar chart. If I refer to ifractal() I can determine the price but not the index. Thanks in advance.
Hello! Im currently using MT4 with a few tabs on different pairs and have saved & renamed them as "xxx" profile. 1) Would like to know how to transfer this "xxx" profile to another new computer. (just in case this current HDD - harddisk gives up on me) Supposing it can be done, 2) Will the...
[Deleted]
FXDD or GO Markets provide MT4 sofware that can open many trading windows, so a trader can trade more than one accounts at the same time on the same terminal. Forex.com.uk doesn't, you can not open the second trading window, if you want to trade your 2 accounts (both are at Forex.com) at the same...
[Deleted]
Hello all, I'm new. You can tell that I'm new, right? Please to meet you all. My, it's a hundred years too early for me to appear before all of you wise folks, but here I am, wishing to ask a burning question, so if I may... "Programming in MQL4 is fun, but can you, one day, rest your ballooning
Hi all what is the command to have only 4 digits after the decimal when working with mt4excel ? for example if we devide 1.2967 / 3 = 0.4322333333333333 i want just 4 digits in the cell 0.4322 after the decimal Thanks in advanced
[Deleted]
I'm new to MQL4 and want to learn to write my own EA. I want to download the book that is on this site: https://book.mql4.com/ but the download is no longer available. Can that be made available somehow?
[Deleted]
The documentation says: double myindicator = iCustom(Symbol(), int timeframe,.....); In myindicator there exist : iMA(Symbol(), Period_H1,...) iMA(Symbol(), Period_M15,...) etc. What timeframe should I take for myindicator ? What happens, if I take the wrong timeframe ?
Hi all ... It's easy enough to create a horizontal line, but I would like to add the ability to drag and drop the line into a new position on the chart and return it's position. I'm wish to use the returned value as a stop loss value. Any ideas? Regards ... G-fer.
Hello : I have a problem. When I open my MT4 platform, I get a pop up MetaTrader 4 LiveUpdate window saying there is a liveupdate 4.00 (build 438). When I try downloading this MT4 4.00 build 438, my anti-virus software alerts me that Gen:Heur.Zygug.4 virus has been detected and the terminal...
[Deleted]
Hi This is my first post and I can see that this is a vast community with a lot of resources. I'm looking to find or create a template that can actively show my active trades with PnL for each trade and the total PnL for all trades instead of using the standard terminal from meta trader I would like...
Hi, I want to write a routine to make buy/sell decisions based on: - Current price for EUR/USD and USD/CHF - Min and Max of these pairs over the last 24 hours I prefer to do this in Excel as I know it quite well. Is there a MT4 function I can use in Excel which will give me the min and max of a...
[Deleted]
Let's say I want to setup an alert based on whether an indicator (like RSI), rises above a certain level? Can I do that and if yes, how
Hello forum. I have been having problems with MetaQuotes Language Editor, in that when I copy code to paste elsewhere, it shuts down (The editor part of the program, but not metatrader4) Extremely annoying and time consuming and does not happen when I use my laptop. I tried installing new versions...
[Deleted]
does anyone have short term volume and price oscillator (SVAPO) indicator. Please write / share code file for this indicator. code for amibroker is given here. also i can share metastock & tradestation code for this // input parametersPeriod = Param("SVAPO period", 8, 2, 20, 1 );CutOff = Param("Min....
[Deleted]
Im currently trying to fix an EA of mine that Hedges EURJPY with EURUSD using Correlation the correlation is below a certain level and opens a BUY and SELL trade of the two pairs using two different lot sizes it will close the trades once a 1% profit has been reached, usally with one trade in loss