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
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...
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)...
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
[Deleted]
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
[Deleted]
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....
[Deleted]
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...
[Deleted]
I need to find very simple mq4 that doing the next: 1. Open "buy limit" order at 0.1 lot volume and at 0.03 price, every ten minutes 2. Close this "buy limit" order after 5 minutes. I need it as I am using expert advisor, and my broker disconnect me after few hours without any new order. Someone...
Good Morning Everyone, Thank you for the help. An abundant amount of knowledge here. Here is a script I have been scracthing my head on. A check for insufficient funds prior to opening any position. 3 Errors, 0 Warnings 'total' variable not defined (14,7) 'total' variable not defined (15,12)...
Hi, I want to create an EA to send orders to a different pair. So, I want to attach the EA to a graphic and then the EA launch different Ordersend in different pairs, not only the one where is attached. Can this be done? When I try I have not success. Thanks for the feedback.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.