MQL4 and MetaTrader 4 - page 460

  spread value  (4)
Hi, one question, if I have the spread value in these terms int spread_value = MarketInfo("EURUSD",MODE_SPREAD); which is the most correct way to convert 5 into 0.00005 for example?
  Expert and files  (5)
Hello, I tried to search this topic, but I can't find anything in the forum.  My question is very simple. I'm developing an EA and I would like to store some informations in a permanent way (i.e. to prevent Mt4 crashes or pc shutdown) . I heard about GV, but my EA should works on different symbols...
Is it possible to get price data of an OBJ_PITCHFORK at a given bar index? I used ObjectGetValueByShift(), but it doesn't give any useful result (0). ObjectGetValueByShift's documentation says: Applied to trendlines and similar objects. A pitchfork is actually 3 parallel trend lines. So, why...
  help with the Slippage parameter  (61   1 2 3 4 5 6 7)
I'm totally confused, can you help me out? So here it is: slippage - Maximal allowed price slippage for market orders (Buy or Sell orders ). The value is int; if I cast it to external variables, extern int Slippage = 1; should I further convert this number in the code? Slippage = Slippage *
I’ve downloaded Meta 4 app onto my iphone. I can’t seem to set up more than the one main chart profile. Is it possible to set up more than one chart profile using either meta app 4 or app 5? If so how?
Hello everyone, I am quite new to MQL programming, but I am basically reading through every tutorial I can find these days. However, now that I have a version of an EA, I noticed it does not work as anticipated. Right now I have no idea why this is the case, so maybe someone can explain where I went...
Hi guys, The function works well with just one symbol but once adding the EA to more than one, the function becomes unable to select the pending order to be deleted. I can't find the problem why it doesn't work with more than one symbol. Thank you. void PODelete()         {               int...
Hi All, Completely new to MT4 and looking for some help coding a simple price cross over a moving average. Pseudocode looks like this: __________________ When CurrentPrice crosses MA(100) Start Buy function __________________ Hope you can help!
  iCustom function  (2)
Hi, I am approaching this programming language for the first time. I currently have an indicator that generates very reliable arrows. I would like to create a strategy that can intercept these arrows. The indicator uses buffer 0 to buy and 1 to sell. I've read that i should use the iCustom function...
Hi, Looking form support from experts to get me  MTF_Stochastic Alert   Mt4 indicator modified to "all time frame MTF_Stochastic Mt4 indicator".  MTF_Stochastic Alert  Mt4 indicator is attached. Regards Rajiv (rajivrodestocks at gmail dot com)
How do you code "Allow live trading"? Thanks in advance.
Hi all, In tradingview there's an indicator called "Correlation coefficient", which represents the correlation between 2 Symbols (the chart symbol and another chosen symbol). See image attached. It ranges from -1.0 to +1.0 . If positive means the 2 symbols move in tandem, else they are moving in
i want these level notify me: extern bool Base=true; extern bool Entry1 = true; extern bool Entry2 = true; extern bool Premature_Entry_1 = true; extern bool Premature_Entry_2 = false; extern bool Pullback = true; extern bool BreakOut = false; extern bool TP1=true; extern bool Ext_TP1_1 = true;...
I am working with a FX brokerage and we are looking to integrate our Salesforce platform with Metatrader to create accounts as someone signs up for the brokerage. Is anyone familiar with how this can be done. Thanks!
Hello, I want to create a website like myfxbook, I want to ask you some things about API mt4Can mt4 provide realtime transaction data?does mt4 provide transaction data via the API of people who have login in mt4?thanks.
[Deleted]
This is a follow up to the recent article Be In-Phase by Mikhail Korolyuk. As my comments would be too extensive to add there and the topic is (as I think) of general interest, I decided to start a new thread here. This is to be seen also as a attempt to contribut something to the MQL4 community, as...
Hello MQL please give a feedback on this Indicator it calc pivot point and R1 and S1 using the standard method and this method this method is simple math :  EURGBP*GBPUSD=EURUSD , EURJPY/USDJPY=EURUSD ... #property indicator_chart_window#property indicator_buffers...
I'd like to take a break when I lose my deal. I've made a code, but it doesn't work properly. I'd like to put it in terms of purchase. Can you explain the above code? extern double initial_Lots = 0.1; //+------------------------------------------------------------------+//| exter...
Is it possible, by code, to retrieve the EA name?
hi, i need help to change parts of some datetime value, with another variable, it's possible to do that?//+------------------------------------------------------------------+//|                                                test.mq4 |extern datetime time= D'2017.11.05 0:01:00';int a=10;int start...
Hi I am wanting to backtest both weekly and monthly timeframes, but MT4's strategy tester only goes as high as daily. Is it at all possible to backtest higher timeframes? cheers honkin
When using the following code in a script, it works fine: CurrentFileName = StringConcatenate(ReportsDir,"\\",title," ",TimeCurrent(),".html"); h = FileOpen(CurrentFileName,FILE_WRITE); However, using the same code in an expert advisor result in an error opening the file. When removing the...
Does anyone know how to calculate the max draw down on a pair at a given bars e.g 100 bars?  
Good night everyone, I am trying something interesting with Zig Zag indicator but I have a little doubt. We all know ZigZag repaints to adapt to new price values and cannot be used for signaling, right? I am trying to build an indicator that can show me all those points signaled by Zig Zag in the...
[Deleted]
Hi guys, this script should close a part of the running trade just to cover a possible loss if the stoploss would be hit. For example I bought EURUSD at 1.1600 and the stoploss is at 1.1550. Price rises to 1.1700. Now I want to sell exactly the amount of lots that the rest position is safe in case...
need urgent help to instalmt4 in mac
Newbie here, sorry if this is a repeat. I'm seeing these 'balance' orders in my account history, besides my buy and sell orders. I'm talking about the 1st and 4th orders in the image attached. These are just a few cents, and clearly not any account deposits/withdrawals that I did. They seem to...
The code samples shown below draws and displays the chart per new bar, https://book.mql4.com/samples/icustom I want my indicator to be in a separate window and display independently from the main chart. and it should draw fixed details (non-repainting) at 5 second intervals. Which means when the...
The variable "speed" should display the value of variable "ti" which is 0.00156. But it just displays some random number. Why this isn't working? any format conversion mismatch? double and inters etc?...