MQL4 and MetaTrader 4 - page 1411

[Deleted]
I've got an EA that evaluates the previous 2 bars for a cross over of an indicator line. The problem I'm having is that the EA is alerting multiple times because it rechecks the previous bars repeatedly while the current bar is active. How do I prevent this from happening, so that it alerts only...
[Deleted]
  error 130  (2)
Hello, i get always error 130 from order placed in EA (not manually). the expert log with wide target and stop pips (500) 18:26:48 tcmtibEATest1 EURUSD,M5 inputs: TakeProfit=500; Lots=1; HedgeSymbol="USDJPY"; 18:26:48 tcmtibEATest1 EURUSD,M5: short stop=1.436170 18:26:48 tcmtibEATest1 EURUSD,M5:...
The alert is sounding every hour with this indicator, it should be picking up the previous value and only alerting if the lines have crossed back over. ANy ideas on what is wrong? //+------------------------------------------------------------------+//|                                      Alert...
If I would to trade EURUSD, GBPUSD, EURJPY, USDJPY would it be good if I use this filter? pls comments. //+------------------------------------------------------------------+ //| Compare | //+------------------------------------------------------------------+ int Compare() { int S, R; double
I use IBFX, but started to think that FXCM should be useful since I make scalper EAs. Thus, I was wondering which brokers EA makers were using. What broker EA makers mostly using? Thank you
[Deleted]
How can I determine the color of the last bar of the indiacator Awesome Oscillator? Thanks in advance, G
[Deleted]
Hi, I sometime look at the forum to see if there are good EA to use. Instead I find too many good ideas and a few good EA. For example, someone has placed an EA on RSS feed to show the open trades to others. It works fine, but after the handle reaches 32 it does not work at all. If you are going to...
[Deleted]
Hello I'm trying to write a simple EA using the RSI. The EA should buy whenever RSI is under 45 and sell when it's over 55. The EA also should close open long position when RSI is over 55, and close an open short position when RSI is under 45. Simple enough! I'm just trying to learn how to code...
  Bizarre error  (8)
hi Coders, I was programming a EA that i had in mind but after doing some backtesting i realized that i'd be better if the system had a Trailing Stop or Breakeven, then i started to code the break even first. And this is the code: for(int k=0;k<=OrdersTotal();k++) {...
I'm writing an indicator with a moving average crossing a bar with an Alert. But, the Alert toggles on and off a number of times during the current bar. What could I do to prevent the alert to go off so many times while the moving average is crossing that bar? Or, maybe what function if any, can I...
-
is it possible to dynamically change the background color and remove the grid lines from an EA
[Deleted]
  Linked Charts  (2)
How would one link, say 3 or 4 charts on different time frames, so that when the symbol of one chart is changed, the symbols on the other charts change as well? Is there a way to change the chart symbol using a script?
Hi, I am a very beginner in the programming field. It happens that i have a trading strategy that might work well if i have a hybrid EA including NN. However,i couldnot afford time or effort to start learning everything about advanced programming, genetic algorithms or Neural networks. I surfed to
-
Hi all there, i have installed two instances of MetaTrader, latest build on an XP Prof., from different brokers (one live and one demo). In both of the terminals i use the same charts, same timeframes same experts ... One terminal use about 300.000 mb RAM (live), the other only about 20.000 mb Ram...
i found this attached EA interesting but it lacks takeprofit. Pls can anyone make it to be given itself take profit the way he do to stoploss
Hi folks, I have been testing a multitude of systems (EAs) and after many, many lackluster results and complete failures I have come up with one that is giving solid results. That was quite a challenge. I don't believe in backtesting so I just forward test by letting a demo run in realtime and play
As far as I can figure when timeframe is changed in a chart, the expert attached to it will have it's extern variables reset to the values it had the last time variables where changed (or at expert start if no change was made). Can anybody verify this? And Metaquotes - why on earth is this NOT...
  IS IT POSSIBLE  (3)
I DON'T Quite sure because i am a novice in meta editor.If it is possible to have an EA attached to a 15 min chart,and while running on 15 min chart can still consider events going on in 1hr chart" window 0" in its codes even though it is not attached there e.g An EA attached to a 15min chart...
1.) What is your strategy? 2.) What are you indicator, if any? 3.) What road did you take to your success? I currently make money with a probabalistic approach on EURUSD 1H. I make a calculation from the previous bar as to the most likely direction of travel and set a very conservative TP with a
  REQ=Simple EA  (1)
Can somebody help me with a simple EA. I just need it to open a trade at the start of every new bar and have a trailing stop option, and if the trailing stop is hit stop trading, that's its. I will drop it on initially to enable it . Thank you very much.
Hi, I am trying to build my first EA based on few indicators. I found the custom indicator in THV system has showed for me a good signal that it might be build on. Now,I am wonding if any has the code of this interesting THVTrix V4.01 indicator that shows the divergence in THV system. I would...
Can anyone provide the data structure for the symbols.raw file found in the history directory? By looking at the binary dump, this file apparently contains the complete list of symbols available at the broker
[Deleted]
this is what says in the mql4book but I find it not to be true: "The values of real constants and variables consist of an integer part,a decimal point, and a fractional part. The values can be positive ornegative. The integer part and the fractional part are made of digitsfrom 0 to 9. The amount of...
Currently I'm demo trade using EA with interbankfx, alpari UK, and FXPro. Everything running just fine with Interbankfx, and alpari UK, but not with FXPro. There's no trade at all with FXPro !!!. As you probably know, Interbankfx, alpari UK (and the rest of us) using 5 digits to measure unit (e.g...
[Deleted]
Hi all, I learned that "pip" refers to the last decimal place in the quote. For example, EUR/USD current bid at 1.1486. When this figure rises to 1.1490 we say it rises by 4 pips. I also learned that in order to set the stop loss 50 pips down from the entry price (say Ask), I would use the...
To understand the POINT, Digits and NormalizeDouble better, I tried to print these values along with Bid and Ask variables. Print("Point Digits BidPrice AskPrice Bid & AskNormalizedValues POINTnormalizedValue and Bid PLUS POINT*PIPS- ",Point," ",Digits," ",Bid," ",Ask," ",NormalizeDouble(Bid...
[Deleted]
j'd want create the rsi of momentum , for example rsi(momentum(close,10),14). someone can help me? thank you best regards
My Expert generates a few signals, but I would like to make the validity of these signals on 5 or 7 bars (the signal should be not valid after 5th or 7th bar). I 've added the NewBar function to my expert, but I am not sure if that function will be good tested on Meta Trader using the Back Tester....
[Deleted]
Can someone help me out please, I'm only getting 0's as a responce. What's wrong with this code? int start() { int ArrayName[]; int i; for(i=0;i<=10;i++) { ArrayName[i] = i; Alert(ArrayName[i]); } return(0); }
[Deleted]
hi, I have created a EA and i want to prevent this EA being copy and paste by other after copy to my friend. How can i do this EA Security Control