MQL4 and MetaTrader 4 - page 832

To post a new topic, please log in or register
I am brand new to coding and have written this program to open orders quickly as my trade management requires that i exit portions of my trade at different takeprofit levels therefor i am need to open 3 positions when i get into a trade, all of different sizes. The idea of the program is to give...
I have some scripts built by a colleague who is unwell that need some changes. The Scripts 1. BUY/SELL - places 2 orders adding in missing stops, take profits, and include a jumping stop. The first order is closed at "x" pips and the second lot the stop moved to BE 2. SWAP - essentially this script...
Hi Guys, I want to save the data {time,Open,Low,Close}, each item individuialy in a binary file, I have this code: #include <stdlib.mqh>int handle_low, handle_high, handle_close, handle_open, handle_time;bool once;int init(){    handle_time=FileOpen("time_h1.bin",...
anyone can calculate the max reasonable lotsize before you enter a trade if the accountstopoutlevel is 100 which means if the margin level reaches 100%, the account will be stopout.
New article Using MetaTrader 5 as a Signal Provider for MetaTrader 4 is published at mql5.com: Analyse and examples of techniques how trading analysis can be performed on MetaTrader 5 platform, but executed by MetaTrader 4. Article will show you how to create simple signal provider in your...
Hi everyone, been using this forum a lot in the last months, just registered to have a little question taken out that i havent been able to solve or find solution online. this is an EA i have been playing for 2 days to detect doji candles (its a code in progress) but im having a problem with the...
I believe there is a way to intergrate the use of Microsoft Access into MetaTrader 4. I searched but it gave me a dozen pages addressing errors. Can someone direct me to or give me an example of the code to integrate? Thanks in advance.
1. When I download history from Metaquotes for EURUSD I end up with a gap from 6/11 - 9/11 has anyone else had this issue? 2. How accurate is history from Metaquotes? 3. Is there a better place to get pricse data downloads from either for free or at a charge? thanks K
Hello, Can anybody help me with code? I want to create an indicator, drawing vline since 1970.01.01 after every 1000000.54 seconds. I wrote something like this but it doesn't work: int start()  {        datetime nl = 1000000.54;        datetime start =  StrToTime("1970.1.1 00:00");        int...
I've got an EA which opens a trade for me and sets a target level which it monitors. It closes the trade when that level is approached and certain other criteria are reached - so it's not as simple as setting a take profit on the trade. I use the EA for a number of different currency pairs but there...
for(cnt=0;cnt<total;cnt++)     {          //set trailing stop     if (OrderType() == OP_BUY)      {         if ((Bid - OrderOpenPrice()) > TrailingStop*Point)         {            if (OrderStopLoss() < (Bid - TrailingStop*Point) )            {               OrderModify(OrderTicket(),...
I downloaded automatic stoploss EA from database which changes price to BE at choosen price. But i would like to change the price to +1 intstead of BE, because i practice on ECN account and there is commision, so instead of BE i would always lose some amount. This change i think is easy, but i...
Hello I want to show the computer time (my local standard time) in chart window. if somebody know please advice me how to code it. million thanks mithetnme
Hi guys. A quick question, but I have tried many things. I have been closing parts of orders, and then basing decisions of the rest on the part of the order that is still in MODE_TRADES, and unfortunately it uses the info from the orders from MODE_HISTORY at the same time (even if I give that ticket...
Hello all, I'm wondering if there is a way to downgrade metaTrader to previous build? Thanks!
//+------------------------------------------------------------------------+ //| BIAS.mq4 | //| Copyright ?2011, MetaQuotes Software Corp. | //| http://www.sedofx.com/ | //+----------------------------------------------------------------------------+ #property copyright "Copyright ?2011, MetaQuotes...
hi to all.... i have an ask about Symbol type.... in MQL4 is there are any method to know if actual Symbol is a Forex Pair, CFD, Future or other...
Hi all, Recently I have started learning to make custom indicators. I figured that a good learning project would be to make the kaufman adaptive moving average. With the help from the indicators I found in the the code base and the documentation on this subject I have made the attached indicator....
  language file (2)
Hi. I have done new language file, but I need either Multilanguage pack to use or then help to complete that file by MetaQuotes. Anyone here who can help with that issue?
  Stocks Data (2)
How can I upload historic data of stocks and eod daily data into metatrader?
Hello, Is this website good for ........ thanks in advance,
Hello, I m be trading manual a system that could be profitable. The system that I am trying to do (hedge) is open eurusd, gbpusd, usdchf and usdjpy (all BUY, and all 1 lot). When the sumatory of this 4 trades get a profit of 100 U$S, then I close all trades and re-open the same 4 trades. I am using...
Hello, i have 4 accounts and i want at all 4 account simultan trades. i want to create an EA. I want to use 1 Account with my manually trades and all this trades must an signal to my own EA. And all my other 3 Acccount must only have my own EA and Activate it and then open and close all 4 accounts...
  need help!! (2)
void PlaceOrder()  {   Print("J is 0");   if(Hour()==16)     {      Print("J is 1");     }  }  void start()  {    PlaceOrder();  }   when i run this, it only went through "Print("J is 0")",it wont go to the step "Print("J is 1")", does someone know why? Thanks for your time, i appreciate your helps!...
Could someone know where have to put the end program bracket?. Thank you very much #property copyright "Copyright © 2006, Taylor Stockwell"#property link      "stockwet@yahoo.com"#property show_inputsextern string Symbol_1 = "EURUSD";extern bool S1_Buy = true;extern double S1_Lots = 1.0;extern...
Hi, Can I display inputbox with prompt about password with field mask char characters like this: ******* ? If yes, then how to do it using any library (and what library) and what syntax use in MQL4? Rgds,
Can someone please help me with this. I want to be able to have only two or three day's displayed on my charts but I have tried and and tried without any success. I have tried the magnification buttons, the chart shift buttons but I am unable to have it showing as I want it. Help please
Hi, can I control an ex-4-EA with another EA, which I program?
Hello! I've made an EA (with debugging help from RaptorUK, thanx for that :) ) that should open and close trades at specific time. Opening works properly, and everything else, but close_all doesn't work at all... Here is the piece of the code I found online and inserted: void closeall() {  double...
Hello friends, we are going to develop our site and i want to put the widget like scrolling live update of currency . so Any one know how we get the code or script for the live update of currency in mq4... please help me.....