Download MetaTrader 5

MQL4 and MetaTrader 4 - page 1194

To post a new topic, please log in or register
  LSMA Experts and Indicators (139   1 2 3 4 5 ... 13 14)
After doing a search for LSMA on this site I have found that there is no central thread for using LSMA as an indicator or expert. I have started this thread to serve that purpose. I will be modifying this first post to contain the most recent versions of indicators and experts related to LSMA as...
I would consider myself an expert programmer but am new to financial trading and quantitative finance. I've been looking around on the forums for MetaTrader for the ultimate winning trading signals, but came across a simple strategy that depends on the price crossing of the lowest value for the...
Can any one help with that? I want to set up a system where execution take place based on a received mail alert. In other words I am looking for a EA function call which can read an incoming mail and later I can make decision based on the received mail. Please let me know if any one knows. Thanks,
Hello, i have leran now good coding and want let you all know if there is one hoe have a good working Idea I can code a Expert Advisor for us to use, just contact me at kuc2n (at) yahoo.de and let us discuss .
Hi, I need to calculate the Highest Value of a Moving Average in the most recent 20 bars. I think I can’t use the iHighest function... Anyone can halp me? Thank you!
Is there any benefit to counting bars like this: for(i = limit; i >= 1; i--) or this for(i = 0; i <= limit; i++) ? Should I have all of my indicators counting bars the same way? If so, how do I convert it from counting bars using one method to the other? Thanks in advance.
I am new to the forum and to MQL. I have a system that I would like to translate to an expert advisor. This is logic of the system: Trading is based upon average daily range and price movement; not indicators. The initial trade will take place at the beginning of the European session, between 0600...
Hello, As a relative new user, i just won't to follow two different Forex-pairs (EUR/USD - USD/JPY) These two charts are set with my own chosen indicators... When i close the programm, and re-open it the next day, i have to deal with ALL the symbols in the programm...! All these charts are re-opend,...
I got the following result using one of the EA's on this site by adjusting some of the parameters and adding increasing lots as the equity increased. Is this possible or is this just a flaw with stradegy tester?
Hi, everyone :) I need to read data from different charts in an ea. I'm talking about the same currency pair, but different time intervals and the information, that will be important, will be the high, low, open and close of different bars, differently long. Can you give me any idea of how this can...
is there an easy way to create a EA from a custom indicator? My Meta 4 editor doesnt' have the EA icon to create the EA MIke
  Endless loop? (2)
This script is simply supposed to add up all lots taken, determine their position, close all orders and enter a new order in the opposite direction of the same total size.  There would be problems if you have orders of two different directions open at once, but since I do not trade this way, it is...
this will not execute a buy ??? #include <stdlib.mqh>#include <WinUser32.mqh> int start(){ int ticket;if(MessageBox("Buy 0.01 "+Symbol()+" ?",              "Script",MB_YESNO|MB_ICONQUESTION)!=IDYES) return(1);ticket = OrderSend(Symbol(),OP_BUY,0.01,Ask,3,0,0,NULL,0,0,Green);if(ticket<1)  {   int...
Greetings, This is my first post and I want to thank you very much for creating MetaTrader and making it available for free!(?) I have a couple of questions that I will post as separate threads but I have a couple of questions that fit in this thread. 1. Why is MT free? 2. How long will it be free?...
Hi, everyone, Another newbie here :) I've been trying to write an ea based on the data, provided by an indicator, again written by me. Of course I can always add the same code that I've used in the indicator in the ea as well, but I'm really hoping there's a better way. I've seen functions that use...
Hi, Dear Coders. This is StepMA. Only one MA in the code. Can anyone of you help to change the code, to write 8 stepMA in this indicator, please. I would like to have 8 stepMA in one indictator. //+------------------------------------------------------------------+ //|...
New article Expert Advisors Based on Popular Trading Systems and Alchemy of Trading Robot Optimization (Cont.) is published: In this article the author continues to analyze implementationalgorithms of simplest trading systems and describes some relevantdetails of using optimization results. The...
I wrote the following to close orders. Actually I set two different situations to close long positions. The structure is as follows: for (int i = 0; i < OrdersTotal(); i++){if(OrderSelect(i,SELECT_BY_POS,MODE_TRADES)==false) break;if (OrderType() == OP_BUY)    if(*******)     {     if(*****)...
Hello Community! My question is: what's the difference between running an EA in a productive environment compared to a simulated environment such as the strategy tester? I'm thinking of aspects like - quality of modeled environments (data quality for instance) - availability (hardware, power,...
Hey there everyone! It's been almost a year since I posted needing help. I've been able to figure everything out thus far. However- This time I've been stumped on what to do. for(cnt = OrdersTotal(); cnt >= 0; cnt--)     {      OrderSelect(cnt, SELECT_BY_POS, MODE_TRADES);         mode =...
Hey my fellow traders, does anybody have a script which can open short and long positions at one time and I can define stop losses and take profits in it? I mean instant execution. I was trying to make a script like that but, Im not really "programmer" and it didn't work well. Sometimes it just...
please i like to know what will happen if i open an order manually,with take profit, stop loss,and trailing stop, and i decide to attach an ea that has the same instruction to the chart after opening the trade,will the ea continue to manage the opened trade or ignore it and open its own.thanks in...
I have an ma cross indicator I am trying to get to send me emails when they cross up or down, the problem is I get tons of emails like at every tick it seams after the cross. Does anyone have any idea what I am doing wrong and how to correct the problem. Thank you in advance. property...
How do you write a code to increase the trading lot size by every (full)  $1000 gain in account balance and the lot size should not round up ? eg Balance   lot size $1000     0.01 $1450     0.01 $2000     0.02 $2990     0.02 $3100     0.03
I found in many backtests that orders opened with defined TP not always close when the TP arrives. Is it some kind of known bug? Am I missing something? I'm attaching part of a report I've got which demonstrates it quite well. In the report, order no. 7 should have been closed when order no. 9 was...
I am having a tough time firguring out how to apply the Stochastic on top of AC indicator in Meta Trader 4. Can someone help me please? Thank you!
I would like to start a discussion on the optimizationoptions that are currently available in MT4 (not the actual implementation ofthe GA used for optimization, which should be a topic for MT5). In its current version MT4 has 3 “models”: 1) Every tick (claims to be the most precise...
When restarting the previous charts and templates are applied. Sometimes a chart leads to hanging, and I would like to find the .ini file, or .TXT file and manually delete just one of the charts from the file. That way I could restart without error. Where is the file/entries to do this manual...
Hi, I wonder if anyone can help me. I'm new to MQL4 and don't really understand it. But, what I have found is that the ADX (and DI's) calculations appear to be very different from Wilders original formula and the results are also very different from other trading platforms. I've looked at the code...
Hello, I´m looking for an EA, who would me helps and programs this: at first: - it can always only 1 (one) order be open - trading on chart "Symbol ()" - timeframe used on the chart - LOT = 1.0 (should be variable) furthermore: - OP_BUY: - if ((MacdPrevious < SignalPrevious) && (MacdCurrent >...