MQL4 and MetaTrader 4 - page 1238

Posting code snippets in this forum is almost impossible. Everytime I try to post code or answer a posting with code in the quotation it is pure luck when the formatting doesn't get messed up completely. formatted text 3 spaces now try to quote this without messing up the indentation. Could the...
[Deleted]
i have forex broker but suddenly i can't contact to broker no phone answer,no e-mail answer even no withraw fund from my account i think this fraud, what do i have to do...please someone help me!!
[Deleted]
I'm hoping someone knows of code thats already out there.... I have a custom indicator who's values range from -10 to 10, but the change may take a year... I would like to create an oscillator that shows a value from -1 to 1 every 90 days. ie: if data for last 90 days high is 5 and low is -6,...
Has anybody gotten an Expert Advisor based on fractal . Please help me
Hi, sorry to bother you again guys with my questions. I've been building experts based on the below structure. It worked for one strategy, and so, I was trying to use the same framework to another expert. I always build an indicator to show -1 for the buy trigger and +1 for the sell trigger. Thus,...
  help help  (3)
extern double TakeProfit = 100; extern double Lots = 0.2; extern double TrailingStop = 50; extern double MATrendPeriod=50; //+------------------------------------------------------------------+ //| |...
[Deleted]
  5 sec charts in mt4  (11   1 2)
Hi, I heard that it is possible to make 5 sec bars in mt4 from tick online data. Has anybody made this indicator that can make that? Thx
Is there a way of running strategy tester on mt4 and then clicking on 'open chart' and running it on visual mode? "Yes you can" I am hearing from everyone. But what about having two same currency charts with different time frames running on visual mode? is there a way for me to do this. I have tried...
This one allows you to give your user a choice on what hours to trade. Now it will be different based on the users broker server time , but I am sure you can work something out. // Externs: extern bool Hour0 = true ; extern bool Hour1 = true ; extern bool Hour2 = true ;
New article Growing Neural Gas: Implementation in MQL5 is published at mql5.com: The article shows an example of how to develop an MQL5-program implementing the adaptive algorithm of clustering called Growing neural gas (GNG). The article is intended for the users who have studied the language...
I know I have asked this before, but I could not find it in my past threads. I also did a search for something like it and could not find a reference. I know that I need to basically do a command where I do something like the following:       int CntClosed = 0;      for(int i = 0; i <=...
[Deleted]
  old tick error!  (1)
Hello, Someone say me the reason for this error, Please?
Hi Guys, (and Girls if there are any) I have been looking for a few days now and can not find what I am looking for, maybe someone knows help. I am looking for an EA with the following stradegy, 1. open order on MA cross (easy to find) slow MA: 10 Days (ea. 1D Chart; Period 10) fast MA:...
hi community, imagine following scenario. EURUSD 1H. I close mt4 on WED and open next MONDAY. I have an EA applied to chart. Now i realised a problem on mt4: if i open mt4 on MONDAY first time; mt4 first apply ea to chart and fills the gap between WED->MONDAY afterwards while ticks are coming. So...
I am trying to draw a bar between two points in a separate window, unlike a histogram that draws a bar from a common point like zero or 100, below is a pic of the indicator, right now i have two lines and i would like a bar to be drawn between each value. any Ideas?
Anyone have the code of an indicator to draw the trend lines on a graph?
[Deleted]
I want to use scripts for placing and closing orders. For example 1 click 5 dig Buy 11pips. On my demoaccount this is no problem at all. But on my live account it doesn't work. I get the message ( on the journal) : loaded successfully / inputs risk=15 / uninit reason 0 / removed I have asked Alpari
Hello to allWell once again I must turn to you gurus out there. I posted a problem earlier. The original code worked. Not just compiled. I attempted to add an additional stop. I can get the code to compile, but the second stop is not acknowledged. I will post the code once agaian. The SRC is not...
Is it possible to create an EA - which, after 90 losing trades, will turn the account into a profit? Or - how can I turn 90 losses into a profit
Hi, I'm trying to handle 130 code error. I saw about MarketInfo(Symbol(),MODE_STOPLEVEL); but it's returning 0 for me. I'm facing this problem just on MIG Bank Platform. How it's working? How can I handle this situation?
[Deleted]
Hello everybody! I like to see only the MACD MAIN not the SIGNAL to change color automatically to green when greater than previous and red when less than previous interval. Thanks all your help in advance Zsolt
[Deleted]
  gap detection  (1)
Hi, I try to trade gaps, but the gaps don't always appear. I would like an EA that would send me an email if there is a gap (need to be specified gap size) between the close of the previous bar and the open of the current bar. Does anyone know if there is an existing EA to perform the above? or can...
Hi everybody, I've been build some indicators, but most of them have the same errors: Just at the moment when a new bar appears, the indicator shows zero. If a new tick comes, the indicator come back to it's normal value. If I change the time frame, the indicator disappears. Example : #property
  very simple!!  (3)
Guys, I'm trying to write one line in the init() function to tell me if EA is attached to wrong time period.. please can someone tell me what is wrong with thsi! if(!MarketInfo(Symbol(),PERIOD_H1))MessageBox("Attach EA to 1 Hour chart","Wrong Time Period",0); thanks
[Deleted]
Hello, im new in EA coding and i want to make a simple trading system automated. The system only uses one Simple MA oof 13 periods and a price line that will be defined by me. I want the EA open a buy when the Simple MA crosses over the price line and make a sell when the Simple MA crosses below...
Hi all, I'd like to start this topic to see how much money and pips people are really making. I've been trying to look on the internet to find success stories and I have discovered that every one measures success differently. The only problem is no one shows how successful they are by what I'm
[Deleted]
I just finished getting this program together but the only error i get is code 138 "Requote" when trying to execute an order, buy or sell. I dont get this code when running on FXCM platform, but some other platforms i get this code poping up once awhile. Below is the logic of my buy order when...
[Deleted]
Hey guys. I made simple advisor in mql and lets say it has few parameters . So i want to test it with parameter x=1, x=2 and x=3. So in tester (I use XTB-Trader) near this X-parameter i put Start=1, Stop=3, Step=1. And it still only test this for x=1 :( what to do
[Deleted]
Have downloaded several scripts for multiple order entries. I placed the scripts in the expert/scripts and can drap them onto a chart where I put in lots and take profit and when I hit ok it says in the trade journal that the script has been removed. I checked with expert/option and DLL function...
Dear MetaTrader team. I don't like the new minimalistic style on this forum. Maybe a boarder here and there would not be wrong. Also a few pictures, maybe a logo or something may look good. I liked the old edit bar in the post section, the new one is a bit too missing.//z