MQL4 and MetaTrader 4 - page 1448

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...
[Deleted]
  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);
[Deleted]
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,...
  iHighest prolem  (9)
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...
[Deleted]
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....
[Deleted]
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...
[Deleted]
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?...
[Deleted]
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...
[Deleted]
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.
[Deleted]
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};...
[Deleted]
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...
[Deleted]
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...
[Deleted]
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...
[Deleted]
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...
  Bans  (5)
jordank was banned for spam.
  find timeframe?  (1)
Is there a way to find the timeframe selected on a chart? I want to only execute code if the timeframe is on the 1 hr chart.
I wrote the code like this: #property indicator_separate_window#property indicator_buffers 2#property indicator_color1 Red#property indicator_color2 Whiteextern int m=5;double roc[];double PosBuffer[];int init(){IndicatorBuffers(2);SetIndexBuffer(0,roc);SetIndexBuffer(1,PosBuffer);  SetIndexStyle(0...
[Deleted]
Hi, I am new in MQL4 programming. Please guide me - How to detect Signal changes ie Blue dot changes to red or red changes to blue. I'm using a indicator which calls iCustom function. Please reply.
[Deleted]
Hi, i am looking for 1M timeframe historic data of major stock indices (DOW, S&P, NASDAQ), major future contracts(GOLD, OIL, COPPER) and major currency pairs (EUR, GBP, JPY). Ideally i would need 5 years for testing my EA, but I know this is almost impossible to get for free. Can somebody recommend...
[Deleted]
I need ECN support added to my ea. It needs to be paramaterized so I have the option to turn it on or off. This currently doesn't use a TP so it just needs to be changed so it doesn't open orders with a stoploss if the ECN setting = true, and then it modifies the trade after setting just the stop...
[Deleted]
Hi - i am looking for an ea that closes all orders at a specific time. Can anybody help me out with this ea? - it does not do anything on my charts. Thank you very much. Maurice //---- input parameters extern int CloseHour=23; extern int CloseMinute=55; int start() { int cnt, ticket, total; if
[Deleted]
hi guy i am working with my EA on EUR/USD with timeframe 15min. i have only a question : how can i use more conditions inside the same EA ?? i mean... if ( cond1 ) ordersend ( buy...) if ( cond2)...