Download MetaTrader 5

MQL4 and MetaTrader 4 - page 879

To post a new topic, please log in or register
Hey Guys, I would appreciate i if someone can add codes to the code below to enable the EA work with 5 -digits brokrs. Thanks advance. Malk //+------------------------------------------------------------------+ //| 10points 3.mq4 | //|...
Hi every body I am a new mql4 programmer. please help me How can I select all open orders (for example 5) and close all of them immidiately? Thanks for your cooperation
i did all i know to turn on the default expert advisor (moving average) but i still failed tools > options > enable expert allow live trading allow DLL allow external experts import (all ticked) in addition to EA play button (on on) what is the problem
hallo . i have a basic problem . for start neuron parameter i need for example a b c parameter . now after condition i will get d and e . let say a b c is close[1] ma(50) ma(20) d is parameter i will get after close candle > a point . so it could be after n (maybe 1 2 or 30) bars or...
Dear Fellow traders, First of all I am all new to the forum, so please bare with me, secondly English is not my first language, again please bare with me. The following strategy I used for the last month (sep) on the EU gave me a nice steady profit (1195%) on a small live account (no demo). No big...
I've been looking for the last week to find some type of code to add market orders at regular intervals during the trend. I was wondering if there is anyone that has some code that will do this that i could use. I've been learning mql for awhile now....but i haven't found anything that i can learn...
I have a ROC price indicator. How simple is it to change the instrument from price to ATR indicator? So that the new indicator monitors the ROC of the ATR? Code: //+------------------------------------------------------------------+ //| ROC...
Hello, what I am trying to do is very similar to: http://www.forexfactory.com/showthread.php?t=217362 7bit explains how to do it here: http://www.forexfactory.com/showpost.php?p=3424034&postcount=19 The method he posted is what I've been trying to do, but for some reason it doesn't work. The arrow...
Please, Can anybody explain why some trade are deleted when pending order ie SellLimit and BuyLimit going to be activated. When I checked the account detailed report (attached), it says Not enough money though the money in the account is still there. Apprecite any explaination. Thank you.
  Is this a bug? (12   1 2)
I have recently developed a custom indicator that counts trading days and plots vertical lines at my prescribed intervals. Works fine within the processed bars, however, as soon as it starts plotting in the future - to the right of the current bar - it adds days?? The code that I use is simply a...
Is there a way to get the profit for just one chart? I would like to find the profit so I cn close all orders just on the one chart Thank You Kalkaska
I am quite new at this, so I plead ignorance. I am starting to work through the demo account. According to instructions in the user guide, under the charts tab, lines of pending or open orders with attendant stop loss or take profit limits can be shown by enabling the "show trade levels" and then...
Hi, Is there any framework/wrapper library for MQL4 to make life easier? I havent really been searching around much, but so far I havent seen any. In case there is no such thing, would anyone be interested to create one? For instance, a piece of framework library code for Bars could be like this:...
Hi, I just made a EA which seems to be profitable in backtesting (it opens and closes positions) but when i activated it in my demo account it just don't open any trade however all criteria are met. In the backtest it opens about 6 trades a day, but in my demo it has not opened anything in 2 days....
What is the best way to trade multiple pairs? Ex. I would like to trade like 4 pairs on the same account When running EA, I face problem like error 146, TradeDispatcher is busy. I believe the cause of this is that MT4 is single threading and EA cannot make more than one trade at a time? Correct me...
Hello All, I have a EA based on Laguerre and Moving Averages indicators, among others. In case of wrong signal I use martingale to help the account (with constant steps, incremental steps or Fibonacci steps) From my statistics the probability of a wrong signal is just about 2% (I used 10 pairs to...
Does anyone know of an indicator that charts the change of the previous bar (or several bars) in pips rather than a percentage? I really need this for a strategy I am trading. Any help would be greatly appreciated! Daniel
My system is in MLQ4 on metatrader and trades sweet crude oil futures. It does well in forward testing in the month or so I have run it. It does reasonably well in backtesting in metatrader. But of course the metatrader backtester is extrememly limited. I would like tick data for sweet crude oil...
can we get a price of certain time,such as D'2008.01.21 12:00' / 2010.02.25 10:10? thanks .
Hello, I wrote an EA. The report gives my the number of trades (n) and the total net profit (p). Fine. Now just for test reasons, I replaced 1 OrderSend command and 1 OrderClose command by 10 OrderSend commands and 10 OrderClose commands. The n should go to 10*n and the p to 10*p, right ? The n does...
hi guys i lil bit mess with a thing. heres the situation. i made a ea which trade with trailing stop 20. when it doesnt trade and enable and when i put a manual trade in same pair then ea put that trailing stop for that manual trade.so can i know how to avoid it ?
Hi, I read my txt-File into and buffer (with the kernel32.dll like here https://www.mql5.com/en/articles/1540) . Now I extract to word "tuesday" as the first word in the second line:                Str = StringSubstr(buffer_read,pos_start,pos_end-pos_start);               pos_start =...
New article Analysing Candlestick Patterns is published at mql5.com: Construction of Japanese candlestick chart and analysis of candlestick patterns constitute an amazing area of technical analysis. The advantage of candlesticks is that they represent data in such a manner that you can track the...
Ok, so i'm now in the "sensitivity study" phase of my development, and i thought i'd use the "optimiser" in the backtest to help me out. Basically i'm checking for optimum operational modes of my EAs, (e.g. multiple orders vs single order, hedging vs not, etc). Instead of running the backtest for...
I have this code for the i-Regr indicator. I would like to integrate it directly into my EA so that I do not have to call iCustom() as it is very slow. It seems simple enough but I cannot figure out how to get last bar's value. Since I only care about the current value and last bar's value I think I...
has anyone created a slow stochastic indicator to use whilst trading with Bill Poulos's Forex Profit accelarator program? I can obtain the other settings of %K=8, %D=3 and slowing =3 but I note that the subsequent indicator is not quite the same as a slow oscillator as per VT Trader(which Bill...
the following is the ea code. what i need to do know or do is how do i get my ea to trade from the change of the color on the macd histogram only. also above is a picture of the indicator as you can see there is no signal line i took it out can someone help me fix this ea please thanks....
example:i have an expert based on moving average or any other strategy,& i want to start only if BID touch 1.3405 EUR/USD? thanks
Anyone know the best way to test what is up with my indicator ? The indicator appears to work but for some reason the lines on my chart do not match up with the values for those same lines when i make an EA to use that indicator so i decided to compare the values for those line the EA prints with...
Hi, I need to monitor other forex movements. For the time being, I need to monitor USD/IDR; SGD/IDR and EUR/IDR. Is it possible for MT4 to provide these forex data? If not where and how can obtain these data. Thanks