Download MetaTrader 5

MQL4 and MetaTrader 4 - page 697

To post a new topic, please log in or register
Any Idea on how to Open a Chart from a Script, or EA. I would prefer not to use SendMessageA( but will if forced. I would also like to control The Profiles and templates from the script in MT4 not 5
/*------------------------------------------------------------------+ |                                             fracmap_home         | |                                                 Copyright © 2011 | |                                                                  |...
I'm now back to programming MT4 - after all the changes the NFA/CFTC put in our way, and now a very odd thing is happening with build 402 -- every so often (enough that this needs to be addressed) I get 129 errors (Invalid Price) - here's a print showing the price used and the current bid/ask: 02:42...
HI, i try to design a function that read all open posiiton and return the position which are on same levels, and returning all the levels in questions. Example i have a buy at 1.3538 and some time after i take a position sell or buy at 1.3538 +/- spread, and 1 hour after i ask the ea to say if there...
  MACD Line (1)
Hey everybody, i am using the MT4 and i was checking the MACD to find out that the MACD line is not constructed, also, the signal line is 9 day SMA instead of EMA. is there a way to add the MACD line or change the Signal line to EMA instead Thank you very much for your help Best Regards,
When I try to use the scripts in MetaTrader nothing happens. I try to execute them from the list also drag to the chart but nothing happens. I use some to close all orders and to buy and sell, but nothing. I have to activate something to use scripts? Thanks for help me. Cristian
I have created an indicator with several double type variables. The values are based off math calculations of pricing information. I want to be able to create trading situations based on the value of those variables in the indicator I created. Do I have to create a separate indicator for each...
Hi All, I'm new to the forum and to mql4. Have just tried to create a simple ea that I can use in MetaTrader 4. Got a bit of an issue. I'm using MA and MACD as indicators in the ea. But when I Print the ma and macd values per bar, they are different to what I see on the chart after I run the...
Can anyone point me to some code that shows how to "grab" candlestik informations and compare two candles on two different currency pair? Here is what is want to do. Let say i have a candle @ 10:00am on the GBPUSD. I want to be able to read the high, low, open & close on that candle at that currency...
Hello, I like to establish the amount of bars from placing an Order to the actual bar[0]. The following code was an intent to calculate the difference between OrderOpenTime and iTime and convert it back to bars based on the current Period(). The idea was, that OrderOpenTime delivers time in seconds....
hi i am having a difficulty on code this, option 1 : it trade if (Eq == -1) Eq = AccountEquity(); if (AccountEquity()>= (Over*XFactor)+Eq ){ for(int TO=OrdersTotal()-1;TO>=0;TO--) { OrderSelect(TO,SELECT_BY_POS); deleteAgain(); Eq...
hello MT4 community, so i have been involved in developing an EA for 9 months, i have posted a couple of times and have been contacted by a couple of "so called" developers, who basically have taken my concept/EA and run for the hills !!! The Ea is mostly coded - but I am not a programmer and need...
i have taken many orders at a certain time, i need a code to generate the average for all those Pending Orders Price and modify all those orders with that average value with some TakeProfit added to it. i want to implement this in Expert Advisors??....someone please help me...!!!...
I have four EA's running in different, liv accounts. - One of them is routinely removed after a trade. I'll reattach it and it will run until the next trade. - The others are removed from time to time, I see no pattern yet. _ The app doesn't crash and charting and all else seems to continue without...
Hi: I am trying to write a strategy that uses a precondition and a current condition to enter a trade. I use a simple trend-following indicator to enter the trade but do not want it to trigger unless the precondition was true. I thought that I could run a loop for the precondition using bar...
Hello, I'm testing MT and have a question, that the search couldn't answer. I hope somebody here can help me. My question: Is it possible to get a list of order modifications? I need this to get the inital stop loss of a order that was modified a few times. It should work after a restart of MT. If...
EA Programmer Needed! Hello please send me a private message if you want to make my EA. Iallready the indicator, i think its easy if you know how to do it.. its ONLY ONE INDICATOR! its realy easy to do so please pm me, ill give you make messenger contact! Thanks in Advance fxinthecity
I am using iCustom in an EA and am getting this error message "array to be set is of incompatible type". My parameters are set correctly. What should i be checking to find this problem?
Hello Guys If you have good trading system for 1 hour TF and above, send me your system and I see if I can code them into EA. Custom Indicators must be non-repainting I hope to get new forex trading ideas and to improve my coding skills. And we do this by offering free coding. I DO NOT make a...
Hello All Every position size calculator I find requires a STOP value to process LOT size etc. However my STOP is based on a moving average. Can anyone help me to get past this issue. I dont use STOPs
I need to know, how to setup the mt4 on a sub site to my website hosted by iPower.com.What are the server requirements, How do I get the server to my fxdd account, what files to upload to display mt4, etc... I've been looking for a step by step instruction but I haven't found any instruction. I...
Hi Gurus, I'm new to MT4 & MQL, so forgive me if I'm asking the obvious. I'd like to access my Account History data as real-time as possible form a new app I'm developing. As far as I see I can't directly access the MT4 servers (AFAIK the APIs are not public), so I'd have to do something in the...
Hello, I define an include where my member variables defined and where I use for my Buy/Sell Signals. So after a Stopp/Loss I create a method which initialize the member variable to 0. This method will be called, but the member variable includes the values before the Stopp/Loss. How can I...
Hi, I want to program an indicator. Normally I am using this loop in my indicators:    ExtCountedBars=IndicatorCounted();//---- check for possible errors   if (ExtCountedBars<0) return(-1);//---- last counted bar will be recounted   if (ExtCountedBars>0) ExtCountedBars--;//----   int    i...
  Mt4 for WP 7 (1)
Hi, is MT4 available for Windows phone 7 in marketplace? if not when will be? Thanks in advance
is it posibble to import data graph directly from the import option in excel or access etc.?
  Channel Trader (26   1 2 3)
This is Channel trader Ea it is using Automatic Regression channel,Cfb channel,and Dynamic zone spearman on jurik on first version, on the -1 version its not using Spearman, but its using Atr Normalized, when its leaving max atr seems to be some possibilities problem is it seems to hit max level...
I am currently using the iCustom function to call 2 indicators that I have created. It seems that sometime it return the same values as those that are displayed and then sometimes its not? I am passing in the same values as the default ones being used on the display. The values are not from the...
Hi, I want to develop a method, that enablesto change the stop after every 10 Minutes? How can I implement this? Thanks for your support. Kind regards, Hoschie
1...690691692693694695696697698699700701702703704...1250