MQL4 and MetaTrader 4 - page 1418

[Deleted]
Hi, I want to load the complete history (data until 1970) in one step, without manual scrolling the chart until the date I want. How can I do it?
[Deleted]
Hello I want to make a script which open trade with stoploss of 2% of account free margin... and i dont know, how to calculate 1 point value... for examle: OrderSend(Symbol(),OP_BUY,Lots,Ask,3,Bid- something *Point,0,"comment",255,0,CLR_NONE); Lots is variable. and "something" will represent how...
What would be the best way to import the results in from external indicators into the EA? A bried example would be nice. As always your help is appreciated
[Deleted]
I wonder if anyone can help me. Everytime I open Meta I need to add my Toolbars and teh status bar can any help pls. Thanks
[Deleted]
  Rogue Trader  (2)
I was working on an EA for sometime now, constantly changing things and adding new settings. Here is the latest version for you to try out. It's free and is still a work in progress. It works best on a 5 digit broker, wouldn't recommend on a 4 digit broker. In all of august there is not 1 losing...
[Deleted]
  Counting Periods  (1)
Has anyone had any experience with counting periods. I am trying to write code which will count the number of 1 minute periods. Can get the count of the first period, but not subsequent periods. Seem to be just swimming in circles. int LTM=0,AB,AC,AD; AB = LTM; //------ Past...
[Deleted]
Hi all, I'd like to know how MetaTrader generally handles concurrently running EAs. Let me pose a scenario to illustrate my question more thoroughly: I have two separate Experts running on the same magic number on the same symbol, and they both have the capacity to enter a trade. My ideal case is...
Hello mql4 community, here is my first EA and i have a few problem with it althought it is very simple. the idea is to open a position when high or low of the previous hour is broken. Can someone have a look on it and tell me why when backtesting it does not open a trade. thank in advance
[Deleted]
The above chart shows my back testing result... Check the attached file to see the forward testing result....
[Deleted]
Hi.. I have been trading forex for sometime, and i have figured out a way to earn pips consistently on USDJPY .. This requires hourly monitoring, which only a robot can do. I am looking for someone who can sincerely help me write out an EA for the entry exit rules which i specify, along with the SL
[Deleted]
This is closing partial lots BUT...not exactly doing what I expected. Maybe you can see the issue here. should close 1 lot when there is a BUY and the price goes .00071(just a random number i'm testing on a 1 minute chart) or close 1 lot when there is a SELL and price goes .00071 down using a 5...
[Deleted]
I'm not sure why, but my EA is acting a little funny. I back test it, it executes the orders, and gernerates the "Pending Order Alert". However, when it is live, all it does is generate the alert, saying, "Pending order Alert". I checked in the properties and along the program bar that the EA...
[Deleted]
Hello friends, i want to download or buy the m t 4 server API/SDK. Where Can i buy it or download it? The sever package i bought dont contain any developing files, so i want to get it now. Best Regards, Fox
hi, Is it possible to use MQL API without starting terminal? Thanks Arnab
[Deleted]
  Semi-log  (4)
Is it possible to change to logarithmic scales in MT4 charts? If not, is this planned?
I have some code which creates a little symbol indicator with buy/sell values. In this example the chinkou green line is above the price so it should be displaying an up arrow but it does not. Any ideas on what I have set incorrectly? The chinkou is always 26 periods behind so that is why I checkk...
[Deleted]
I'm getting confused with the function ArrayCopyRates. I haven't been getting the results I expected from it so I wrote a dumped out the contents and either it has a bug or the documentation is wrong??? double aRates[][6]; ArrayCopyRates(aRates); For instance this is a dump of my first few...
[Deleted]
Using OrdersTotal() returns the total number of orders including any pending orders - how do I test if I have any open market order in progress rather than pending orders?
[Deleted]
Hi, I want to modify my TakeProfit order 12 Hour after to OrderOpenPrice(Breakeven point) if there is no profit.Below code doesn't work.Please help... int timeout=12; // hours if (OrderProfit() < 0 ) { OrderSelect(i, SELECT_BY_POS); if ( (TimeCurrent()-OrderOpenTime())>=(60*60*timeout) &&...
Here is my gift to all. It is not much, but please accept it. FOREX RULES: 1. Do MANUAL optimization, analysis and research on weekends. 2. Weekdays are set for automatic trading . 3. Monitor system randomly, i.e, every 5 hours, just to be sure system did not go haywire. 4. If system malfunction
[Deleted]
Can someone please tell me where I can find a list of Error Codes and their meanings when using the GetLastError() function? - thanks
Is there a way to get MT4 to show 26 periods to the right of the chart like the indicator is supposed to?
[Deleted]
Mechanical trading is impossible! The whole thing is profanity. There is no one who has survived long on "mechanics". It's all a pipe dream. The gift is for the few, just like in any other field of human activity
I would like to have an indicator that I can leave open on the daily chart but it monitors all timeframes below it. How can I get the close of a timeframe with set period? if (Period() == PERIOD_D1 || Period() == PERIOD_H4 || Period() == PERIOD_H1){      if (Period() == PERIOD_D1) {         if...
[Deleted]
Hi, When backtesting my EA I noticed that my E.A ignores most of buy or sell signals despite all conditions are exactly met.(almost half) I confirmed this on charts visualy after every test.This happens both working on "Open Prices only" and "Every Tick" modes.And sometimes my E.A opens trades for...
I'm trying to set rectangles for the chart background but seem to be getting the same colour no matter what, which is orange????? Seems like it's laying the colours over each other regardless of the timeframe ObjectCreate("D1_Rectangle", OBJ_RECTANGLE, PERIOD_D1, Time[2],Low[2],Time[1]...
Hi folks! I was wondering if anyone can help with this simple problem. I set my EAs to run on the 1 hr timeframe, but I want all positions to close after 24 hours.. I've attached my code below and am still having a hard time transitioning from VBA.. Any help would be greatly appreciated. =) Thanks!...
[Deleted]
#property indicator_separate_window#property indicator_buffers 7#property indicator_color1 Red#property indicator_color2 Red#property indicator_color3 Red#property indicator_color4 Red#property indicator_color5 Blue#property indicator_color6 Blue#property indicator_color7 Blue#property...
Hello Experts! Who could repair this script?? thanks pansa
[Deleted]
Hi Can someone tell me where I can find documentation for the complete list of avaliable "common functions" for the MQL4 language set? thanks