Download MetaTrader 5

MQL4 and MetaTrader 4 - page 609

To post a new topic, please log in or register
Hello experts I am trying to built an EA and on it I want to draw vertical and horizontal line. For easiness to change line characteristics in future, I am defining lines characteristics as variables at the begining of my code like this // Variables to handle order previous opened by EA string...
I would like to know if it is possible to run a script i have already made through a expert advisor and for it to not execute over and over but just once. If there is already a forum on this please point me in the direction Thanks everyone
New article Application of the Eigen-Coordinates Method to Structural Analysis of Nonextensive Statistical Distributions is published at mql5.com: The major problem of applied statistics is the problem of accepting statistical hypotheses. It was long considered impossible to be solved. The situation...
Here is the details of my new EA for 5 mins chart GBPUSD pair from 2012.06.26 11:20 to 2012.08.10 23:59 (2012.01.01 - 2012.08.13) https://www.box.com/s/b70328bddfd3ef8dc9ca please give comments. Thank you.
hello, try to know the price of the last active order. For example if I have three buy orders active, only know the price of the first buy order entered, not the last, the function I use is: double retorno_precio_apertura(int NMagb) { double resultprecioultimaorden; RefreshRates(); if(...
Hi together, is there anybody who can help me regarding the mentioned "problem" below... After open 2 market orders (1 buy & 1 sell order as hedged position) I'd like to check if one of the orders in profit and open a new position in the same direction as the order which is in profit. Currently my...
I drag and drop my EA onto M30 timeframe in main window 0. This window has also timeframes H4 H1 M15 M5 opened (tabs on the bottom). EA can draw Trendline in M30: But when I try to draw Trendline in other timeframe like M15 M5, they are not visible there (after I click proper tab)....
Good morning, I wanted to do a consultation to see if anyone can help me. Can a simple subtraction when iTime obtained?, Eg I want to subtract 15 minutes to the value obtained with time_EURUSD_M15 = iTime (Symbol (), PERIOD_M15, i); or I want to subtract 30 minutes to the value obtained with...
Hi Guys, I have trouble with SL and TP. Anyone any ideas? It works well when SL=0; Backtest also works, but when I go live I get Error 130!!! thanks, Sebastian //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  extern int      Magic=...
I have been looking for something like BarsSince (or Bars Since) we find in other platforms but didnt found what I was looking for (maybe Im not good in searching). So I decided to do it on my own and share it here just in case others are in the same situation like I was yesterday. It is a very...
Hi, I have the following problem: I use template from here: https://www.mql5.com/en/articles/1514 Function PrepareTicketsToClose makes an array of orders to close, but I have an additional variable NET_LOTS, which tracks the number of orders in the terminal. What I want, but do not know how to do is...
I have an EA which opens a big number of trades (it uses a system similar to grid trading), so when backtesting it, I often get error 148 (ERR_TRADE_TOO_MANY_ORDERS). To avoid this problem, I ask you: is there a MQL4 function that returns the maximum number of open trades, so that I can code this...
CAN I GET BACK TO WORK NOW?WITHOUT HAVING MR WHROEDER CALLING ME A TROLL?CUZ IF I CANT, I DONT MIND, I HAVE A COUPLE OF YEARS TO KILL..IT IS YOUR CALL..I WAS NICE AND PLEASANT WHEN I ARRIVED HERE.AND YOU ALL PHKD WITH ME.NO DICE MTHRPHKRS.I DONT LAY DOWN FOR NO PHKNG BUDDY.GET IT?GET READY TO RUMBLE...
If anyone wants to give this a go i will upload the indicator for you to code. This has strong potential and with a touch of martingale it could be even better. Had good performance on demo. I tried to make this on Molanis but you cant add custom indicators
In the EAs I Have been working on recently I have been working witht several timeframes, using iHigh(), iLow(), etc, extensively throughout my code. I noticed that my EAs were running slowly in the Strategy Tester compared to the first EAs I wrote. So I started wondering why, I did a little test...
Could some one help me finding this error of Unbalanced left parenthesis.... i tried myself all combinations but it never solves.... and also an advise if all the cases are properly written .... i tried to write the 4 ma crosses and cci above 100 or -100 to buy and sell ... Thanks in advance!...
To trade at better price, I need to save trade information in a string and execute the trade when market reaches a better price. This works without problem until someday when I add variables to some point - it seems the EA has reached a limit. This is especially about some string variables that save...
I have a retail manual trading system that has numerous (custom) indicator modules to it. It has one 'masterindicator' that uses other indicators and generates trading signals and paints these as Objects on thechart and generates alerts if I have them turned on. The problem is that it oftengenerates...
Hi All I run MT on a server in a different country and access my accounts via remote desktop. However, I also want to access my account directly from my laptop when comms to the server are not functioning at their best. Currently I do this by logging into my MT account using my main (not View)...
Hi, I did search forums and was able to write this code. But I am stuck here. I require a script/indicator something that would write to a file when a new bar is created in all time frame. Can somebody help me improve this code please #import "kernel32.dll" int _lclose (int); int _lopen...
Hi, I am trying to add a library to my advisor. I made all the configuration. But at the last point it gives this error while compiling : 'GetNameOP'- function is not defined And this is the line where it points the problem : Print("Ask=",pAsk," Bid=",pBid," sy=",sy,"...
Hello, I want to buy Indices M1 (bars) history-data of several years (primarily of SPX). Does anyone know where could reliable data be bought? { Ofcourse it should be in MT4 supported format } Thanks much. P.S. I'm familiar with the disktrading.is99.com website and Olsen-Data company. Looking for...
  Debugging a DLL (15   1 2)
Just updated my MT4 version to build 229 and now I am not able to attach a debugger. "Debugger detected" them the terminal closes. So I thought I would give MT5 a go and I see the same problem. Looks like Themida Debug Guard. This poses an impossible situation for library developers like myself....
I need a function to accumulate orders, for example if I have a purchase order, and the market is going up, and up 20 pips above my active order, I have to enter another order. If again after 20 pips above this last another order, another order released. So until I get the state to close all orders....
Hello every body, i'm a new developer on MT Program. i need to run my script after the client pressing buttons (buy or sell). is there any link i can use it ?? can anyone help me on this issue ??? Best Regards, Saker
take dis ea ex4: Strategy Tester Report stohastic 100 10 10 m30 ok Varchev-Demo (Build 432) SymbolEURUSD (Euro vs US Dollar)Period30 Minutes (M30) 2012.06.06 00:00 - 2012.08.08 11:30ModelEvery tick (the most precise method based on all available least timeframes)ParametersTrailingStop13=35;...
各位高手大大!! 您們好!! 小弟之前曾經將交易程式掛在MT4推出來前的FXDD前一個平台,曾經用這個程式跑了兩個月的真實帳戶,之後電腦中毒,程式也跟著洗掉了,當初是朋友將程式掛在平台上的,而後來朋友失聯,一直聯絡不到,我手中有當初列印下來的程式資料檔案,卻沒辦法把程式掛在MT4的平台上執行,我試了好久都沒辦法,我不是搞程式的料.... 目前得知有些高手大大會寫EA,是否能請各位高手大大幫忙? 能否幫我把程式植入MT4的智能交易系統裡面,並且可以執行? 幫寫程式的收費請各位高手大大開價!
  Need Help programming EA (13   1 2)
I have a trading methodolgy I use and is profitable. I need a programmer willing to write an MT4 EA for me for free and back and forward test it.. If interested email me @ kgibson5@woh.rr.com Kind Regards, dgib1038
Is there anyway to have mutliple workspaces/profiles open simultaneously? Each time i want to use a different profile, the one i was using is replaced with the new one and is ineffecient. Would be incredibly advantageous for the pro trader to have ability for multiple workspaces/profiles open...
hi i am new to this forum and have heard that experts over here help and train beginners and learners in developing custom indicators and EAs. i am new to trading but have been successful with roughly 60:40 hit rate and 1:1.5 risk reward. but i have been trading manually which is so boring and...