Expert Advisors and Automated Trading - page 263

Does anyone know of any EA that has Breakeven and Partial Take Profit? Example (Initial Lots 0.05) when I reach TP1 (20 Pips) he does Breakeven and partially closes 0.02 lots, then when he reaches TP2 closes 0.02 lots and when he reaches TP3 closes the remaining 0.01 lotes , for MT4
Hi all, I use a script to to calculate the liquidity volume on chart and draw trend line on chart based on price, time and volume. Script itself work fine when drop it into chart, i have included this script in EA as a Function and call the function on every new bar. On the first run of this
  Errorhandling in MQL5  (19   1 2)
Hello, is there any way to catch an error? Since there is no try..catch mechanism in mql5, a program will crash upon creating an error. This seems to be a major design flaw in the mql5 language. Once the program detects an error it knows it will deliberately crash. One can try to miminize damage...
Hi, Looking for a code of a simple Martingale function EA with manual entries : Setting : 1-Direction of trade : Buy or Sell 2-lot size entered 3-Gap no of pips : X pips 4-No of lots to be added each X price move upside Thanks
[Deleted]
Hello Guys, I'm developing some EA for myself and realize one detail: Example: When I run my EA with 100 EUR, some profit trade gives me 0.50 cents, ok! When I run again my EA, but with 1000 EUR, the same profit trade give me the same 0.50 cents. I want to know what should I do in the programing to
Hi everybody! Is there a way to code 1 EA Martingale with a pip step by Fibo sequence number? for example starting is 8-13-21-34
I need to open a file as SHAREDREAD that running on another EA. I can't understand why is possible yo open it by Ecel or other app, and not by another EA. Is there a way to make that? Is possible to open a file as Read Only
Hello Guys, I want a algorithm which trades periods of time. It should open a Trade on every 26th of a month except on January&Juli. And close this Trade on every 5th Month of next. with no Stoploss. I came so far.. //////////////////////////////// #include<Trade\Trade.mqh> CTrade trade; void OnTick
Hi, Does anyone know the logic behind the SYMBOL_SPREAD in MT4 and MT5? When checking its return value in MT4 and MT5 its different results on exact same symbol in the same period. In MT4 it seems like its a fixed value but in MT5 it seems to be the the "real" spread which is changing accordingly
Has there been any study about the best strategies to optimize? Right now I'm asking myself if it's best to test over a long period of time (a few months) or to re-test once a day over a short period of a couple of weeks. Testing over a short period will give the most profit per day, but the
Dear Traders, I study a back-test, where I plan to invest 500 doll every week on Monday , and I close the trade end of week. If I win on next week, my equity became more than 500 doll this is why i want to setup every week at 500 doll. Do you think, it's possible to change the balance amount with an
This code always gets the "buy" signal on time. I want it to act only once when the signal changes. So when you "buy" the trade will open. When the transaction is completed with tp or sl, it is next to the "Need to wait for sell " signal to itself . When "seated", "sat" is turned back on. such a
Hello Is it possible to link several inputs before testing? For example, if I have 1 boolean input and 1 double input, and when the boolean is set to false, I don't want the strategy tester to bother testing all the range of the double input because it will have no effect. Is that even possible
Hi, I am not able to publish my EA for MT5 platform because of automatic validation failure but I am not able to reproduce the error at my end. Can someone please help me understand why the validation script is failing. Thanks very much for your help, -Soumitra Dan (Seller) --- Error:- Automatic
Hello, I had someone in freelance develop an EA for me based on renko bars and several indicators that I had the source files for. QUEsTION: is it compliant with MQL5 to sell the EA with the indicators built in on the MQL5 marketplace? Can you reference rules for me
Hi All, I am trying to include my indicator within my EA but am facing some issues with timeserie arrays. I have created arrays and set them as timeserie but when resizing this is still adding new elements to the end of the array, I was expecting when resizing a timeserie to have new elements added
how use Template in Expert programming? can i use function iCustom? *Please Help Me*
I created a function that will count the number of positions for any symbol you give it. int PositionCounter( string SymName) { int PositionCount = 0 ; for ( int i = PositionsTotal ()- 1 ;i>= 0 ;i--) { string CurrencyPair = PositionGetSymbol (i); if (SymName == CurrencyPair) {
I have been trying to pass a function by reference to another function but i think i must be doing it in the wrong manner . any quick help is well appreciated void OnTick () { double a, b , c ; a = 0.0 ; b = 1 ; c = 0.0 ; // Trying to pass the function f1_func to Function1
I have tried to download a product from the Market to my VPS and it won't download. The product developer also tried but he couldn't get it to download either
Is there a way to put the data from Python script on a chart? E.g I have a Python script, which gets the data, calculates a result and I want to place that result somewhere near the bar, or anywhere on the chart. At the moment, when I run the script, I can only see Python icon on the chart and
Hello to everybody. Please, can someone help me in finding a post in the Forum? I am sure that something exists but i am not able to find what i need. Well, i am searching for an EA, a simple trailing stop that give me the possibility to add the commission paid for the trade. I mean, for example
EA from the market keeps trying to open trades when the market is closed EA is <Deleted> If the EA does not have a time filter will it always do this or is there a way around it ? Zero
I have an expert advisor which works with major currencies but my historical data for mt4 gives only 25% modeling quality accuracy. Does someone here who has 99% modeling quality accuracy (by having TDS for example) want to run my EA so I can see if this EA gets good results in a better modeling
I wanted to use Buffer but they only work with double, not string. Is there another way? Thank you
Hi guys, So I'm a resident doctor who's gotten hooked on trading, 2years so far and dare I say it's profitable. So cus of my schedule I decided to learn how to code my own EA. Here goes.. My plans quite simple, basically 5 and 10 MA cross-over. I've successfully defined all my parameters and how it
Hello everyone , Just an advice please , I am going to request a developer assistant to integrate the EA with excel , either via Microsoft excel online or google sheet , where my entry point & exit are based on excel formula. where I copy data to excel file then formulas give me results. as I am ver
Hello I cannot find in MQL5 an equivalent to "AccountFreeMarginCheck ()" from MQL4. Where should I look ? Ideas ? Thank
Hello , I would like to know if a function that returns true if the postion ( select by ticket) reached the TP or SP exists ? Or check if the position is closed by a reverse transaction. I have researched in the documentation and the forums but I don't know how. Sorry, if there are grammar mistakes
  EA locking  (5)
Hello I'm using the following part of code to lock a certain EA //Date Lockbool use_demo=True;int demo_year=2015;int demo_month=7;int demo_day=30;//Account Number Lockint acc_number=11223344;int start() { //demoif(use_demo){if((Year()&gt;demo_year || (Year()==demo_year &amp;&amp;...