MQL4 and MetaTrader 4 - page 1178

[Deleted]
I have been coding my first EA. There is one area that almost everthing has an errors, assignment expected, unexpected tokens, semi-colons, in places that shoulden't have them. I have marked a few examples in comments. Why would this one area do this? I really need help, I don't know what eles to...
Does anyone know of a formula for calculating the momentum of standard deviation? I'm seeking to have RSI modified to chart the momentum of standard deviation in much the same way RSI normally charts the momentum of price. Thus, a rise in StdDev with rising price would show its momentum going...
[Deleted]
Hello everybody, I'm having problems with the MarketInfo command. The following little test program deliveres a correct result when attached to the EURUSD chart. However it doesn't deliver any result when attached to a chart different than EURUSD. Does anybody have an idea why MarketInfo command...
[Deleted]
Hello, I am in the process of finshing up my first EA. I still have a few importain things to add (like the ordersent) but I felt like it was time to debug. I was able to get everything fixed but a Ending } Expected. I know that this is due to unbalanced brackets and I have gone over every line a
[Deleted]
On my pc running EA which open trade. If trade open, MT write info record about this trade to window terminal->strategies. (see image) My question: How do I disable write this record?
[Deleted]
And so do I need to use mutexes on dll variables to prevent conflicts?
I need a function that will close the losing trades (one at a time) when the margin level is equal or below 100%, until the margin level is above 100%. - closing the the biggest losing order first.
Hi All, Does anybody know how to get Fib level price values programmatically assuming you know the Fib name (object name)? thanks
Hi, I would like my EA to return the profit for all my open buy orders only. Can anyone help me code this, Tanks in advance
What is the best way to test my EA without waiting the whole day for another trade to happen just to check my latest adaption is working or not ? ? I can not use the back tester on MT4
[Deleted]
hi, i would like to insert auto break even after number of pips reached, and lots size incresment, if losses then increases it by 0.01, no martingale just sipmple increasment, if wins gets back to default. any help would be great!
Hi, I started using Buru from IBFX and I just got this message. Here I share the info for your knowledge (they send the images as well): "Dear Buru Trader, We want to inform you about the incident that took place today on demo accounts running the buru EA. The minor losses that resulted from today...
[Deleted]
I am new in the forum and in MT4 i need your help for back testing i find an interesting autosystem i want to back test with stradegy tester when i put it in ST even though i change the parameters the back testing is done with initial parameters How pls can i change parameters to this software when
[Deleted]
I have coded an EA that appears to work correctly. It generates the correct results and displays them in the results tab. If I use visual mode I can see the trades being generated on the chart. However, when it reaches the end of the test or when I stop the test the trades disappear from the chart....
[Deleted]
Hello everybody, In my previous questionplaced about the MarketInfo command, I wasn't clear enough what I want toachieve. I'd like to explain this better here: I'm currently writing aRisk management application and as part of it, I calculate the Pip value in myaccounting currency. As an example:...
  About the feet (for the first time)  (129   1 2 3 4 5 ... 12 13)
Paukas argues that the noise is in the head and the stop should be small. Who would argue. The question is how small. I wish it were less, but, unlike the arrogant lies of certain Williams, there are no fractals in the market - and who cannot tell one-hour from one-minute chart, it is useless to
Is there any way to have a variable thats defined within the EA stepped between optimization runs? For example if I were to create a variable 'n' and simply n++; for each successive optimization run. Id like to get data on a few things given some input (average open price for buys/sells over the...
Im trying to find a way to get the actual realtime computer time while testing. TimeLocal() does this when the EA is attached to a chart but as it says in the manual, during testing computer time is modeled and equal the the server time. The reason I want this is to measure realtime backtesting rate...
[Deleted]
How can I change my settings so that the daily bars are closing on NYC time? I cannot for the life of me figure this one out. Thanks!
Guys, I'm trying to create a fib with 16 levels on a chart. The default 10 levels works fine but using the code below it doesn't draw all 16 levels. i can set the level descriptions no problem but the fact is it doesn'y draw the lines in the first place. can anybody see what i'm doing wrong? thanks...
Ok, before start posting chunks of code maybe someone already experiencied this issue: When I have 1 lot LONG position opened, I selected the position via a ticketnumber, then pass it on to : OrderClose(ticketBuy,1,Bid,2,Red); Now, if it is one lot, and I tell OrderClose() to close 1 lot...
i got an indicator called Daily FiboPivots.mq4. but it is only draw lines in certain number of days only. i need to customize it as i can put the number of days in extern parameters. but i cannot figure out where i need to change in the code to draw levels on given number of days. hope coders will...
Hello, I installed MT4 completely new, and I just wanted to start the demo EA "Moving Average". Here is a screenshot of the outcome: As you can see, the MT4 tester buys and sells completly wrong! Ask and Bid prices are in nomans land, hanging in the chart. This problem is with all other EAs too! As...
Hi, this is MQL4. I have a friend that's asked me to "combine" two EAs for him. Basically he wants to be able to run both of them in the same window. Is there an easy way to do this?
Can anyone point me in the right direction on how i can compile/write the code to have an indicator in a seperate window that is... a momentum indicator (28 period), that also shows a simple moving average (28 period) of the values from the momentum indicator. Not expecting much but thanks. -logan
I have been looking for some info about iHigh, iLow, iOpen & iClose , but i can't find anything other than samples. Can someone tell me or point me to some information on how it works? Thanks
[Deleted]
Hi, Anyone have a script to get the day and time from my PC for an EA? Maybe something to do with a DLL to Windows or a call to DOS. I don't want to use the weird times I'm getting from Siberia or wherever the MetaTrader 4 is getting data ticks from and there date and times. It seems all of the...
[Deleted]
Hello everybody, I'm writing a program tocalculate the Pip Value in the Account currency. MarketInfo() command seemsto deliver only information related to the chart it is attached to. Forexample: Account currency = USD Tradingchart = EURGBP The Price pair needed forCross Currency...
[Deleted]
I'm in the process of making my first EA. I have gotten most of it down even with my very limited programming experience but I still have a few questions. 1. I need a way to make an If condition trigger when price moves a certain amount of pips in one direction without moving at all in the opposite
[Deleted]
Is there a way to link the charts to the pairs in the MarketWatch window so that by clicking on a pair it will open up a standard chart (not the Tick chart)? Or is there some other, better way to display a list of the pairs I follow, have just one chart open , and then be able to quickly change the