MQL4 and MetaTrader 4 - page 1351

This seems like it should be the most basic simple thing and I have spents HOURS just trying to find out how to get the CURRENT price of an Active trade that is already selected. Someone PLEASE help me!
[Deleted]
Hello, does anyone know about a method to retrieve a list of symbols (not only opened charts) from within EA or script ? thank you
  mixed array?  (2)
dear mql coders, i have got an expert advisor which is checking on several points for values on running orders. now im trying to get these orders once each tick and fill the order data to an array which will be available during the rest of the ea process. is there a way to put different data into an
[Deleted]
  assumption  (9)
Hi, Please help me! I'd like to put assumption to an expert. The assumption would be, that what was the previous position achivement. So the next open order depens on previous position closed by SL or TP. Thanks H
Hi! I am in the process of backtesting one of my EAs. I have done this a thousand times before. I have downloaded and fresh installed MT4 from three different brokers, downloaded history data from MetaQuotes in the history center. And set the GMT offset according to the different brokers server time...
[Deleted]
Hi everyone, Would anyone kindly show me if there is such codebase similar to the following idea/requirement: 1. user creates a horizontal Support or Resistance line or diagonal trend line on a particular time frame 2. user decides on how many pips above or below the horizontal/diagonal line must...
Hello, Is it possible to refresh an indicator, lets say every 5 min. from inside the indicator code itself? I cannot program my self so i need some code if it's possible. Thank you for reply in advance.
[Deleted]
Hello, i need to have an EA, which is capable to unload itself from code. how to do this please ?
Hello, I just found that there is an error on simple mathematic calculation like below: Print(" 80/100=" + (80/100)); I couldn't get the answer right 0.8, instead it returns 0. Anyone have face the similar problem?
Hi, I have written an indicator to fire a method when the bar closes. However it seems to be firing over and over once the bar closes. Any ideas, relevant code is below. int start(){    int limit;   int counted_bars=IndicatorCounted();      //---- check for possible errors      if(counted_bars<0)...
Hello everyone, I give out free signals on my blog and I am wondering if someone can help me write a code which helps my visitors follow signals easily. Typical signals looks like this: Order ID: 1 | Pending | $GBPJPY Sell 136.50 | Stop Loss: 50 Pips | Take Profit: 50-100-150 Pips Order ID: 2 |...
Is there an indicator that would allow me to find out the average price of x number of bars? If I wanted to find out the average price of eurusd on a 1h chart . thanks for the help.
In the image below, I have 3 trades that have read the signal and entered themselves. In a normal bollginger behavior while channeling, these signal would have been considered perfect, however, these are false signals as they are placing buys while the price continues to trend down. Questions: 1....
I would like to get the current Ask price displayed above 10 points from the HIGH of the current bar and Bid price displayed under 10 points from the LOW of the current bar. How to do it? Please add any example if you can and you know how to...
for example eur/usd what currency can i use to calculate the strength of eur and usd? need some help on the calculation to do a EA thanks
[Deleted]
Hello, i like to have script which contains a loop in the main function: while(myCondition=false) { Sleep(2000); } in deinit i set myCondition=true; But when trying to "delete" from Chart, this script is still running. Anyone has an idea ? thank you
Hi, I am new MQ4 developer. I have some question in my code. I need to find last close order from EA. It can look by "OrderSelect(OrdersHistoryTotal()-1,SELECT_BY_POS,MODE_HISTORY);" or not? I don't sure, If select by position on history order. This list will order by close time or not? thank....
  Trend of interesting thoughts  (440   1 2 3 4 5 ... 43 44)
In the process of off-topic discussion of some questions about trading systems started in this thread , which some have expressed a desire to continue in a special thread. I suggest that anyone interested should discuss trading patterns here :)
[Deleted]
Hi, I'm trying to improve my money management so I'd like to have a very simple indicator that displays in the chart all the open positions with the next information: 1. Pair (EURUSD, USDJPY, etc.) 2. Profit or Loss as a percentage of the AccountBalance 3. Risk Exposure...
Having programed in other languages I needed a crib sheet to get a check on the syntax of familiar yet unfamiliar coding concepts. Having checked the past answers to this question and found them unhelpful and checked through the book with no speed of joy paused and looked elsewhere. I found this...
[Deleted]
Hello i have a problem with OrderSend() function. I try to open order but EA returns error code 130(wrong StopLoss). I tryed everythig but the situtiation is the same. The most interesting is that when i strat EA on simaltion it works OK. But in real trading function falls. I can't uderstand where...
Dear all, I started working on an EA the other day and I'm blocked at a certain point. I want to do a partial closing on a position using an SL or a TP, but I can't figure out how to do this. For instance, I open a 5 lots position: int ticket=OrderSend(Symbol(),OP_SELL,5.0,Bid,0,0,0,"First trade",0...
[Deleted]
Any clues as to why? I am storing one as the volume. The charts seem to render ok and the History errors just continue piling up.
[Deleted]
Is it possible to run Expert Advisor in MT4 Multiterminal? I can not find Expert Advisor button. Is it possible how
  Mandarine indicators modes  (63   1 2 3 4 5 6 7)
It is the thread about indicators concerning Mandarine system in general.
  EAs' files  (5)
This thread is for the links about EAs versions for Mandarine systems.
[Deleted]
  Bar date & time  (2)
Hi, Is it possible to determine the date and time of a bar x number of bars ago, and if so how? I'm new to Metaeditor so any help would be greatly appreciated. Thanks in anticipation.
Hello, I'd really appreciate if someone can help me to understand the features of this function. It's especially burdensome in ichimoku kinko hyo coding. Here's the code part. (indise init function) a_begin=Kijun; if(a_begin<Tenkan) a_begin=Tenkan;   SetIndexStyle(2,DRAW_HISTOGRAM,STYLE_DOT);...
I have a problem tht has been with me for nearly a year. Two things changed -- new PC with 12gig ram, and Vista (was XP), now Win7. MT4 is installed at M:\MT4\ and not in C:\Program Files to avoid virtualization issues. Also, multiple MT4 installations are sharing one \experts and subfolders via...