MQL4 and MetaTrader 4 - page 912

To post a new topic, please log in or register
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...
Hi, I'm not a programmer, so be gentle. I'm trying to close out trades when conditions are met, so: if (A < B) - in this case close out BuyTrades till A is no longer less than B. But the thing runs away and closes as many trades as it wants to or can - so it overshoot my targets and I get nuked....
I would like to request the following items be incorporated into MT products. 1. Price Per Point value - in the event the coder wants to know on the fly how much it would cost on a particular chart from a particular vendor given the client currency and the charts currency. So a function...
using normalizedouble on eg: 0.667 to 2 places gives 0.67 is there a simple way to always ensure that round down occurs? other than writing a function with value and decimal places actuals eg; fred(double d,int digits) if used 'fred' maybe is like this: a = fred(0.667,3); and fred does:...
I want to learn more 'bout MQL I have searched for some book to give me more clear instruction . I am not sure Is there any of them or not? what I have found here the maunual in this website is quite clear but, I had no basic of Programing. a day I found this book : Expert Advisor Programing...
Hi, I have 2 pending orders, a buy_stop in price a, and a sell_stop in price b. I want each one of pending orders automatically closes when another one executes. I mean buy_stop pending order closes automatically when sell_stop pending order executes, and vice versa. how can I do it in mq4? Thanks...
Im looking for a copy of this seemingly difficult old classic. Would there be any available PDF's floating here, I would appreciate this help. Randy
it is my first ea, it works on the back testing but does not work on live. why any suggestions? it's make money on the back teting i hope it will do the same at the reall market thank yall...
Is there any way to create a custom HTML document from within an indicator or EA?
Hi, Is it possible to code multi currency indicator? I tried iClose but it returns 0 for all currencies except the one the indicator attached to. Whats the proper way to do it? Thanks!
My EA didn't send Buy order and can't run on Demo, but backtesting is okay... Why? Please help Here is code //+------------------------------------------------------------------+ //| MACDSingle order.mq4 | //| Copyright ฉ 2010,...
Hi all Error code 149 ("Hedge is prohibited") that is returned to a client at the attempt to open an opposite position to an existing one if hedging is prohibited But you need to try ordersend to know if it's ok or not ! How to know that in tne init() of an EA for example ? thanks
I have an idea in my mind that i wish to test out,am wondering if anyone would be willing to help me out with it. I wish to call upon ATR period 14 function,if the open - closing of the candlestick is greater than the ATR value(doesn't matter it's going up or going down,as long as the absolute value...
MT4 shows its own tab on task bar. how to not show this tab on task bar. thank you Mr. Koboi