MQL4 and MetaTrader 4 - page 1006

[Deleted]
Hi All, I have an EA that needs to be configured with "Allow DLL imports ". I can either set this every time I attach this EA (that is annoying) to the chart or set it by default - but it will affect all other EAs. Is there any way to set defaults for particular EA only? Thanks in advance, Michael
[Deleted]
Hello I'm very new to MQL4 programming but I have a lot of experience in programming I started with the most simple program to get a first feel of how things work. init() function is being called but start() function is never called This is my code: #property copyright "talfink" #property link...
[Deleted]
I am currently studying how to code MQL4 though am not a programmer. My aim is to build a simple EA based on crossover of 5 and 8 EMA settings. Crossover to the upside opens buy positions, while to the downside closes the buy positions and opens sell positions automatically. It should be able to...
Hi forum, how can i change the Take Profit value for some hours during the day? For example: time between 8:00 & 14:00, the TP is 20 pips and time between 14:01 & 18:00 the TP is 10 pips Please show me the way Thanks in advanced
Hello! I have some EA, which in init() function creates one file and delete it in deinit() function. In start() function EA opens and close it. The problem is that sometimes (don't understand why) file is not deleted and I get ERR_SOME_FILE_ERROR 4100. Please, tell me, how to fix this problem....
Hello, I have written an algorithm in VBA for FX trading. I would like to know if I need to convert this algorithm into another programming language so that I can trade on a platform. I have not yet decided on the trading platform, but it seems that MetaTrader is one of the bigger ones. I'd very...
Good day everyone! I do not know if this is doable or not so I thought I would ask. I am a newb and know nothing about writing up a program so I am asking if anyone here can help me. How I trade is by switching back and forth between different time frames to determine if the signal of the lower time...
[Deleted]
Turning on Russian interface on in MT4 (Windows XP SP3 Home Edition) makes all menues of unreadable strange symbols. Russian news are unreadable with any interface. Please tell which font is used for interface to try to fix the issue.
Hello, I want to send pending order with entry price value from Fibonacci. double p1,p2,tp1,tp2,tp3; p1=ObjectGet(FibName,OBJPROP_PRICE1);     //100% fib price string sp1=DoubleToStr(p1,5);                // price to string p1=NormalizeDouble(StrToDouble(sp1),5);     //string to double...
It´s possible to load Template with Tester? I dont know why, but if I load my EA named "test2" than there are some indicators load with him, but if I copy the original sorce and put in another EA with another name, than this indicators are not load with the EA, now I just wonder why by the one EA...
Hello Friends, I am new to this site and dont know writing any programs for backtesting. I shall be thankful if somebody writes a simple program for me. I think some good programmer shall only take half - day to write it. If anybody is interested to do it, please reply.
[Deleted]
My dll won't load with build 432 August 2012 but it does with build 432 May 2012. I get an error 126 but it's a static dll and has no missing dependencies. What happened MetaQuotes? I can't add build 432 August 2012 terminal.exe to Data Execution Prevention (DEP) exclusion list any more!!! But with...
[Deleted]
  Windows RT  (2)
Hello, Has anyone tried to run metatrader 4 on windows RT (windows 8 for tablets) or know if this is possible? Thanks, Irv
I want to use the dll but need the syntax for the result function. Can someone please help me find a tutorial with the proper calls to the dll? in this code 'TicksInMySQL' are used some calls to make and run a query but i want to read the results also. Any help or a poit where i can get it will be...
Hi, I want to learn programming in mql 4&5, started 2 weeks ago. But so far i didint find any type of resolution for my system. System generate signal after MA crossing - i know how to do this. System than place pending order buy/sell from MA level. As price bounce lvl. I dont know if it is...
[Deleted]
I realize there is no way to totally accurately account for volume in forex as there is with stocks and futures where the # is totally known to us. I feel this is a big disadvantage needing to be addressed and atleast try to account for in some way. One way would be to account for the rate at which...
I want to add 0,10 0,20 0,30 and on to the quotes. Can somebody help me?
  Share your backtests :)  (30   1 2 3)
Hi all! I thought I would share a back test of my best strategy. I wish to see your best back tests here so feel free to show it off because I know you want to. ;) Strategy: Support & Resistance; (uses only open prices so ran "open prices only" modelling quality. Same result as Every tick.)
[Deleted]
In Windows 7 I lowered the UAC via the Control Panel to the lowest level because I was told that that would permit the writing of log files under MT4 dir structure. After the change a reboot was required and upon excuting MT4 thw Market Watch is empty. How can I recover the Symbols into the Market
Hi, I need help to receive the " Get_ThresholdValue " data from the attached indicator which is an correlation indicator between 2 currency pairs. Can someone help how to adjust the indicator to receive the values? Edit: DECOMPILED CODE REMOVED ! !
hello at this code i am taking error below,can you help me about it '\end_of_program' - unbalanced left parenthesis C:\Program Files\MetaTrader 4\experts\dddd.mq4 (149, 1) /+------------------------------------------------------------------+ <SNIP>
  iTime question  (7)
Hi All, Having a little (ok, a lot) of trouble with iTime functions. I'm trying to determine the closing price of a bar that opened at a particular server time today. I assume I need to get the shift to the bar, and than query the closing price. My sticking point is getting the time shift. For...
[Deleted]
Question: Once I activate a trailing stop, does it only work while the trade is in profit, or does it also take out the trade if it retraces back into debit territory? Thank you all very much!
[Deleted]
  Urgent  (1)
do u have meta trader 4 manager for android,,, not trader terminal i need MT manager for android
I have noticed that there is an assumption that Expert Advisers accept their inputs as if they are meant for 4decimal place brokers. There also seems to be the assumption that programmers should assume Users will assume that the inputs like Take Profit are going to be in measures of 4 decimal places...
I need an MT4 EA to buy that has the following features; To trade EUR/USD & GBP/USD Should have a high performance on back test'period' to be determinedby you (90% tick value) Uses stop loss, trailing stop and take profit parameters Should place trades at least 3 times daily To use the best...
Hello, I want to write some tick information to a file and I use a simple file appending function: void simpleFileAppend(string fileName, string txt2Append) { int handle = FileOpen(fileName,FILE_READ|FILE_WRITE); FileSeek(handle,0,SEEK_END); FileWrite(handle,txt2Append);...
Price=ObjectGet("Name",OBJPROP_PRICE1); When I run it in EURUSD , I get price in 5 digits 1,2755, how to get it in 6 digits 1,27558. Thank you
[Deleted]
#property indicator_separate_window #property indicator_buffers 1 #property indicator_color1 White double price[],cog[],draw[],SA,SB; int B,N,C,inc= 0 ; int init(){ return ( 0 );} int start(){ IndicatorBuffers ( 1 ); SetIndexStyle ( 0 , DRAW_LINE , STYLE_SOLID , 1 , White );
[Deleted]
MQL4. I have order ticket. How can I check if order is pending or not. Currently I'm checking if OrderProfit() != 0, but this excludes cases when order is live but price dropped/grossed and current profit is 0.0.