MQL4 and MetaTrader 4 - page 688

So I know when a stop loss was hit: what's the easiest way to halt trading for 1 hour when I know this?  I.e. OnTick fails on an equality statement every time for 1 hour after I discover a stop loss was hit? cheers 
Hello. I trade on Mac mini and i cant import any data to MT4,only data exported from mt4 and then import(and it useless) and when I only change anything in this imported file,save,i cant then import...what I do wrong? thanks I try to import yahoo spreadsheets to but it dont work :/
hi forum, i have a situation here. lets suppose i open a pending order, a buy stop order for instance. this order became a market buy order when the price is reached. it is possible in mql4 to know what is the spread at the moment the pending became market order and take actions like don't execute...
  Bug found?  (3)
I have been 3 hours with this... trying to find an error on my code, but it seems is not the logic, anyone can explain it? int i= 0 ; int j= 1 ; while (i< 300 ) { Alert ( "i= " ,i, " " , iTime( Symbol (),j,i)); i++; } When j==1, the Alert comes: 2015.01.20
Hey guys - before I go into the issue, is this the correct place to ask about MT4 issues? Or if not, could someone please tell me the best place?  Many thanks 
Hello Forum, I Hope you are all doing good! I wanted to communicate with Super Trend here's the link: https://www.mql5.com/en/code/8268 I want to put a Alert for my self when the cross happens and the current candle get solid, I described in attachment below. I have not a lot but a bit of mql4...
  mt5 hedging  (1)
Does mt5 allow hedging? It never used to.    If it does not yet, is it something that has been mentioned as 'going to happen'?
Hi, I'm working on an EA and I'm implementing a trailing stop loss, since neither MT4 nor my broker supports that feature out of the box, I have to implement it programmatically by modifying a SL closer all the time. That leads to a lot of Modify calls per order. When I'm trying to use a tester to...
Hi, Can you kindly show me the way to get at least 2 years of past data on GBPAUD to test an EA? Thanks
Hi, I made an indicator which gives some information about the market, ie ADR, today's range, spread, swaps, remaining candle time etc. Now I added an economic calendar to it. It works pretty good, but there are two issues I can't solve: 1) My profile contains about 20 chart windows and the...
I can only pull up Forex charts on MT4.  I want to find out how to add indices, commodities and stocks to MT4.  Please show me how  https://dl.dropboxusercontent.com/u/9875484/Sup.PNG
I don't want to use AccountBalance() as I want to calculate the balance of different EA on a same account. I define accountBalance for the purpose. However how can I get a precise balance calculation after an order is closed considering commission and swap? Is this correct?   double...
[Deleted]
Greetings, I am trying to place orders with different SL and TP levels.  However only the SL and TP closest to the market are being created. void OnStart(){   bool check = OrderSend(Symbol(), OP_BUY, 0.01, Ask, 3, Bid - 100 * Point, Bid + 100 * Point);   if ( !check ) { Print("error OrderSend " );...
[Deleted]
Hello I have a function on my EA that controls the exiting of trades: void close(){      if(OrderSelect(SELECT_BY_POS, SELECT_BY_POS)==true)         if(GlobalVariableGet("period")!=Period() || !GlobalVariableCheck("symbol"+Symbol())){return;}                                   for(int i =...
[Deleted]
I remember at one point I was able to add something to the Tools/  Fibonacci/ Properties($?) to see the Price on the line next to the retracement/extension value. CAN YOU HELP? :-)
Hi, I open today a real account in MQL4.com but with the user name and password I can't login in my Metatrader 4 ...may I did somthing wrong?
Hi, I set up my DDE with excel, but i get different values in Data. Sometimes the value in one currency pair is different, too. Sometimes its written with "," and sometimes there are values with "." Has anyone an issue where this differences come from? Its hard to calculate with changing value types...
Hello Everybody in the house, I have a little problem with my code and I want anyone with good knowledge in EA programming assist me out. Any help that brings result shall be greatly appreciated. I was working on this automated system, it should work like this: It opens two opposite positions...
let's say I'm after time frame H1, EA runs on OnTick even, how to say -> new bar is ready - check the conditions once - run logic to open/close  order but check only once and wait next H1, not check every Tick during this H1 and run logic may be I need to use onTime but not sure how 
how can I check if Stochastic direction, if it goes down or up
I have an indicator, qdo triggered produces a signal, a triangle in the graph, it is possible I add an alert for this triangle ??
Need help with a EA I am trying to adapt Who can help and what must I post to get help I am totally new to the forum thing
When using iTime, how can I specify a specific time upon each hourly change?  I.e. if I wanted 12:50 > 13:50 > 14:50 > 15:50 and so forth. I want to store this an a datetime that I can call every hour (rather than just looking at each iTime(NULL, 60, 1) which I do not want as that is on the hour...
Hi  I need help to figure out what is wrong with my codes like to delete a file and figure out the path. #import "kernel32.dll"    int CopyFileA(string lpExistingFileName,string lpNewFileName, bool bFailIfExists);    int DeleteFileA(string lpFileName); #import  ...  ...    DeleteFileA(D...
[Deleted]
Hi All, Does anyone know about a Free Mt4 QUOTE freeze/status plugin ?   Thank you 
1st: whats actually different in... iMA(NULL,0,13,0,MODE_SMA,PRICE_CLOSE,0)iMA(NULL,0,13,0,MODE_SMA,PRICE_CLOSE,1)iMA(NULL,0,13,0,MODE_SMA,PRICE_CLOSE,-1)iMA(NULL,0,13,0,MODE_SMA,PRICE_CLOSE,i)iMA(NULL,0,13,0,MODE_SMA,PRICE_CLOSE,i+1)iMA(NULL,0,13,0,MODE_SMA,PRICE_CLOSE,i-1)    2nd: If i have a...
  Floating Charts  (1)
Hi community I've recently installed MT4 (required by my broker). Is there a way to cause the charts to float - i.e. pop out of the MT4 software window, particularly for ease of viewing on another monitor? Just wondering if there is free software or a tweak on the platform I'm not aware of. (btw -...
New article Random Forests Predict Trends has been published at mql5.com: This article considers using the Rattle package for automatic search of patterns for predicting long and short positions of currency pairs on Forex. This article can be useful both for novice and experienced traders. The...
Dear all   I would like to know, is it possible for anindicator to draw a line that points are not assigned bar by bar?   For instance:   point 1 at bar[2], point 2 at bar[5], point3 at bar[10], point 4 at bar[11], point 5 at bar[17]……   If yes, is there any indicator provided byMT4 does similar...
  Fib Levels  (18   1 2)
The documentation now gives an example where the individual fib levels can be set (color, style, width, value). Anyone managed to get this working? For me, it is the same as it's always been, namely all levels take the same color, style and width. Excerpt from the documentation:    for(int...