MQL4 and MetaTrader 4 - page 754

To post a new topic, please log in or register
Hello people, is there a way to start/stop a series of Expert Advsisors from an external application? If yes, is there a way to do it with multiple instances of MetaTrader? Thank you very much
Hi, I'm trying to modify extern variables in the init function but it doesn't seem to be working.. The EA says that variables are modified, but when I check in MT4, extern variables still have its default values :/ Here is my code: double parametres[NPARAMETRES];int handle;int init()  {//----   int...
I fill I already know the answer but i am going to ask anyway: There is a way to paint a FULL COLOR ARROW? I mean, it's hard to find the hollow marks in the graphics. I tried STYLE_SOLID, BACK, without success.
////                                               mtf_ma_comment.mq4extern int MAPeriod = 20;extern int ma_shift = 0;extern int ma_method = 0;extern int applied_price = 0;/*PERIOD_M1   1PERIOD_M5   5PERIOD_M15  15PERIOD_M30  30 PERIOD_H1   60PERIOD_H4   240PERIOD_D1   1440PERIOD_W1...
Who know why MQL4 does not support any statistical functions ? (Average, Standard deviation, Mod, Median, ...)
i'm worrying about back testing for several days. my problem happened after I set up the date from 1st may 2008 to 31st may 2012(four years). Whenever I access the back testing, it stops and not moving(stop process) at 25th August 2011. I don't know why. So, I mack the process with two different...
Just suddenly this morning, in my Android and iphone, I cannot create new trade order. The new order icon on the main page was disabled. Luckily on my Android, I have the menu button which I can click on new order. How to check what is wrong?
I am looking for an indicator which gives the distance between bollinger bands and can detect the rate of change of the distance between Bollinger bands, and that alerts can be set on the values. Any body know of 1?
Who loves the the gray grid in the Strategy Tester? Is there a way to have the Strategy Tester remember the Property selections? Every time I run the Strategy Tester I've got to turn off that gray grid -- drives me crazy!
dear traders, hello .. i had a problem with my MT4 live account, about order execution.. my MT4 live account platform has rejected to close my open position.. i tried several times to close my open position but it rejected again.. when i could close it, i had some big Loss.. so i need...
buy (Cross(Zig( Stoch(21,6 ) , 50,percent),Mov(Zig( Stoch(21,6),50,percent),3,S)) AND Zig(RSI(C,30), 12,percent)>Mov(Zig( RSI( C,30 ),12,percent),2,S)) OR (Cross( Zig(RSI(C,30), 12,percent),Mov(Zig( RSI( C,30 ), 12,percent),2,S))AND Zig( Stoch(21,6 ) , 50,percent)>Mov(Zig( Stoch(21,6),50...
Hi all, I am looking for someone to help me add a simple trailing stop and stop loss to this EA:
Hello I cant speak English. Can anyone explain how "pipdiffCurrent" in this indicator is calculated.i realy confused.please help me. thanks my friend.
How do I determine if a trade is currently profitable (while still open)? It seems like I should be using MarketOrder and OrderOpenPrice.
I want to know if EA programmed to trade on 5 mins. chart can use the information generated from 30mins. chart. I mean that a certain condition will be meet on the 30mins. chart before the EA can trade on the 5mins. chart. All in the same EA? so,if possible please describe or better still explain...
Sometimes you have these instances when the chart completely disappears and you see this message in huge letters: "WAITING FOR UPDATE". The problem is every time it happens, when the chart does re-appear, my EA seems to stop working for some unknown reason. There are no error messages or anything....
hi When the command iCustom() has been used, this specific symbol() & TF() get's opened somewhere, someone know where is this chart located & where can i find it thanks
Would it be possible to write some type of indicator that plots constant tick chartsor constant range bars in another window? These are different forms of chartingthat are not time based. For example, a 100 tick bar is formed whenever price moves100 ticks. So on little volume, no bar is formed. A...
almost every broker says they price of demo account is exactly same as the real account, but i have record them, they are not the same,how do they do it, what is the mechanism,this is important for those price sensite EA,may you explain it ?
Hi, I would like to publish live charts on my blog with MT4 demo. I tryed very much but I can't. Pls help me. regards, solanki
hey peeps Noobie question (maybe)! I have an EA that needs optimised properties for each chart it is attached to. Is there an easy/automatic way to load these into the EA properties from files containing the optimised values? (I know there is the load button). Maybe something as simple as MT4...
Hi, well over a year ago I bought a FX trading system $400 + (manual Trading) I believe it has strict filters thus the need to have at least 3, better with 4 time frames per currency pair. in the example the guy shows you a window with 48 mircro windows open (12 currency pairs 4 time frames) with...
Hi, I have a problem here with MACD indicator settings for the android platform. The mid level of MACD for PC version is 0.00 but for the android, the mid level is about 40.00. How to set the mid level of MACD to 0.00 in the android platform same as the PC plaform? Refer to the screenshot in the...
I have a simple EA that will close orders based on take profit and stop loss. (TotalProfit<=0-stoploss_dollars || percentProfit<=0-stoploss_percent) How would the math work if you wanted to have an order close out when it's LESS of a loss, for example, if you have -100 and you want it to close...
i want to know if i host my EA on VPS, is it not exposing my EA to the VPS provider? What i want to know, is it possible that my VPS provider will have access to my EA without my consent? please i need an answer to this question !
Hello, everybody. For one of the strategies I am thinking of writing a small EA for MT4, but it will execute trades on Interactive Brokers platform. I cannot trade via MT4 brokers with this particular strategy, hence the question. I have found one utility to bridge between MT4 and IB TWS -Trade...
If I use OrderSelect() inside a function to select a certain order by it's #ticket, does it remain selected outside the function as well? Meaning, can I work with that same order in other functions without having to select it again? Example: int MyFunc1() {   if (OrderSelect(12345,SELECT_BY_TICKET...
New article OpenCL: From Naive Towards More Insightful Programming is published at mql5.com: This article focuses on some optimization capabilities that open up when at least some consideration is given to the underlying hardware on which the OpenCL kernel is executed. The figures obtained are far...
Hello there :) how do I export data from the metatrader4, I know to export with the history center, is there a way to export this data with the respective values of some indicators ?? I need it to make statistical reports... ? thank you