MQL4 and MetaTrader 4 - page 1162

To post a new topic, please log in or register
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...
  Bans (5)
jordank was banned for spam.
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...
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.
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...
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...
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,...
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)...
Hi, As I understand for a Buy order the trailing stop would move up if the price goes in our favour. Can the trailing stop be higher than the Order Open Price ? What is the dynamics between OrderOpenPrice(), OrderTakeProft() and StopLoss values ? regards skt
SimonTrader
Hi all! I am a mql4 programmer, I have already worked into NN EA's. I don't need to speak about me, rather about a project's of mine for active minds. I have a matrix of hundreds of samples of three inputs for an output from eur usd M5 history. Inputs are particular definitions of the properties of...
This indi looks good on chart but repaints...can someone re-codes it in way that it will stop repaint??? And i don't know what are "ExtDepth" "ExtDeviation" "ExtBackstep" in parameters... Thanks
hello, i was wondering if anyone can point me to a guide or just write down the different "ways" to comunicarte with the market, i mean: i need the integration with candles, ticks and all of the simple things.... i noticed the "bid" thingy, but i need some sort of table with the whole integration....
hello all iam tring to perform strategy tester ( F6) on my expert but i did not get any results, no graph, no report, nothing at all, i though thats the error in my expert, but when i tried to perform back test on one of metatrader default EA, it gives me same results can any one help me on how to...