MQL4 and MetaTrader 4 - page 1599

[Deleted]
hi. i need help extern datetime thedate=( i want to insert today's date here ) how? i tried TimeDay(CurTime()) but it didnt work
Hi, I just installed MT4 on new komputer. And I want to copy the mailbox on old computer to the new one. I already try to copy file in the mailbox and config folder to new computer but when i open the MT4 the message not shown. Is there any way to do it? Thank you. Aldhy SP
I would like to know what it means: //---- input parameters periodAMA = 9; nfast = 2; nslow = 30; G = 2.0; dK = 2.0; My EA is based on MA but when the market does big movies my EA's get strange. Maybe AMA can solve this problem. Thanks
Here is the link to the picture. https://c.mql5.com/mql4/forum/2007/04/gps_prob2_2.gif It is from "Did you see such a picture" thread started by Rosh, and this image posted by Collection. I'm using "-" and "|" character to draw this line (using label), any better idea?
  get all Symbols  (4)
hi all i need to obtain all symbols in MetaTrade... How to code? regards charles
Hi all, How can I display time continuously without it beingdependent on the data. i.e. the time is updated without any update in the tickvalve. Cheers
[Deleted]
I have altered a template advisor to open buy trades only when the current MACD is > 0 and when the previous MACD < 0 (with a few minor additions). Why would this trade open, when the MACD is clearly below zero? Is the advisor seeing the MACD jump above 0 on another chart period? Can someone...
[Deleted]
When a position is closed using a stop loss, the "close" isn't written to any log file (at least none of the log files I can find). The only indication I can find of a stop loss trigger is the s/l column in the Account History tab, which turns red. Can anyone point me to the correct log file to see...
[Deleted]
when an order sell Gbpusd :op = 2.0024 sl = 2.0054 profit = 1.9807 ask = 1.9959 ,I modify sl to 1.9979 by orderModify() . And orderModify() return the value of Error= 130 (non-valid stoploss). the code is as follows : bool bSuccess = false ; double _OrderStopLoss = OrderStopLoss() ; double...
[Deleted]
when an order sell Gbpusd :op = 2.0024 sl = 2.0054 profit = 1.9807 ask = 1.9959, I modify sl to 1.9979 by OrderModify(). but,to my suprise, the function return the value of error 130 ( non-valid stoploss). the following is my code : bool bSuccess = false ; double _OrderStopLoss =...
[Deleted]
dear all I have created a very very simple dll using visual studio 2005; here is the definitions, but it doesn't work: cpp file: // TestDLL.cpp : Defines the entry point for the DLL application. // #include "stdafx.h" #ifdef _MANAGED #pragma managed(push, off) #endif
An ATS(Automated Trading System) is up for sale. The system is a Quantitative Pairs Trading Strategy, utilized by Hedge Funds for safer trading. The Trading System is based on an equity strategy detailed in this article http://www.traderslog.com/trading-pairs.htm The strategy is 100% fully...
[Deleted]
Sadly, I am not up to the task of adding an indicator that is available on this forum. I just cannot see what to do. I am sure there would be somewhere an FAQ, easy to understand instruction that even a Luddite such as I am I can follow. Could some kind Genie, please help me with instructions....
Hello, this works: double test[4]={1.1,2.1,3.1,4.1};ArraySetAsSeries(test,true);Print(test[0]," ",test[1]," ",test[2]," ",test[3]," size ",ArraySize(test)); it change the array indexing direction. But when does one full a array of this way, little or! Now, this dont works: double test[4];...
[Deleted]
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?
[Deleted]
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,
[Deleted]
  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
[Deleted]
  Multiple orders  (1)
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?
[Deleted]
  ObjectGet error  (5)
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",...
[Deleted]
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...
[Deleted]
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
[Deleted]
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
[Deleted]
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
[Deleted]
Hi all any way to do that get beep alarm when indicator meets conditions ? thank you.
[Deleted]
  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);...