Expert Advisors and Automated Trading - page 411

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...
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?
[Deleted]
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...
[Deleted]
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 chart
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...
[Deleted]
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...
[Deleted]
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
[Deleted]
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 SL 3. If
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...
[Deleted]
How ea can determine a sideways trading condition? do the angle of EMA can be measured? or is there a possibility to count the pip difference between 2 EMA?
[Deleted]
hi guys, i have question with lot size.. i already calculate it, i hv 1500 USD lot 1:500 and 95% of my equity already set for signal.. for example i want to subcriber signal which has 6,810 USD and 1:500 leverage my op lot size will be>> (precentage equity) X (subscriber equity/signal...
I need help about the writing of an EA. I have used 2 Parabolic Sar Indicator with different settings. I used the library "SignalSAR.mqh" to create the output, but in the library there are the conditions of buying and selling only for using 1 Indicator. My project is (after the choice of the...
It started with 100$ ---> 40,000$ , Percentage should be arround 40k% right? it show, only 2500% ? < removed by mod>
[Deleted]
Hello forum, good day. I´m working on a Market Orders EA that may open only one order at a time, but there may be several open orders during the day. Up to what I have, all the orders remain open and I´m having trouble on closing each order separately when certain criteria is met. The criteria is...
I'm trying to make a robot that can recognize when a "Hammer" shows up on the chart. So far I have a way to command MetaTrader to look for when the last candle's Low[] is lower than the last 3 candles: if(Low[1] < Low[2]&& Low[1] < Low[3] && Low[1] < Low[4]) I also have a way to tell...
From what I understand, to trade my FXCM brokerage account using MT4, a VPN is really required so that the conditions remain in place when I turn the computer off and am not connected to the market. However, that is not an option at the moment, at least for testing purposes. I like the idea of...
Hey guys, I was just writing to ask if anyone knew an easy way to mirror an ea? I have seen countless ea's that make loss after loss at about 90% accuracy of losing trades lots of the time with larger stop losses then take profits so was wondering if there is a way to easily make it so that it...
For the platform of my broker, the execution type for market orders is instant execution. In this case, should I identify a deviation for a pending order? Thanks.