MQL4 and MetaTrader 4 - page 459

To post a new topic, please log in or register
Hello, my code is opening and closing trades as long as indicator1 > indicator2. I want to make it trade only once, in the beggining, when the conditions are met. Then wait for the conditions to be different, and when they are met again, it should start trading again. Please help me with this.
  Problem with Filedelete (13   1 2)
Can anyone help me?, When trying to delete a file I get the error 4100 (Some File Error). Below you can see the code I use. Thank you. int handle_input; string file_name="operaciones_file.csv"; //+------------------------------------------------------------------+ //| expert start function...
Hello Everyone, All the best for the new year coming. Anyone ever run across this backtesting. Ive seen this before but dunno the solution. I have downloaded correct history of data but how can it backtest and close or open order not on the bar at all and past the top like these. How is that...
I tried with this: #import "kernel32.dll"double CreateThread(int _1, int _2, double function, int _4, int _5, int _6);#import#import "user32.dll"   int MessageBoxA(int hWnd, string szText, string szCaption,int nType);#importint init(){   double hThread = CreateThread(0, 0, myMessageBox(), 0, 0,...
X3MA, It uses 3 fast MAs to determine entries and exits as well in an event of a crossover. I have been hacking my mind trying to look for a good indicator to help towards the exit of the trades of this EA. This is because it has a good entry but poor exit. Over 80% of the time the EA trades...
Hi, i need the full function of iMA() especially the exponential moving average.I would like to study how a moving average is calculated so please give me the full iMA() function, thanks :)
forexparvenu
  A Doubt... (5)
im trying to transform some indicator to expert advisor just for display some information(acc detail, spread swap ....) the problem i met is how to display it on other corner rather than top left side, because i using comment function to display it
Hi, Would like to ask, is there anyone encountered invalid lot number for OrderClose function() ? I'm trying to play around with the EA, a very simple EA. The lot I had initially is 0.1 when executing order send. Then when I tried to loop through all the order, all order lots is 0. Here is my code:...
Hi,is it possible to get the exact price at a certain fibo level (for example 50%) with mql4 without the need to manually take the two points and divide them by two bla,bla,bla..? I mean to build a function with objectcreate if I am not mistaken using two points,and get the price value of a certain...
Hi : I have a simple question. Every time press the right arrow button, the chart will move 3 bars or so. Is there any options that can enable only move 1 single bar at a time when pressing the right arrow button please? It would be much more convenient for reading the chart. Thanks
...... deleted for personal reasons
Hi there! I am new to mql 4 and I made a simple 2 EMA cross advisor, which I have tested on demo account, but a little bit scared to get it on a real one Testing it with small lots on 1h scale would take too much time, and testing it on minutes scales is expensive, because the minimal lot at my...
Hi, I am running 2 indicator scripts at the same time both making text outputs (Prints...) in the experts window. Is possible to avoid the outputs by a command ? Something in the top of the script like "#property ..." ? Thanks
Hi, I have a custom indicator which does calculations using three time frames and draws them on the chart. It basically draws the 3-sigma bands of t1, t2 and t3 time-frames (t1<t2<t3) on a chart of t1 time-frame. the symbol is not important. I have now written a EA which uses this indicator ( and...
  Question: 'fake trades'? (11   1 2)
I finally managed to create the code I wanted, and learnt a huge deal from getting stats with it. Probably most importantly, that in about 2 months from now I would have wiped out my account (even though I am making money now). If only I started learning 15 years ago! Now, I have this question. I am...
I have prepared data for strategy teater as below: open a chart window, zoom out, then mouse left down, drag towards to right from left, many new bars coming; so this behavior has download recent data in the current time frame; now I download like this from 2013.12.1 to now. after this, I download...
Let say I have 3 sell orders currently running. Which command should I use to close them all? OrderClose() ?
This simple code,add 10 to initial equity value (1000) each second until it reach 1200,now what i want to do if possible?, is fixing value to 1200 . after if my metatrder4 shutdown and restart,de counting process must begin from 1200 and not the old value of 1000. thank for any help...
Hi. I'm Japanese. So I can't speak English. Sorry. Many people uses there's own indicators. I use "Standard Error Bands" indicator and BollingerBands. Standard Error Bands show the direction of the current trend and the volatility around it. Default settings are LinRegLength(21), SmoothingLength(3)...
  Buggy iClose ? (16   1 2)
Today Friday 20 December 2013 (GMT+1), I have identified two situations where iClose at first returned incorrect values. What follows are snippets from my log-files (time-stamped GMT+1). 2013-12-20 00:00:03.7687|TradePlatform.MT4.Core.Nlog.NlogEntryLogger|Debug|4|, <-- ###MQL###|iClose|USDCHF|1440|1...
New article Indicator for Kagi Charting has been published: The article "Indicator for Point and Figure Charting" has described one of the programming ways of creating Point and figure chart. This chart is known since the 19th century. However, this is not the only chart from the remote past....
sorry, just had to get some attention for my problem, could anyone help with in programming a stoploss, the draw down on my EA is exhausting, although it has produced some good results Bars in test 740874 Ticks modelled 1418416 Modelling quality n/a Mismatched charts errors 0 Initial...
I have several mt4 broker platforms in DEMO mode and all at once none of them are active. Prices are frozen, etc. How can I determine how this is happening?
hi every one i have this expert open orders when no orders open and if current order is loss EA open new order EA use this code ordertotal()==0 to check no orders open to start work but i need to change this code ordertotal()==0 to check if any buy orders was opened, any one cn hlp i try to use...
Hello, Attached to this mail is my code and some explanations of what my EA should do but apparently it is having huge problems. I want something corrected and Trailing stop added. This EA should trade all the crosses of Moving averages, due to the fact that all crosses do give a signal of a trade...
I am using dukascopy data and getting 99% modelling quality on the m1 (not sure that is even possible) and when I click open chart, the entries are not even within the price of the bar, they can differ from the bars price range by around 20 pips sometimes! What causes this and does that mean the...
Hi. I use a grate indicator- the Daily pivot points . but I have a small problem . there's no alert sound when the price cross the trendline up/down. it requires me to check the charts all the time. it's too bad that there is not alert sound. please, can someone put an alert sound to this indicator...
I would like to change the time zone for my metatrader. Can anyone tell me how to do it? Thanks