Hi MQLers, am I somehow able to detect a tick which starts a new candle / column / whatever? Background: within my indicator I have a piece of code which only cares about finished periods, so instead of having it run with every coming tick I plan to first check if an incoming tick 'falls' into the...

Hi, I recently installed MT4 (Oanda) ver 4.00. build 438 on a win7 64 machine. I installed in a non-admin account on this machine as I do with all my programs. The program worked Ok for a few weeks but yesterday I had a computer crash while MT4 was running (the crash is not related). After re-boot,...

Hello MQL4 community, I have a condition for Boolean to be true or false. When the condition is met, Boolean is true, BUT ;) when the condition changes, Boolean is false. Does any coder have any ideas to keep Boolean true even when condition changes in the future? example: Indicator now meets...

Hello, I have an array with 4000 values and would like to find the 10 (or X) highest values in that array, not just the highest. I am really not sure how I would go about that. Can anyone help please? Thanks.

Hi, I'm looking for some input on this from people who already did it or have an idea of how to do it. I don't want to use moving averages because of the lag, I'm looking for a natural method, that uses the same parameters as people do when looking if there's a trend or not. So I was thinking of...

spread used by strategy tester is very critical to an EA I am developing. Strategy tester uses the live spread if the market is open and when market is closed it uses closing spread based on the last bid and ask quoted by the broker. Some smart brokers even when their normal spread is like 1.5,...

hi all, need help to display an arrow when a pending order say stop buy/sell is triggered . my EA is showing the stop buy/sell order on chart but there is no indication when it is triggered (stop buy/sell turns to buy /sell ) . i can only verify this via the account history or Trade tab. thanks...

Hi, I have a problem with GlobalVariableGet() function. I define my variables in this way: string count_long = StringConcatenate("count_long_",Symbol()) ; GlobalVariableSet(count_long,1) ; The expert runs on different pairs. So I obtain “count_long_EURUSD”, “count_long_EURJPY”,...

I have one Expert Adviser that gave excellent results in a simulation since January 2012, but i was only able to get 90% quality. Someone can help me run a simulation to 99%? I followed all the steps in "Birt's EA review", but I can not run on my computer since it freezes all the times i run it. I...

Hi, I have one EA running on one chart (EURUSD), scanning and controlling all 22 pairs with various strategies. It is working fine. When I create another set of EA, running on GBPUSD chart, also scanning and controlling all 22 pairs, it does not get fired. I tested the same set up on 2 notebooks,...

Hello, after much work, i finnaly ended my EA. Now I want to ask help from anyone who is available to help me find a good set to this EA. Those who help me, will have their reward. I don't want to make advertising, so i will not place here any type of reference. Please send me the statements to...

I need some assistance with and EA that I am using to pull off information regarding Stochastic measurements. The part of the code that is pulling the information is the " iStochastic " command. For some reason I am not getting the stochastic measurements for all of the time-frames being specified....

my ea opens Long position with big gap price but not short position... plz anyone help me? //+------------------------------------------------------------------+//| Expert Advisor for MetaTrader 4 |//| version...

Strategy 1. Strategy is based on current price. The strategy is as follows... If price is "pushed" up/down enough, the price MUST reverse. The trick is to get into the market at the right moment... This can be done using pending orders below/above price. Example: While price is shooting up, a sell...

According to my knowledge, MQL is a subset of C language. And I know C language has functions to get and set the states of hardware, for example: int inport(int portid) void outport(int port,int value) int biosequip(void) Do anyone know MQL havs such functions? Can anyone with kindness help...

Greetings, I would like to buy a tablet computer that can run the MT4 scripts. (I read that the Android types, can run the MT4 application, but can't run the script) Is there anyone that already using such a tablet computer and can verify that it works fine just like on the desktop computer?...

Good morning, I have a problem and need help please. I recover ... open = iOpen (Symbol (), PERIOD_M1, 1); close = iClose (Symbol (), PERIOD_M1, 1); I need open and close with 5 decimal places, but I come with 4 decimal places and if the string step puiedo not operate with them, and I need you...