MQL4 and MetaTrader 4 - page 1270

I'm looking for a code thats will wait to buy after crossing. Insted of buying exatly wail crossing i want it to buy to or 3 candels later. I have this code now:    trendB      =iCustom(NULL, Timeperiod[TimeperiodSelector], "_InsTrend",1,0);   trendB.old  =iCustom(NULL,...
hi everyone if someone cal help me how do i count how many symbols i have for example if i have 2 orders buy on "EURUSD" & 3 sell on " GBPUSD " & 4 sell's on "AUDUSD" how to receive the result 3 thanks
Hi all, long time ago i had indicator i don't remember its name but i can describe it ... there is one like it now called "TREND TRIGGER" but not the same one i had before, i am sure of that the description of the indicator... It looks like RSI the same movment of RSI but more smooth then RSI...
Hello! I search for a solution to run script after each XXminutes (XX = 10, 15, 30). The one I have for now works as designed but only once. Next time I want to run it, I should hit Hot-Key or click a mouse. I would like to run it automatically. The Script writes some data into a csv file (quotes,...
[Deleted]
Hi Any one no why my MT4 will now not display the popup prices or trendline. This has just started recently. Horizontal and vertical lines show OK Regards Allan
Why wont MLQ4 let me do this: escape[index] = Bid; When I check escape[index] or escape[0] it is empty (0). MLQ4 will let me do the following however: escape[0] = Bid; OR escape[1] = Bid; In both these cases it works: the value of Bid gets assigned to the array. I just dont understand why MLQ4...
[Deleted]
hello! can somebody help me on how to place an order
Hello every one is there any way to select a menu item in mql with api?? for example select Help->About menu within EA?? THanks for helping
[Deleted]
hi, i am looking for an indicator (or some indicators) which can automatically draw on the chart the trend lines, supports and resistance. The goal is to save time. do you know if that kind of indicator exists? if yes, where can i found them ? Thanks in advance for your help TAAD
[Deleted]
i use icustom() in the EA, after testing, i open the chart but no custom indicators shown on the chart at all. i couldn't find any problem in my code,finally i used the example code in the BOOK of this website, it still doesn't show, what is the problem? anybody can solve this will be appreciated....
  MT4 Shut down .  (3)
Hello. When i shut down the mt4 Platform,is then the EA Active ? because i cant have my pc 24h running.     Thx   
[Deleted]
This sounds pretty simple but I have yet to find out whether I am trading on my demo account or my live account. (I have not made any trades yet.) Could someone enlighten me as to how to find out this bit of information?
The ea is like this: If two bars form higher highs and the third bar closes 50% of second bar AND is below the moving average, then place order to sell. Placing an order to buy would be just the opposite. The buys happen when the statement is not even true, and the sells do not happen at all. The...
-
Hi, I am interested in having a central server application that will dispense buy/sell signals to an EA that resides on a client PC. What is the most painless method to accomplish this? I know a bit of python so I can make the server side application with that - but what should I use with the client...
[Deleted]
the arrows when the cross is made are working and appear fine. however i added an alert and it goes off non stop, which is obviously incorrect. can someone look at it for me and tell me what to add/change thanks. im a newbie at this and learning all the time! code: #property indicator_chart_window...
[Deleted]
Is it possible to open a new window e.g. EURUSD with mql4 language? Is there any function like WindowOpen(string symbol). Haven't found any. Anyone have an idea? Also, I'm looking for a way to get all tradable securities for current broker? Thanks Martin
[Deleted]
I have just written my first simple EA. There is only the Start() special function in there without init() and deinit(). My questions are on the flow of EA execution after I switch profile and back again to the original profile. This is not exactly my program but I would like to highlight the...
[Deleted]
Can anyone please help me, how I can improve this code as it is not finished. Many thanks //+------------------------------------------------------------------+//| Take-profit.mq4 |//| Copyright © 2010, Christopher |//+------------------------------------------------------------------+#property...
[Deleted]
Hello, How can I incorporate an order to my system that just in case we have had a losing trade during one day wait until the next day to trade again. Regards
[Deleted]
Hey there. I was wondering if anyone knows how to get an EA to write each and every tick price to a text file (Easy). But I would also like it to write to the text file exactly how many seconds the tick remained in that position before changing to the next (Tricky ?). Thanks a lot !
[Deleted]
hello, with my trallingstop i get so much order modify error 1 printed that my log file after a long backtest become very big, is it possible to say metatrader dont print that message everytime, because he do it automatic all time when it occur...or must I change the traillingstop code //----double...
  FileSeek issue  (4)
hi everyone if someone can explain to me if FileSeek(handle,100,SEEK_END); means to go forward 100 bytes or go back 100 bytes from the end of the file? if means go forward? is it FileSeek(handle,-100,SEEK_END); means to go back 100 bytes? if either of above how can i go back from the end X bytes...
[Deleted]
Hello. I've an EA which gets the current stop level with MarketInfo(Symbol(), MODE_STOPLEVEL). If I run these EA in backtests I got sometimes different stop levels from test to test. Sometimes it is 18 (which is normal, I think) and sometimes I got 300. If I wait a while it changes back to 18. I...
[Deleted]
I'm having trouble installing an EA or an indicator (i'm using a demo account on MT4). The steps I'm following in order to do this are: 1. Drop EA file into C:\Program Files (x86)\MetaTrader 4\experts 2. Close MT 3. Restart MT From what I've read, the EA or indication should just appear in my...
[Deleted]
how to do back testing? is it any goood?
[Deleted]
So have a fairly simple question but I've searched the forums and googled but can't seem to find the answer. When coding an indicator into an ea, how do you know the parameters to set? IE: ``For an ma you would do double ema=iMA(NULL,0,50,0,MODE_EMA,PRICE_CLOSE,0); so, symbol, timeframe,...
  SetIndexBuffer  (11   1 2)
I am using Swing Indicator as a code to my EA to place buy and sell orders, but running the back test I get the following error: SetIndexBuffer function must be called from custom indicator only........ Any clue on how to solve it.
[Deleted]
anyone know how to get the indexes on my market watch as well as forex ?
[Deleted]
  Need help on my EA  (12   1 2)
Hello, my EA runs on the Strategytester but not on the Demoaccount. Why??? Have someone an Idea??? Thanks. Andy
hi could any body plz add a function to write data(tick) from this indicator to an external file(csv)