MQL4 and MetaTrader 4 - page 331

To post a new topic, please log in or register
Hi, I need help to review technical indicators' values. As you know, we are able to get value of technical indicators like macd, stochastic, rsi. But I need to know how we can get buy or sell results from this values. E.G. You can see technical indicator table in below page of investing.com You see...
Could someone kindly look at my code and tell me why I mustrefresh my screen in order to get my Lot_Size indicator to display? I do not havethe same issue with any of my other text writing indicators and they all followthe same construction. The only difference is they are based of chart data...
Hi, i'm trying to edit a mml indicator, the only thing i would like to do is to reduce the length of the horizontal lines as of now they are running across the whole chart. Which i don't really like as it can be sometimes hard to read . So i would like some help on how to code them to be shorter....
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 17:22:18.392    2014...
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...
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 " );...
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 =...
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?
Hello all! I am trying to add an image to the chart using ResourceCreate, but for some reason I am getting error 5002: "Wrong file name". ResourceCreate("ChartImage","\\Images\\image.png") I have also tried this code, with the same error: ResourceCreate("ChartImage","\\Files\\image.png") I've also...
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...
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...