Download MetaTrader 5

MQL4 and MetaTrader 4 - page 953

To post a new topic, please log in or register
During the last 24 hours, the demo account has stopped giving accurate volume information on the gold charts. The volume is near zero and steady, even during peak hours. This appears to be an error in the database. Any idea when this will get fixed?
I want to learn looping routines in MQL. The below is not about making money, it is about learning how to stick together programming components.. The EA places OP_BUYSTOP and OP_SELLSTOP orders either side of market, and also OP_BUYLIMIT/OP_SELLLIMIT orders either side of the market. The above I can...
Hi, How can I pass an array as a function parameter? There is no Array datatype, so I am lost in trying to do that. Ideally what I would like to do is (I realize that syntax is incorrect): int myCalledFunction([whatever datatype] myArray){ Alert(ArraySize(myArray)); } int callingFunction(){...
hi i have two question 1- how can stick an ea to a chart? 2- for automatic trading when an EA sticks to a chart the computer must be turn on ? thanks
Hello, I'm working on an EA that retrieves the closing price of the last closed bar i.e. bar[1] using the hour timeframe. My initial assumption was that once the hour changed lets say from 11:59:59 to 12:00:00 close price of the bar would be the opening price of the next bar unless a new tick came...
What is the status of order_magic_number when it has not been set? Does it = 0 or NULL or empty?
Say I draw a fibo or any other object on a Daily chart. When I switch to 1 hour ...I have to scroll through the chart and hunt for my object. I can manually click object>show...but that doesn't always work especially when I change to lower time frame. Is there some code I can use in my script that...
how to know what was my last order closed in EA. i want to know wether it is long or short closed
Hello, I`m getting this error : mail:553 5.5.4 <advisor> ... Domain name required for recipients address I've checked all my smtp parameters, etc .. all seems correct the recipients address works just fine ( it`s a yahoo one ) .  In the "to" section there is definitely "@yahoo.com" . Does anybody...
Does anyone know how to set up an ftp site like mt4stats.com ? and also how to set up a vps for hosting ea's? Any help would be great
Hi everyone. Can somebody help me on this? Here is the one of the good indicator JoeChalhoub's forecaster, I need to find in which arrays index those two histograms last bar values are stored. As I figured out, the pink histogram's values are stored in MA1Buffer[], and the last histogram bar's...
What are THESE about...what did I do wrong in my EA to get these journal errors/entries ?? They repeat at every tick...other than these, the EA runs fine.... HistoryBase: not enough memory for "EURUSD1" in AddTick() Memory handler: cannot allocate 155775576 bytes of memory
Guess I'm the newest guy on the block right now. Thing is I know nothing abt computer programing and all related stuff. Unfortunately, technology really makes life easy! I have some ideas I would like to program into a forex Robot but just don't know how. I tried reading the MQL4 manual that comes...
i down an ea,it has a set file, i do not understand what it mean,and how to choose the figures to fill in features box, may you tell me? thank you, setting file as follow : set file: mn=65488 mn,F=0 mn,1=88 mn,2=0 mn,3=0 tp=500.00000000 tp,F=0 tp,1=2000.00000000 tp,2=0.00000000 tp,3=0.00000000...
Hello ; I seen like this indicatoras in the Attachment and I need like this indicator is there any one can Help me please. Thank you
Hello Guys, pls kindly see attached screen - I would like to see in a Comment() the last (current) values of the gravity lines. Tried different ways but can not get to the buffer data - kindly askig for your help! Indicator's mq4 is attached.
Hi, I want to write an EA whichs buys when die indzes goes from a lower point to the certain value (High[1]<=cerValue) and sell one order, if the indizes cuts the certain value from the higher point (Low[1]<=cerValue). My problem is know, that the EA buys and sells more than one time at the same...
Hallo, I'm a beginner in programming MWL4 and I've the following Problem: I want to calculate the difference between the High and Low of the last twenty bars. In the next step I want to search for the highest difference of the last twenty bars and show it like an indicator. Hier is my Code, but it...
Hello Im quite new to MT4 coding. Ive written a couple of indicators but I find that despite trying different commands (ObjectDelete, ObjectsDeleteAll, ObjectsRedraw) in the init section of the code I cannot get my drawn objects to be redrawn unless I switch from one timeframe to another eg 5M to...
Question to EA programmers out there with profitable, forward-tested EAs - what do you find to be a good profit factor (if you look at it at all)? Obviously it has to be above 1, but I'm curious what you consider to be the sweet spot of profit factor? Do you shoot for something in the 1.5 range,...
Hi, would like to know if it even happen to you to get a constant loosing EA (based on a strategie supposed to be a winning one) ? If yes, does anybody tried to <inverse> the EA based on the fact that if it loose really constantly when it send buy or sell order, it would be bettre to send sell and...
i test my ea at tester mode, it generated 17 trades but when i run in live account, it don't generate any trade, what is the reason? i have make sure i tick the box of " allow live trading", and allow DLL, external experts imports also at right hand top corner, there is a smile ~ ~ thanks
How far back can I back test? I tried 1H, and was able to go back to only 4 months. I would like to know how far I would be able to go back? for 1m, 5m, 15m, 30m, 1H, 4H, daily, weekly? Are the amount back testing data available broker dependent? If so, which broker provide the most back testing...
I'm looking an optimization of "Expert Advisors". My system automatically chooses the number of LOTS to play according to the criteria. I ask you an idea in my EA to limit the number of lots. Example: double LOT7 ( automatically calculate optimal lot size from my EA) extern double MaxLOT (limit...
hi, i need the MT5... who can send me? my email is barnix2001@yahoo.com
How do you choose which optimized parameters to use based on the 3 factors?
is it possible? Thanks
hi, i need the MT5... who can send me? my email is barnix2001[at]yahoo.com
  How much do you EARN ? (22   1 2 3)
Just want to asked? How much profit in % do you earn? I saw on ib** there is above 300% every month, but i didn't saw one person on the top 10 every time. Is there anyone, just share your opinion, had the same % profit each months ? Masters are welcome. Thanks (^o^)
Could someone help with writing an indicator that would highlight a certain bar on a chart, for example if I wanted the 1500 bar to be a blue bar, etc.... I would really appreciate any help, Thank you
1...946947948949950951952953954955956957958959960...1244