MQL4 and MetaTrader 4 - page 1423

[Deleted]
Just getting my hands dirty with the API, and found that the only function to collect data is from the MarketInfo() call. If this duplicates the DDE data conneciton, all you get is the time and price data (Open, Close...), no Volume data. What do we use with MT4 to get volume data out of the...
[Deleted]
Below is a trade which puzzles me. If you look at the log you will see that the BUY opened at 1.40435, yet when you use an alert, the alert shows 1.40445. A difference of .00010. . Is OrderOpenPrice() returning the value of the order " that was opened " or the value " if opened "?...
[Deleted]
  Magic number help please  (18   1 2)
Hi all, i am running the same ea on four charts and each chart has a different currency, at present the ea trades on one chart only for the period of that trade and will not open trades on any other chart should the conditions be met. Could i give the ea a different name and (4 to be precise) and
Hi, This is BillBrian again. I have been googling to see if there were people with successtories using EA's. But most I find is commercial sites, offering EA's. Are there people here having experience making money with EA's ? Question because I read an article of someone stating only 1% of EA's...
Hi, Ive got 768MB ram in my pc running XP Seems my harddisk is running like crazy running MT4 Do I need more ram ? Or is there something else .. wrong Bye
I'm looking for help to put an additional condition in my Buy strategy.. I have an indicator named Aaroon Horn and I need to put in a mandatory condition for my buy strategy that reflects this indicator set to value "25". (indicator can be found here : http://www.metatraderlibrary...
Hello, I have tested a lot of experts under Meta Trader and I don't know how to improve the source code a few of them. Could you please explain me how to change the items: 1/. Modelling quality : n/a <--- into ---> over 90 2/. Mismatched charts errors : above 1500 <--- into ---> 0 ??? Usually I...
could some one advise me on how to start trading with an automated forex program, thank you
This situation is infuriating. I have EAs where I have been able to create a horizontal line with the creation of an object, and I can choose either a vline or an hline, but when I want to do this on an indicator in the same window, I get a single dot for the lines. Here are some snippets of my...
[Deleted]
im trying to do and expression that will get the current ask price and then wait till it gets to an higer ask level im doing it now but the while expression stuck the MT4 i know it should be simple but sometimes simple stuff gets complicated i will appreciate if anyone will be able to help me
Hello every one Appreciate your assistance as I am not a programmer I have been looking at the EMA_CROSS_2 EA but seem it does not work properly, It suppose to sell if the Short EMA cross below the Long EMAand Buy when the Short EMA cross above the Long EMA, it is doing the reverse, it isbuying...
[Deleted]
Hello, Can someone tell me (if possible) how to use multiple symbols in System Tester? My E.A. sends orders for different symbols, but I can´t test it in S. T. . For example, if I´m using symbols "EURUSD" e "GBPUSD", if I choose "EURUSD" as main symbol, the OrderSend returns errors for "GBPUSD"...
[Deleted]
Dear All, I am a newbie of MT4 and I am practice with this language. I would like to develop a EA that open a SELL position when value go over Up BB band (and viceversa). EA will close this position when we will have 2 pips of profits. I have written thsi code but at the moment only with SL and TP...
[Deleted]
Does anyone know why, OrderOpenPrice( ), returns 4th decimal number instead of 5th? Thanks!
[Deleted]
  looking EA  (1)
Looking a EA that once opened an order administered the order and depending on the evolution may open other orders...to close the series...like martingale...Somebody knows something it's?
[Deleted]
  OrdersTotal()  (4)
Hi all, Trying to call this function to check no. of open buy orders... When the code is called as a function from start() it always returns 0. When the code is placed in start() at the same place as the call it always returns correctly...??? Any ideas? TIA LL...
If there is no info on ticks in history, where are the ticks in tester coming from? I am not blind. I am serious. The history file contains only Open, High, Low, Close and Volume info. When we test the EAs, we see ticks. And we see the price TICKING up and down even on M1 time frame. When I asked...
[Deleted]
I am new to programming the algorithmic language for MQL4. I am trying to program a script that will read prices from a txt or CSV file and insert horizontal lines in a chart for each value. Sometimes there could be 60 to 70 lines per chart. It would be nice to also be able to set the color property...
[Deleted]
I love it when a position moves significantly into the green. So say a position has $200 profit showing. To lock in those profits, I'll rush in and set up a new stop loss at say $100 profit. It never fails to always bounce back, hit the stop loss, and then move another 50 points in the direction...
When i add an indicator using iStdDevOnArray to my chart, MT4 memory jumps by 10megabytes Open "empty" MT4, 24 megabytes in use. Add indicator below, un-comment iMAOnArray function, compile. Memory usage barely changed, still 24 megabytes. Comment out iMAOnArray and un-comment iStdDevOnArray....
if(ticket>0) { if(OrderSelect(ticket,SELECT_BY_TICKET,MODE_TRADES)) Print("BUY order opened : ",OrderOpenPrice()); { sellstop=OrderSend(Symbol(),OP_SELLSTOP,Lots,NormalizeDouble(OrderOpenPrice()-50*point,digits),3,0,0,"try2 sample",magic,0...
[Deleted]
I have no programming experience and I have put about a 100 hours into learning and coding my EA. It does what I want it to do, but it will set a stop order and may fill it 4 hours later. How can I get the ea to execute buy or sell stop on the next bar only or wait until the criteria happens again....
[Deleted]
To have my ea place a stop order entry at the high of the previous candle, do i need to set the high price as a new variable or will the ordersend function accept chart based price data such as high low etc?
I know it sounds like a stupid question but my thinking is that if the mobile MT4 does the same job and works on a desktop then it must use less resources and that opens up other possibilities like running many copies on different brokers or using older computers with less ram. Does anybody have any...
[Deleted]
double close240 = iClose(NULL, PERIOD_H4,2);double High240 = iHigh(NULL, PERIOD_H4,1);double PreviousHigh240 = iHigh(NULL, PERIOD_H4,2);double Low240 = iLow(NULL, PERIOD_H4,1);double PreviousLow240 = iHigh(NULL, PERIOD_H4,2);double LowerBand240 = iBands(NULL,PERIOD_H4,20,2,0,PRICE_LOW,MODE_LOWER...
Hello i have COT data but in .PRN form, how how can make MT4 read such format( in separate window ) Regards
[Deleted]
Hi, i need someone to write me a file that will simply place a solid red line onthe london open (3am ET) and the US open (9am ET) for the entire historyof the data.
Hello, how would i output in my script how many seconds has past since 1970? I expect the number to be in a format ########## (probably quite a long number...) Thx! I tried looking up the date time format, but im kind aconfused (and new a coding) could someone possibly write exactly what i...
Gidday I am looking for a mm system that is based on using the daily range as the TP and SL. They way I am looking for it to work is the greater the range the more of the FreeMargin is risked and vice versa. I have attempted to code it my self but have had a bit of trouble My maths might be wrong...
Hi, I'd like to altern buys and sells op for my ea, but it keep on buys or sell.. I check the history tab with a loop with this code : int AlternBuySell(int MagicNumber) { int altern=0; int histb; int histbs=OrdersHistoryTotal(); for(histb=0;histb<histbs;histb++) {