Expert Advisors and Automated Trading - page 165

To post a new topic, please log in or register
please i have this ea that increase lotsize on lossing position but my problem is why did the lotsize reaches 0.41 and returned 0.01 lot what is the cause of this or is there anything to tweak on the ea code.thanks
Why am I unable to add volume criteria using the strategy wizard in MT5? I can add all the others shown here. http://screencast.com/t/6cUox6VKF
Hello, does anybody know if it is possible to code the stoploss of an EA so that it only is executed if certain other parameters are fulfilled. To be exact I would like my s/l only be executed if bid and ask move into one direction to avoid stopouts due to an abrupt increase of spread into one...
Hello, I'm trying to make a break between each position. I want the EA to open position exactly after 10 minutes of the previous position closing . This can be easily accomplished through Sleep() function but the problem is it doesn't work in strategy tester so i can never test this strategy...
Hello, I want to use two classes which have the same name and I want to know if there is a way to do so. The reason why I don't want to change one class name is that I want to stick to the convention. Thanks in advance.
I need the following EA and source code. It should back-test profitably. Assume charts current currency pair. Assume currently selected time frame. Use default MT5 settings for each indicator. It is OK to be out of the market until conditions are met. ENTER TRADE (Buy or Sell) when:...
I am attempting to set some breakpoints in my MQL4 EA running in the tester (gleaned from: http://articles.mql4.com/477 and listed below) The breakpoints work, but I cannot restart the test? And any subsequent attempts at starting a test do not run (blank visual mode chart) - I have to restart the...
On 6-27-2013 I listened a radio show that mentioned 4 components of agood system. They were price and volumeindicators (Stochastics), support/resistance indicators, and trendingindicators. I sure wish I had constructed the presence of mind to get more information about that because it seems to...
Hey guys, I'm learning to make ea's so that I can make one for my trade strategy. I need a trailing stop that starts immediately as soon as the trade is opened. The line of code I am using at the moment allows a trailing stop to kick in from when the trade reaches the value I enter, but the issue is...
please can someone help me with a code to hide price line i mean take profit and stop loss line or you can help me with the code to move it at the next profit or stoploss level.help if it cant be hide.i have search and try coding it into my ea but of no avail .thanks
i often create function that hides global declarations, there somehow to avoid this problem ? i need to create several function that catch the same variable of the onstart(), to code it faster and easy to read i desire that all my functions have the same name but its another declaration, so i get...
Anyone interested in making a big EA forward test group here? My aim is to get many traders united in order to forward test as many EAs as we can. Together we will be able to share our VPSs and EAs qe have acquired in orther to find the most profitable ones. I can forward test at least 10 different...
Attached is the .mq4 codefile for a grid system EA. Under certain market conditions and with certain settings this EA is net profitable... as long as you keep a constant eye on it and limit its total positions to (for example) 30 by turning it off when the sum of its open positions and pending stop...
Hello, I am struggling to find anyone to develop my EA. Its up in the freelance section and is relatively simple if not already exists. I have been trading manually for a few years now but having decided automated trading may be worth trying, I have very little knowledge of MQL5, code base,...
When I use functions like TimeTradeServer, TimeLocal, and TimeCurrent, they return me the time in the tester and not the actual time in the real world.  Normally this is what you want but I want to measure total times of tests that I run so I can improve my ea's speed.  How can I do this?
Hello forum, good day. I´m trying to detect the moment when three MA indicators cross and know in which direction they are going. This is what have so far: input int MA_1_Period = 5;input int MA_2_Period = 10;input int MA_3_Period = 20;double MA_1 = iMA(NULL,0,MA_1_Period,0,MODE_SMA,PRICE_CLOSE...
Hello forum, good day. I'm an MQL5 newbie and I have started with the Step-By-Step Guide to writing an Expert Advisor in MQL5 for Beginners tutorial, but when I run the code I get a message about Invalid stops and an error 4756. I started to modify it but still continue to get the same errors....
  gcc/g++ linux (1)
Hi there. Apologies if this question has already been asked/answered elsewhere. I know nothing about MQL but am an extremely experienced professional C (mostly Unix/Linux) programmer. A friend of mine is attempting to develop some sort of automated algorithm which he's almost got working and I have...
I have an MT4 EA that creates range bars on a offline chart (M2). Works fine. Is there a corresponding EA (not indicator) that creates a offline chart available for MT5?
Not clear if this MQL4 question should be placed here or in the MQL4 forum I have an EA that continously creates range bars on a offline chart (M2) Works fine. I am developing an EA that is to be run on this chart. That EA needs indicator information from Bollinger, RSI and MACD as well as...
Hello, I realize that the pending orders don't return the initial OrderOpenTime() and it returns the time when it opens the position (OP_BUY or OP_SELL). I am doing a code that in each bar open an order (Sell or Buy) and in the max/min of the same candle put a pending order. I would like attach...
Has anyone figured out how to specify the parameter for the rbc-range-bar-chart indicator when calling iCustom"? All I get is error 4002 After some trial and error the following code executes without error, Just have to wait a while until there is data in the buffers. First call gives zero. Just...
Hello forum, good day. Is it possible to know when the bar ends and place an order right at the last tick? I know that the easy way would be to wait until new bar event and do it on first tick, but I need to check conditions right at the moment the bar is ending and place an order on the last tick...
  EA Builders (11   1 2)
There are some Expert Advisor 'builders' coming out. One is by a company called Molanis http://www.molanis.com/home.  Can anyone on here suggest a good builder or is it better to stay away from them?
Hey guys, Hoping to get some help to code a close condition. Just making my own moving average crossover EA. My first close condition says if 5 EMA crosses 21 EMA, but now I want to add another condition, so I have an "OR" condition. Now what I want is the EA to count how many SAR dots are formed...
I am trying to accomplish 3 things with this piece of code : 1) I want to check the order history and identify the last closed trade of a specific signal associated with the chart/EA. 2) I want to be able to correctly identify the symbol associated with the chart/EA, even though other EA's are...
Hello forum, good day. How can the Mind Hero Indicator be used in an Expert Advisor to place trades when it gives a signal? Best regards and thank you, codeMolecules
Hello forum, good day. Is it possible to set Take Profit to be 10 pips above OrderOpenPrice()? Your help will be much appreciated. Best regards and thank you, codeMolecules
Key Indicators: 1. MA1 with EMA Type 17 2. MA2 with EMA Type 100 3. Stochastic: 9,4,3 Rule OP EA A. Open BUY: 1. EA Will work after previous and MA1 and MA2 is no intersection up 2. EA will BUY if Stochastic already in the area of ​​OB 20 and cutting head upwards towards the TP 10 and no...
Hi I have tried but I have no luck with my work. Could someone help me out to write simple EA? Conditions are: 1. Run and compare 4 different currencies simultaneously. 2. Different lot for each currency 3. Choicable of BUY or SELL for each currency 4. Start at same time and end at...