MQL4 and MetaTrader 4 - page 1076

To post a new topic, please log in or register
hello, one of my expers having two statis variables. this expert is running on more than one currencies. MT4 terminal is mixing the values of these static variables. I've tried to change names of these variables. But this also did not solve the problem. Any suggestions? ExpertX on EURGBP...
when a new candle occur, my personnal indicator don't update to new value, it seems NULL so i have to click an other Interval unit to refresh the indicator attachement my KST-CT (on the screen, there is TWO KST CT and MT, but MT is similar code, except constant) what is wrong in my code best regards
  Make profit 250% a weeks (83   1 2 3 4 5 ... 8 9)
Hi, Here who want make profit easy with EA check http://fpfpro.mt4stats.com If you want this EA, please contact me indo_traffic@yahoo.com
Hi all, I am building an indicator that displays london open / close / high /range. The problem I encountered is the following, since we have a new bar every let's say every 1 hour. Trying to get the shift to have the london open price is impossible. Also, I tried the function iBarShift() but didn't...
Hello. I would like to open a trading popup window by EA. Is it possible ? If possible to open it by EA, is it possible to open a trading popup window on which the number ordered by EA is written as a traded volume (the number of lot) . Please tell me how to write the code if possible .
The Archive contains the example of the adviser on MQL using neuronet, on entry which is given set slopes linear regression of the miscellaneous period and their difference. To adviser is enclosed file to network, but in the same way neurosoft and script creating sample for drill of the network on...
LONGSHORTTOTALtotal_trades8069149winners362864% winners454143average winning trade0.00700.0075average losing trade-0.0038-0.0043max $ win0.02940.0341max $ losing-0.0077-0.0128total $ winning trades0.25300.20890total $ losing trades-0.1665-0.17590average $ per trade0.0008nett P/L0.08650.03300.1195...
hello, i want to know the code that allow me to go long or short with the first candle close only, for example the first close above the EMA and another requset plz, i want to put some condition after the order get profit such as switch the order from buy to sell, how can i do that thank you
The metatrader optimizer allows you to use Balance, Profit Factor, Expected Payoff, Maximal Drawdown & DrawDown Percent as Optimisation targets. I would like to optimise on other metrics, for example K-Ratio. Does anyone know if there is a way this can be accomplished with the MetaTrader optimiser?...
Does anyone know if this is possible? I get tired of adding them manually everytime I open a new chart. I did a search and didn't see anything relating to this. Thanks for all replies.
After I read the article, https://www.mql5.com/en/articles/1467, expert is compiled, ini file is saved in the tester folder, dll is allowed. but there is no response by calling tester( ...), I re-installed new versons of MT4 downloaded from metaquotes.net, there is still no response. the start value...
  What am I doing wrong? (19   1 2)
Here's my EA... I'm trying to keep it simple... it tells me there's an error on line 3, the first "if" function... "semicolon expected" int start() if(Hour() == 15) if(Minute() == 29) OrderSend(Symbol(),OP_BUY,1.0,Ask,10,Ask-15*Point,Ask+30*Point,"BUYER",0,0,Green);
Need some help with managing the tickets... Currently the code is buying and selling but how can I manage the open tickets so that, for example, if it places a buy and the price goes up 30 pips it will place another buy for? and repeat that again for a total of 3 "buy" orders? int cnt, ticket,...
Hello evryone, Writing an EA for the highest close of the last 14 days, any symbol, time frame of the current chart, counting back from the current bar. Script is written in this manner: ------------------------------------------------------------------------------------------------- int start ()...
Hi all, Can anyone tell me how to know what the template name is that I currently have on a chart? When it comes to saving a template, I am presented with 'template name' as the file to save in Templates, not the name of the template I previously loaded e.g. HolyGrailEA. After a while I forget which...
kolier1
I am a bachelor major inFinancial-Mathematics. I am good at programming in MQL for MetaTrader 4 platform. The ability is between medium and top level. No matter what it is, create or modify anyindicators, expert advisors and scripts. I will ask these jobs which are not toolarge for only $15, surely...
Hi all, I am new to MQL4 so any hint/help on this is highly appreciated. I wrote an EA which is making some profit when running backtest (PF>4). So a week ago I started forward testing on a demo account and although the results are not as good as with backtesting the EA is still making some money....
I have a question for OrderDelete(). It would be very appriciated if anyone could help me. My code deletes the following pending order of OP_SELLSTOP: >2009.07.05 15:55:34 2009.06.23 09:12 test GBPJPY,M1: delete #9 sell stop 0.10 GBPJPY at 154.10 sl: 164.10 tp: 152.99 ok After then, executing the...
Hope anybody will come forwards to create a simple EA I am very confident will work in higher tf with the indicator attached ? orders to open after stabilization of arrows, that at the begining of 2nd candle,sell ones after red & buy after green ones,no opposit orders anytime & close with opposit...
Most of my programming is done at weekends when there is no trading, hence no ticks, hence no program start, hence no testing! Is there a way of testing my code (obviously on the historic data I have to hand) without an incoming tick? (Could be a product enhancement if there isn't a way) -Jerry
  FIFO rule and StopLoss (14   1 2)
With FIFO rule (first-in, first-out) that will be implemented by NFA won't be possible to use StopLoss because if the SL of the second trade is reached, for example, the system won't accept the CloseOrder because is not the first trade opened. How can we protect the account? Is this the END of SL?...
A Trailing Stop moves the Stop Loss level once it’s “in thegreen” by the defined Trailing Stop Level. What I want is a Trailing Stop thatmoves as soon as the price moves in the right direction by 1 pip. Example:Price: 1.5050. Stop Loss: 1.5000. Trailing Stop: 50 pips.Now price moves to 1.5051, Stop...
What would be the proper way to advertise my services on this forum? I realize each forum has its own protocol, and I don't want to ruffle any feathers. Thanks.
I save a template then alter it and get prompted to save as something .......... after a while with many open charts it is hard to say what the version was lastsaved as...... How do you determine what your template is called currently ?
Hi, I am having problems with passing arrays to DLLs and would like to know what to do. Here is an oversimplified example script. #import "mydll.dll"double SecondValFromDLL(double p[]);#importdouble SecondVal(double p[]) { return (p[1]);}int start() {    double p[5] = {1.0,2.0,3.0,4.0,5.0};...
Hi All Quite happy with eg Highest High (of past 10 bars including current) coding, as below: double val; val=High[iHighest(NULL,0,MODE_HIGH,10,0)]; Quick question though..... If I wanted to find the Highest LOW or Lowest HIGH..... I would imagine i would simply change the MODE_HIGH / MODE_LOW...
Hi I cant seem to set the Fibo levels once I draw it using code. I am on Version 4 Build 224 ObjectCreate ("MyFibo", OBJ_FIBO,0,left, bottom, right,top) ObjectSet("MyFibo",OBJPROP_FIBOLEVELS,4); The above 2 lines work fine. The below lines for setting the Level and Description do absolutely nothing...
as the subject says, i need a script that will place a trade at a certain time... can this be done with scripts? or do i need to program it into an ea...
I hate looking over a backtests data with the close times and prices on seperate rows. Is there a way to save a backtest to look just like a forward test?
I'm getting order modify errors on this, not sure why - any ideas?    //steppedtrail   int FirstTP = 10;   int SecondTP = 25;   int ThirdTP = 50;   int FourthTP = 100;   int FifthTP = 200;   int SixthTP = 300;   if (usingsteppedTrail==true) {TradeTargetPrice=SixthTP;}      if...