MQL4 and MetaTrader 4 - page 1209

Dear Gurus I need some help here. I was trying to write an EA where it requires the recording of the Signal value (or in general any data, for example the bid and offer prices) at the moment of MACD crossover. The recorded reading will be used for comparison as the condition to trigger trades (I...
[Deleted]
Dear all sirs, I have one imagination to find Double bottom and Double top. Do you have any idea to caliculate how to find them by EA and Alert ?? If you could have some ideas, It will be so appreciate and glad to share informations. I have only a little programing skills but trying to find Breake
[Deleted]
hi, i'm struggling with invalid price (Error 130) when trying to modify order with trailing stop. i tried Normalizedouble(xx, 5), the output is 1.33052000. how to remove this trailing 3 zeros and apply the value to stoploss? thanks and regards, vinoth joseph
[Deleted]
Hey guys, I need help! I need to transform real time MT4 data to Metastock! Thanks in advance!
Hi, I'm new to Synapse and did have browsed for the topic but found nothing in the forum. So I suggest here to create a tutorial on using Synapse dll on MT4. Please can some one help me? I start as described bellow: #import "XXX.dll" void StepEpoch(); // Step one epoch #import this is OK...
  Elder Impulse EA  (16   1 2)
Elder Impulse EA This EA was created within this section (elite indicators' subsection) and I created this thread just for this EA only. This EA was coded by Tradefx1 using Mladen's Elder Impulse indicator. It is what he wrote: Based on mladen rules for an EA, maybe we can work with this.Up to you...
[Deleted]
Hy, I want to use two underlyings within my expert advisor. For example two moveing averages: double MA_US_cur=iMA("US30",0,1,0,MODE_SMA,PRICE_OPEN,0); // DOW Indices double MA_DE_cur=iMA("DE30",0,1,0,MODE_SMA,PRICE_OPEN,0); // DAX (GERMAN 30) Indices When I use the above code for live trading I...
[Deleted]
Hi, Can anybody give me a clue, if the source code of the built-in iMA() function is available somewhere ? Thank you, Svet
[Deleted]
Hi, I'm trying to make my first EA. I need to give each open position a variable that will be remembered until the position closes and if necessary updated if certain conditions are met with every new bar. I believe the variable should be declared before the start() function... but how can I do this...
[Deleted]
Hello all: Thanks first to those of yo who have helped me with the instant buy-back code based on looking at Order Close Hostory. It works! On that note, me new EA begins first by querying for open orders. If there are open orders, then it does xyz calculation, But if there are no open orders, it...
[Deleted]
Hi I was wondering if I a trailing stop set at 15 pips, as then a trade moved into 15pips profit this would then set the stop loss to 0 pips. If then the profit moved up to 16pips, will the stop then change to +1pips stop loss, or would it have to move 30pips in profit before changing to +15pips...
New article MQL5 Wizard: How to Create a Module of Trading Signals is published at mql5.com: The article discusses how to write your own class of trading signals with the implementation of signals on the crossing of the price and the moving average, and how to include it to the generator of trading...
New article MQL5 Wizard: Creating Expert Advisors without Programming is published at mql5.com: Do you want to try out a trading strategy while wasting no time for programming? In MQL5 Wizard you can simply select the type of trading signals, add modules of trailing positions and money management -...
[Deleted]
Dear all I am new to MQL4 and have problem in writing my code (detail is shown below). What I want it to do is, when the condition is fulfilled, an arrow should be shown on the specific bar of the chart. #property indicator_chart_window #property indicator_buffers 4 #property indicator_color1 Blue...
Hi, can anyone recomend a book about trading, but without indicators, Interested in Trend-Lines, Support And Resistance, Fibonacci, There is an ebook called "Forex Trendline Strategy" by Kevin Lee, but I cant find any reviews that are worth consideration, all I read is that there is a low return...
[Deleted]
I have just installed Fap Turbo onto MetaTrader 4, attached it to a chart, and configured its settings. However, when I try to run it the MetaTrader Platform gives off an error saying: "Use scalper system only on EURCHF, EURGPB, GBPCHF or USDCAD M15." FapTurbo Error I don't unerstand what it's...
  Histograms  (11   1 2)
I have been trying to make an indicator that uses 4 MA lines to calculate direction then uses that direction to decide which of three buffers to use for drawing a macd histogram, so the end result I was looking for would be a macd histogram with three colours, I looked at the code for the awesome...
Im writing my first EA 1. I want only 1 trade running at a given moment how can i make sure this happanes ?? if a trade is reaching either T.P or S.L it loses its ticket and its value becomes -1 ? 2. I want to set a some variable once a trade has reached S.L orderselect(ticket...
Hi, I'm developing a scalper and low execution latency is very important for me when trade is executed. The problem is that MT4 has a one TCP/IP connection for price feed, that is always connected. However the connection to the server for executing BUY/SELL commands is connected on first use bases
Can someone point me in the right direction for this indicator? I am looking for the ones developed by mladen. They were referenced in a thread by James the Giant, but he has been banned and I can't view his posts anymore. The mladen indicator I'm looking for has the ability to show three separate...
[Deleted]
The standard ATR indicator only displays 4 decimal places. It appears to be rounding up. I need to display 5 decimal places. I tried modifying using NormalizeDouble (see below) but that does not work. How can I get 5 decimals with the ATR indicator?...
[Deleted]
  time zone  (3)
Hi all Could any body help me to let the time zone work in this indicator its in the program but when i activate it it wont work thanx in advance
Dear all Can anyone tell me how to change the starting time of a 4hr canddle in MT4? In fact, starting time of 4hr chart in MT4 is different from my broker account, so the indicators in MT4 can't match those in my broker account. Anyone faced this problem before? Also, there is a scripts in MT4
Hi, I want to write an EA which checks my order conditions only at the open time of the actual bar = one time at each bar. How can I do this? if(iTime(NULL,0,0) == TimeCurrent()) doesn't work. Thank you
I wrote an EA that trades on trendlines. It does this by reading price values from actual trendline objects. These objects are drawn to the chart automatically by an indicator I also wrote. The trendline indicator, uses metaquotes' "ZigZag" indicator to identify swing highs/lows and uses those...
[Deleted]
i need help with simple programming which playsound when bid or ask stop moving for certain period, ex 3 minute can any1 here help me please? here is my coding, still newbie in coding, so i dont know how to get it run extern int minute = 3; extern int distance = 0; int start(){ if (minute==3)
[Deleted]
  Round numbers  (5)
static double UpperRoundNumber, LowerRoundNumber;       for(int RoundUp = 1;RoundUp <5000;RoundUp++)       {          if(Digits ==5)          {            UpperRoundNumber=Bid+RoundUp*10*Point;            UpperRoundNumber=UpperRoundNumber*100000;          }          if(MathMod(UpperRoundNu...
  Sponsor/investor wanted  (98   1 2 3 4 5 ... 9 10)
The thread is purely experimental. I understand that the chance of finding an adequate sponsor/investor is zero... However, I need it, if only for posterity or (and) a book, such as "Forex, the way of "zero" to "six zeros", or maybe a pessimistic title:) Frankly, I'm "parallel" to possible jokes, I