Download MetaTrader 5

MQL4 and MetaTrader 4 - page 897

To post a new topic, please log in or register
Hello, Can someone please repair my code? I really don´t know why my Sleep function doesn´t work. I am a beginner in programming so sorry for this stupid problem.. i really don´t know what is wrong. Here is my code: if ((ma27<ma467)) { if(OrdersTotal()==0) { int...
Hello friends this is checkmail and am still learning to code the EA, am interested in the lot assignment code. if (Volume[0] <= 1.0) if (FreeMargin() < 1000.0 * Lots) OR if (Volume[0] <= 0.1)...
  how much would this cost? (17   1 2)
A programmer could probably finish this in 20 minutes?   mank 
Hi, If using ObjectGet in my EA will it not be able to run in non-visual mode? My current project just wont optimize, it freezes, and this seem to be the only logical explanation I can find. Thanks in advance / McKeen
I need someone to program an EA that will send me an e-mail every time the price closes below the low or above the high of a trade channel indicator I have. I have attached the indicator and you can see the code below. //---- #property indicator_chart_window #property indicator_buffers 3 #property...
Hello friends this is checkmail and want to know, that can we create an EA to trade on small accounts, like $10-$100 total margin. Means can we change the avail margin ratio to minimum in case of losses/small account to let EA trade for us. The standard ratio is 1-100, can we go below it ?
Is there anyway to turn off the light blue line indicating the current price?
  HLINE (4)
hey, i wrote a new expert, i need to put on the chart HLINE but i want it to bw in specified time for ex. from 23:00 to 09:00 here is what i wrote: ObjectCreate("HighLine",OBJ_HLINE,0,0,BoxHigh); ObjectSet("HighLine",OBJPROP_COLOR,LinesColor); ObjectSet("HighLine",OBJPROP_WIDTH,2);...
  To protect EA (11   1 2)
I think it is impossible to protect EA from decompilation but it is possible to make EA dependent on some other stuff in order for it to work. Like connect it to indicator, mqh file .But if to copy the whole MT4 directory, it is possible to find out everything. If somebody snoops into your computer...
Hello guys! I would like to add stoploss in the that code below, someone would can help me, please! This code is the MACD SampleEA, I hope in this EA, only need a stop loss! Thank you very much! extern double TakeProfit = 50; extern double Lots = 0.1; extern double TrailingStop = 30; extern double...
please if any mql expert here can u tel me how to send sms bt using sms script by dll via a expert advisor (by import that dll )when certain conditions are met . still i hv no idea about that. if anyone can pls help me
Hi, Just wondering if there is any way to choose which columns are displayed in the Terminal window, or is this fixed?. For example, I assume 'Swap' is something to do with Forex, which I don't trade (can anyone clarify what 'Swap' is?), so for reasons of space saving I would like to remove the...
I am developing a new strategy which has done quite well in manual testing so am now in the phase of my trading bot creating. I have most of it working though the logic and closing of the trades is giving me a little trouble. Maybe I have not been getting enough sleep where the answer is right...
hello, I try to login metatrader 4 with my trader(master) password but it says public key is not found in the journal section. I can login with my investor password but could not trade. How can I fix this problem? Although it is a demo account I really need to use it for some reasons. Thank you very...
Hi All, I have a scalping strategy that can scalp eur-usd and make at least 7 pips,and as high as 15 pips per trade, with very rare losses. And i would like to automate it to make it more profitable, it is very simple,because it combines just 2 indicators, any one that wants to help me with the...
Anyone know where I can find the source code to moving average ? I want to see how the "applied to" section is coded, especially the weighted close, and the typical price.
Hi friends, When I draw a Fibonacci grid, is there anyway that I can get the lines to display its values by the side? CUrrently I have to release the mouse and fix the grid, gon to the cross hair function, check the values, and delete the grid and do all of that again until I figure out the correct...
hi The following code whenever I back test it I keep getting an ordermodify error 1 but I don't know where in the source code to change it so I can put it right. Please if anyone can help me with this I would appreciate it. //+------------------------------------------------------------------+ //|...
I am trying to Subtract from the Text the word Sell, but, the program below can not read the file. My test.txt is stored inC:\Program Files\MetaTrader\experts\files and it contains this Text: SELL EURUSDPrice=1.32336, Could someone please help. int start(){string File_Name="test.txt",Text;int...
Hi, Not bragging, not selling, I just want an experienced opinion in whether theese results could be something or if it's nothing because of the extended period of time. Initial balance: 10000, Flat 0.1 lot, 650 trades, H1-based, testperiod 4,5 years, drawdown 11%, end balance 18500$. 52,72 Winners,...
hello, i am looking for a programmer to do an ea... i have an indicator... the ea should work as follows: when indicator sends signal 1. open order 2. close all existing profit orders that's all... rgds, sliffy
I'd like to share my knowledge here and ask for pointers on developing a trading plan for my EAs. I'm getting a VPS soon and planning on running a demo of my system. GOALS: To have up to 10 systems running simultaneously To have as little correllation as possible between these To use different...
Why am I finding it so difficult to get a good equity curve on any pair other than EUR/USD and GBP/USD? Has anyone else experienced this? GBP/USD is 4 pip spread and some others are lower than that so it's not the spread that is the problem. Perhaps I just only know strategies for these two and need...
  Session Highs (1)
Hi. My first post and new to mql4. Basically I'm trying to find the session high since the open of the current session (whether Asian, London, New York). Seems easy enough. The only problem is I'm trying to find the values over a range of currencies (GBPUSD, GBPEUR, GBPCHF etc ...) each to be...
Hello friends this is checkmail and was going through google searching some good strategy and indicators for mt4 platform. And found a few Indicators, that description is good to believe in it, but they are not avail to download even to its normal members.In...
Hi, I'm trying to get the EA to trade only when the MACD main line minus signal line value exceed certain value. Would the following code be correct? Thanks! macd_main-macd_signal>0.0010
Dear MT4 Guru I have a for loop and I would like to create a Legend for the currency pair, that will having the same color of the line that set in the properties So, my proposal is to retrieved from ObjectGet (...OBJPROP_COLOR) dynamically, and later use ObjectSet to set it to the legend text....
Hi all, how are you doing? I have this indicator I made to show all 12 lines of the high, median, and low of all timeframes. See image. The problem is that when more than 1 timeframe has a price that is the same, we lose the ability to determine which timeframe is on that same price. I have tried...
Hi, I've been system trading futures using a daily system (TradingBlox) for a few years - and it is very reliable and consistent. By contrast, I've just finalised a system for forex in MQL4 - & I find that each time I run a back test on 2 years of offline historic H1 data, I can get wildly different...
How should the line be if i want to say: If Bar1 >= 0 and Bar1 <= 0.0004 - just an example I have tried with this but it doesn't work. Compile error if (Bar1 > 0 || Bar1 == 0) && (Bar1 < 0.0004 || Bar1 == 0.0004) Have tried this as well but same problem. Compile error if Bar1 >= 0 && Bar1 <=0.0004...