Download MetaTrader 5

MQL4 and MetaTrader 4 - page 770

To post a new topic, please log in or register
I need to to draw a vline in some points of my candle graph,but i'm having some problems... I'm trying this: if((Open[0]>Open[1] || Close[0]>Close[1] || Close[0]>Open[0]) && Volume[0] > Volume[1]){ b++; if(!ObjectCreate("fundo",OBJ_VLINE,0,Time[0],Close[0])){...
solution found.
I am trying to get this code to count the different types of order and store the results where I can use them, but it doesnt work. Could anyone help ? double    Op_Buy,  Op_Sell, Op_BuyStop, Op_SellStop,   Op_BuyLimit,   Op_SellLimit   ;   int      total         = OrdersTotal();         for(int a=1;...
Dear all I want to know how to get the close of the previous day I knew how to get the open of the today iOpen("EURUSD",PERIOD_D1) now i want the close of yesterday any help please. Thanks in advanced
Hi I have created php script that scans my brokers webpage for the accurate pivot points, and resist/support lines. It puts them into files like the one attached. The problem I am having is getting my data which is stored on my webserver to the EA, can anyone give any pointers for this? Here is the...
I tried to run the Programs in the 2 articles "Betting Modeling as Means of Developing Market Intuition" and "Comfortable Scalping" from this site. In both programs i found they don't work. I used an Alert to find out what was going on. Alert ("Ask= ", Ask); Alert ("Point= ",...
Hi Here is the ATR indicator in mt4: #property copyright "Copyright © 2005, MetaQuotes Software Corp."#property link      "http://www.metaquotes.net/"#property indicator_separate_window#property indicator_buffers 1#property indicator_color1 DodgerBlue//---- input parametersextern int...
  Connecting EA to database (14   1 2)
Hi Can someone please assist me with my EA. I need it to connect to a website/database and with the use of variables true and false. these variables must be checked every 12hour or 24 hours. then depending on the data base stop all functions of the EA or continue as normal. Please assist or if you...
Hi, i have a little problem with digits after decimal point. Today i've found that MA has only 4 digits after point when all my trade system is based on 5. I've tried to look for a solution on the Forum but i didn't find anything. double MaL = iMA(Sym,0,MaLP,0,MODE_EMA,PRICE_CLOSE,0); Print ("MaL...
Hi I am doing some research and would like to findout what you as a subscriber to a EA that has gain of between 10% and 35% ROI p/month would expect from me and the EA and what would you expect to pay for such an EA. I as you to put yourself in the shoes of an investor looking for a return on...
Hi folks, I've been trying to create a program that checks the current mailbox on my MT4 account. My broker gives some info on trading signals that I intend to check and since mail history isnt saved anywhere, i need to do it in real time. My question is, is there any way (easy way for starters)...
If i place either of these scripts on a M1 chart, with thousands of bars loaded - they both begin counting aproximately 250 numbers from the end. (i.e. they start at 250 & 150 respectively), & then count through to the end (400 or 500 respectively. The beginning number is normally not exactly the...
Hi, all I have a problem when create a custom indicator which return 4 values. 2 of them are double value while the others are interger. But I can only get the double values, the interger values are empty. I set the right buffer type, it seems in vain anyway. Does somebody know how to solve it?...
Hi, I got Ducascopy tick data to obtain 99% modelling quality. When perform an optimization and set minimal margin level (that's acceptable for the backtest), will the be the margin level check really every tick of the backtest? Regards, Daffi
I am a MT4 newbie. Watched several MT4 videos and went through the Help manual .. still cannot figure out how to change the time of the chart (7 hrs ahead of mine). http://www.screencast.com/users/Bethwgreenie/folders/Jing/media/bd4ba063-bb76-48a6-b8ef-550aee65c464 Appreciate some tips please....
Hello Everyone! I have the following idea, when i made a optimization in MT4 i can't optimie balance and drawdown, and because of that i think in the following idea: for example: when my buy conditions are TRUE, i set a new parameter "flag", then i check if the new Balance is greather or equal to...
Patrik Polak
Hi all, i need help. I want add to my EA this: If bar is closing (each bar), close position. (EXIT BUY / EXIT SELL), thank you //Close //+------------------------------------------------------------------+ //| Signal Begin(Exit Buy)...
hi so, we're talking only about currently opened trades. i would like to add the profit of the first and the last one together. i can add all the trade's profits together, but thats not what i want, so what do you guys suggest? the trades have not been named like ticket_11 or whatever, so an...
Hi, I want to programm my own trailing stop. I mean, I don't want to send the trailing stop to my broker but I want to check it with my EA and close it with my EA. Can I do it in that way? if(OrderType()==OP_BUY && Bid-OrderOpenPrice()>=Start_TrailingStop*Point()) {    if(Bid<  High[iHigh(NULL,0,...
Hey guys, I want to use the Forex Factory News indicator! Before it works you have to download the news from there database with this script (it´s only a part of the code) I have more than 1 Mt4 station on my PC and it´s troublesome to specific the path everytime I want to download the news from...
Hi, I have an MTF indicator that uses sar, however I'd like the sar to calculate heiken ashi ohlc, and not the normal type Can you tell me how I can do this, my mtf indicator calls to the sar indicator to calculate sar formula, I think it is calling to the internal indicator in mt4 that can not edit...
Hi I have this code in my EA but it just keeps returning 0.0000 can only help? int Range(int shift){double Range;   if(Close[shift]<Open[shift]) Range = Open[shift]-Close[shift]*Point*mno;   if(Close[shift]>Open[shift]) Range = Close[shift]-Open[shift]*Point*mno;   return(0);} The "Range" is then...
Hi - apologies i am new to MQL4. Is this language suitable for corporate (meaning non FX) option trading as well? Thx!
How can i set and fix the grid in MT4? For example, I want to set the grid to a fixed 10 pips. Thanks
How can a separate window indicator (#property indicator_separate_window) be positioned above the chart in MT4, rather than below where oscillators like Stoch, MacD, etc normally reside? Ive seen separate window indicators above the chart before from images, but I need to know how to position them...
Hello, I have a question relatedto the OrderSelect() command. For Open and Pendingorders, does this command use the information stored in the Client Terminal. Inother words, working with information stored physically on my PC ? Or is it sending a requestto the Broker? For trades coming from...
Your search did not match any documents What is going on?? I get this message everytime i do a search in this forum.
Hello, I have written a small piece of code (regarding MACD) and I can access global buffers from the indicator but I cannot do it with the same piece of code in EA. WHY ? This is the piece of code from indicator init() fun that i don't use in EA: int init()  {//---- drawing settings...
I have a simple strategy, wich I trade for a long time (manual). Now i want to make an Expert advisor. I'm a newbie in MQL4 and maybe can someone help me. I don't get the RSI visible and he doesn't open any positions. The ma's are visible but all in a red thin line. The strategy is very simple....