MQL4 and MetaTrader 4 - page 1237

To post a new topic, please log in or register
I am trying to add a Time Filter to allow trading only during select times. I was refered to a site (http://www.cubesteak.net/2006/08/3-fold-trading-hours-filter-for-ea/) that has what I want to implement, but don't know how to do it. It says: "Simply wrap all your EA logic in the call to...
How do you open an EA script that is locked in the editor?
I bought an EA from Ebay that is not editable in the editor cause i couldnt access the script. I want to be able to go in there and change the timeframe from 30 mins to one hour. how do i open the EA to be able to edit it?
I have written an indicator which perform significant amount of calculations. The result is that indicator is hard to use and slows down the system. Is there any guide available to optimize the mql4 code? If let me know if any one knows. Thanks,
  point? (2)
Can anyone tell me what the predefined variable "point" contains? The documentation says "Point size in the quote currency"? Im not sure what this means, Im confused by a definition of a word which uses the word its trying to define in the definition??? Many thanks
Does anybody know the code needed to open and close multiple orders on the same chart. I think it has something to do with magic numbers?
Hi! What is problem with this code?The line draw is good,but i would get XDISTANCE while i would make a label to this line,And i must know the "a" line coordinate. ObjectCreate("a",OBJ_HLINE,0,0,price); ObjectSet("a",OBJPROP_COLOR,Red); ObjectSet("a",OBJPROP_WIDTH,1); int XDISTANCE=ObjectGet("a",...
If I have my bands defined like this: BandTop1=iBands(NULL,0,26,1,0,PRICE_CLOSE,MODE_UPPER,1); BandTop2=iBands(NULL,0,26,2,0,PRICE_CLOSE,MODE_UPPER,1); BandBot1=iBands(NULL,0,26,1,0,PRICE_CLOSE,MODE_LOWER,1); BandBot2=iBands(NULL,0,26,2,0,PRICE_CLOSE,MODE_LOWER,1); What is the line that moves...
First, let me apologize for starting a new thread. I am new here. I did a search on "ATR" in hopes of placing my post in that group, but once there I could not figure out how to make a post! For now it seems I can only post by starting a new thread. So here goes.... I would like an mq4 file...
Can you help me to make the Expert Advisor Alert and Auto trading expert for using OsMA (12,26,9) and Candle bars closing patterns. NAD
Hi Can anyone highlight to me what could be wrong of the backtest result. When I tested my EA on 1 min timeframe by choosing "every tick" model. The modelling quality went down to only 25%. But it will back to 90& when I tested the same EA again on other timeframe such as 5 min or 1 hour Please...
Hello, I'm trying to write a code to manage all open orders regardless it's pairs. My idea is to attach it on one pair only but will manage orders from other pairs too. But it seems this code is failed, any idea why? for(int i=OrdersTotal()-1;i>=0;i--) { OrderSelect(i,SELECT_BY_POS...
Is it possible to create an inidcator that plots a projection into the future for the bext x bars. For example, take a simple indicator that plots as a line on the screen. I want to be able to project it into the future beyond the last bar zero. I need to do this as I have a predictive algorithm...
I'm using SBFX 4 Build 211 and I don't get anything on my charts but the message "Waiting for Update". It was working fine till yesterday. Any assistance would be appreciated. Ed
Hello, I was wondering what is the most reliable way of solving the following problem: I look at a chart for which I have attached a Stochastic indicator. As price moves, the two lines in the indicator are also moving up and down... However, at certain points I want to know if: a) both of the lines...
Hi all any way to do that get beep alarm when indicator meets conditions ? thank you.
  Wait to open (3)
In my EA it opens a buy position and sell position when enabled. The problem is, I would like it to open a buy position and wait one pip (in either direction) to open the sell position. I am not sure how to do that. if(total==0) // Open init lots { openorder("Buy",0.1);...
Here is a great tool to help you get experince faster, by trading on a simulated market. You can enter and exit trades like you would in a real market, so it gives you a more realistic feeling. You can speed it up, and slow it down as well. I have been able to practice trade a month in about 1 hour...
MetaTrader Club. I'm a newbie that could use the help of an actual person/group. Does anyone know of a 'club' that gets together in person?
was trying to test whether the EA works when each new tick comes in. below is thecode. but there is no alert box comes up every time when there is a new tick. whatcould be wrong? int start() { Alert(Bars); }
Hello, I need to write the program under MQL4 for automatic process of investment for each item of FOREX market (under x-Trade v. 4.00 Build 206 platform), for example: EURUSD, EURJPY, GBPUSD, OIL, GOLD etc... The program should be based on "Ichimoku Kinko Hyo" & "RSI" indicators. We have the...
Hello, I have been searching everywhere for a basic expert advisor for MT4 that does the following: Goes long when OsMA goes above 0 and short when goes below 0. If anyone has this, or knows where to find it, please let me know. Thanks. -Brian
Hi Rosh, sorry for this direct question, but a while ago you've mentioned that you MIGHT be interestd in coing Ehlers' sinewave indicator 'Ehlers sinewave indicator translation into MQL4' I am wondering if you made any progress on this... Thanks!
Hi all, I have a couple of indicators that are working very well. However, I wouldlike to see and follow the formation of my indicators bar by bar. Is that possible? Thanks a lot, brspMA
Hi coders, I coded EA based on some Vegas Daily rules. So it is not real Vegas Daily system. The best pair is GBPUSD, but it also work on USDCHF, EURJPY, GBPJPY, ERGBP. It uses VegasCurrencyIndicator and moving average of ForceIndex (1H TF, 2 period). Idicators and EA are attached bellow. Use for...
Hello Friends I am too tired now, tried to get a simple EA to work for this indicator and finding it hard. Please can anyone help This custom indicator is based on Heikin-Ashi Now HADIFFCO is a series which is a subtraction of Heikin Close and Heikin Open which is the histogram Now on top this i...
Hello all 1- I need to access data in lower time frames but when I use iBars(), that returns the value of 0; I have imported history data in to terminal fromTools menu. What else should I do? 2- Is it possible to use data from server without manually importing them? I meansomething like 1 minute...
Imagine you put two seperate (custom) indicators in the same seperate chart windowon a chart in your terminal. They seem to correspond, cross over or whatever: theydo have approximately the same values if you look at the graph, but when you placethose two custom indicators in two other seperate...
Hi, I took this example: ticket=OrderSend(Symbol(),OP_BUY,1,Ask,3,Ask-25*Point,Ask+25*Point,"My order #2",16384,0,Green); if (ticket<0) { Alert ("OrderSend failed with error #", GetLastError()); return (0); } However I am getting an error #4055, what does it mean? I have demo account with Meta...
Hi Does anyone has some useful information or source code(EA) which will copy all the activities (open/close positions) from one account and distribute these activities to other accounts . Let say an account 1 open a trade, this trade will be recorded and distribute to Account 2,3,4,5 etc . they...