Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1188

To post a new topic, please log in or register
I want to decide the risklevel by the last 6 win/loss. My codes do not work. Can someone help to check the codes? My idea is: // set up 7 boxes to store the result of the last 6 trades int box0=0; int box1=0; int box2=0; int box3=0; int box4=0; int box5=0; int box6=0; int risklevel=0 // if last...
hello all, I have been recently writing Ea for some arbitrage strategies. So my question is: Is it posible to evaluate start() function more offten than only with new quote arives( ex. when MatketInfo for other currency is changed ) ? Another question: I have tried to make two transaction, one...
Hi all, I am not a programer. If someone can help me to develop EA, please kindly mail to my mail-box: mshwj@yahoo.com.tw . Thanks. Jeffrey
Iliya Gladkov
What is arbitration? Arbitral Tribunal is called, by the way it is also called speculation - profit from the difference in prices for some goods (for example, shares or currency) when the seller simultaneously closes the opposing bids for the purchase and sale, will benefit only the difference...
Dear MetaQuotes-Team, This week-end I ran into a strange problem, that I kindly request you to have a look at. I responded to another forum member's question from my Mac and the MQL-code I typed in came out as: static datetime prevtime=0; // previously recorded time of current bar; static(!)...
Hello! I would make,when i test my expert advisor and i have open position,I would close this whit the "H" key,or anyhow. I found this very good article, http://www.metatrader.info/node/160.But this code is diference for my plan. Thanks for help.
Hello! I would make this: I start the expert advisor in test mode and the background is automaticaly white .I now when i go to load template i can make this manualy.But my question is,worked this automaticaly? Thanks for help.
Is there any indicator which read values in a csv file and print arrows on chart based on those values. Is it possible to do this ?
How do I have a simple moving average of an indicator. Whenever I drag the moving average into the indicator pane, it defaults to the price pane.
Hello, does anybody know a good source for comprehensive (i.e. since 2000 or earlier) historical data for MetaTrader? These guys look to be selling some: http://creditbanc.net/MetaTrader4_Data.aspx Has anybody used their service or found someone to supply the data? Thankyou in advance, -Raven
Hello! I have this double :12.000004 and i would make this:12.00. I would this as integer.I see Digits function but i can not solved this problem. Thanks for help! Sorry for my english.
If you are a developer and looking for a place to share your MQL4 code and EAs, and Indicators with other traders? (and make a little money at the same time)? Please check out 4xLibrary.com - Top Strategies, Top Traders This is the site for ForEx trading and automated systems. ForEx Traders can...
i want to insert a sound when the graph change the color, what shall i write exactly?
I need a window with 3 moving averages with ALL features of the MA'sincluding FIRST INDICATOR'S DATA AND PREVIOUS INDICATOR'S DATA. The first MA is the FIRST INDICATOR. These MA's already exist at MT4 but I don't know how to do it. For someone that know MQL is easy!!! Thanks!!!!!!!!!!!!!!
Hello, I have a plan to manage 5 pairs on 1 chart. 1 order at a time. If some pairs give buy signal at the same time, it will choose pair with the lower spread to trade on. I can make it with a large number of "if" for every possibility, but is there any better way to do this? I'm thinking to use an...
I've got anindicator that shows previous day's high and low and I'm pretty clear what ishappening in the code. I'm trying to modify it so the high and low values canbe taken from within a custom time span. In the indicator there's twovariables; R returns yesterday's high and P shows the low. I need...
I am interested in appling the TRADE DAY OF THE WEEK to forex pairs. Can anyone help me the create a back test program to do this? Basiclly, it is using historical data and determining over a period of time the tendency of a pair to close up from open or down from open on a dailly basis. Then,...
I need a custom indicator that when applied to a chart, allows you to create additional charts with timeframes that are not provided by MT4, and that also allows the real times displayed on these additional charts to be converted to the user's time zone. I have downloaded from the Code Base the...
I have a trailing stop system that adjust its trailing points as per the current profit. After a position is opened and has got some profit, the trailing system is supposed to work on the position, but it doesn't, not until I remove the EA from the chart and re-attach the EA to the chart. If the EA...
Could someone please explain what the following error means: 14:14:29 '10140': instant order sell 0.10 GBPCAD at 1.9571 sl: 0.0000 tp: 0.0000 14:14:29 '10140': order sell 0.10 GBPCAD opening at 1.9571 sl: 0.0000 tp: 0.0000 failed [Off quotes] How can I avoid this? Thanks!
Is there a broker that will run MQL4 EAs on their server? I live in an area withmany power outages, and don't want to rely on my PC being up while I sleep. I havea UPS, but that has its limits too. Thanks for any ideas.
After I attached my EA to some charts (4-7 charts), 100% CPU usage goes to Terminal.exe, other applications were slowed down to an unbearable extent. Does anybody know if anything is wrong with my EA. In my EA, there is NO dead loop, I cautioned not to use While -- do loop. Thanks.
I have tride several brokers who use MT4 as their software. In all those cases, the demo MT4 software was freezing during busy market time. Can any one answer me whether the reason is something that connected to the softwer itself (in this case I was wasting my time) ? If not, does anyone knows...
Hello I took an indicator for mt4 and i will like to put an alert sound on it; i try many time to fix it, but no result. If any body can help me ? (sorry for my english is bad) i trade well with this one but i don't want to stays all the days for waiting the signal. I just want the signal sound when...
Hi EveryOne. I trid to write a CI ( Custom Indicator ) to Compute and find amount of Bars that made any wave of zigzag !!! unfortunately i didn't. I used iCustom to Find the Upper or Lower Wave. //-----Variable double LowerZigzag = iCustom ( Symbol (), Period (), "ZigZag", MODE_LOWER, 1 ) ; double...
Is it possible to change the background color of a chart automatically from within an EA once a trade has started and then to change it back when closed? If so could someone please point me in the right direction. Thank you Kind regards
i have downloaded m1 history and convert it to h1. and h1 offline data has 22231 bars. i use bars why bars only 1002? thank you.
I am working on an EA and one problem I have come across is that sometimes, a tradewill open, and quickly hit it's limit and I will get the profit. However, new tradeswill open in the same bar and I will lose money on those. How can I limit one tradeper bar posted on the chart? For example, if a...
Good Afternoon, I am sure this is a rookie question... I placed an S/L marker on 1.05 and the sell/bid price never touched that, but the system took the loss at 1.06 Is there a reason this would have taken place? Also it says Swap 7.75 not sure what that means. Any help is really appreciated....
wondering if there is a method of working with a "smartphone" and manual or EA trading thru a broker Is this possible, and if so -- hows it done ? thnx peoples mp