Download MetaTrader 5

MQL4 and MetaTrader 4 - page 782

To post a new topic, please log in or register
Hi All, I was hoping you could help me, my MT4 company is smartlivemarkets and whenever I loose connection to there servers, whether its at my end or theirs the Expert Advisor button turns red. I have an EA running all night so when I get up lots of trades don't execute because the connection...
The arrows here are only shown in one direction. Any ideas where the error is? //+------------------------------------------------------------------+//|                                             100_200MAs_Alert.mq4 |//|                      Copyright © 2011, MetaQuotes Software Corp....
The two indicators are Positive Volume INdex, and Negative Volume Index. There is a way where you can download these indicators and attach them to mt4 am I correct? Or do I have to code them. All help is gretly appreciated
Hi, sorry to bother you all again, but I was wondering if anyone can point me in the right direction. The problem I am having is turning the formula on the attached file into code for my EA. I am trying to add code that will automatically change the lot size as my equity grows in increments of 500...
here is my problem, I have try to list up my orders for in case my pc shuts down during the night for exemple... here is what I coded for the listing tough it dosent seem to operate properly... maybe it's not on init() function I need to set these variables up. anyone haves a clue about it? I hope...
i'm very sorry if its a basic question, but i got stuck with that. My question is: how to change variable name in loop, for example: for (a=1;a=7;a++) { variable(here next number "a" taken from loop) } i'm not writing about using arrays, just want to test many variables in one loop. i've searched...
Is it possible to look at other sectors/instruments on m EA in MT4? For example, I would like to monitor the S&P 500 while I trade EURUSD? Thanks! Vishal
Is it possible to use regular arrays to accumulate price values so the array can then be used in ImaOnArray() or should drawing buffers always be used for this ?
Hello to all The existing code does work. I will post the code in the next message within this thread. Yes, this code does work, not that it is profitable, but it is a great learning tool. The system at this time trades one position at a time (enters a position, then closes that particular position)...
Is it possible to ue a mobile metatrader or a normal MetaTrader over a I-Phone? what i would use is a connection to a VPS-Server where my MetaTrader run, wich i can make over such a I-Phone from everyhwere, if somebody has experience and solutions with such thinks would be great to hear somethink...
Hi When I use MACD I only get an answer up to 4 digits. I need 6 digits. Have tried NormalizeDouble But still get 4 digits after the decimal point. Thanks!!!
I can't figure out why my EA isn't making trades. When I run it through the tester it has no problems, but when I try and use it it just sits there. I'm new to programming and I'm sure it's something simple. Any ideas would be appreciated as well as suggestion for the code.
Hi I have this code for working out my pivots: double Pivot(string up_dn){int time = StrToTime("22:00")-(Period()*60),shift;   if(TimeCurrent()<=time){      shift = iBarShift(Symbol(),Period(),iTime(Symbol(),1440,1)+(22*3600)-(Period()*60),false);   }else{      shift = iBarShift(Symbol(),Period()...
APeng
I am trying to programm an EA relating to the criteria as described in the Bulls Power Indicator. The fourth criteria to open a buy position "the Bears Power oscillator increases after the Bulls divergence" is not so easy for me to translate as I am quite new to MQL4. To know if there is a bullish...
Hi This indicator often does not work if the price move is too fast. Is there a way to fix it? thx //+------------------------------------------------------------------+ //| HLine Alert.mq4 |...
Hi Im wondering if anyone knows of any code to give me a list of all used indicators on a chart, and their current value? Something like, foreach(indicator ind on chart) { ind.name ind.value[1] etc } Is something similar possible? Thanks
int start()  {//---- double ABUY=0;   double ASELL=0;   double BBUY=0;   double BSELL=0;   double HABUY=0;   double HASELL=0;   double HBBUY=0;   double HBSELL=0;   double point = MarketInfo(Symbol(),MODE_POINT);   double expiration=CurTime()+PERIOD_D1*60;         int n;   int total=...
Forex signals are used to a great extent in the financial markets, specifically with foreign exchange. There are many facets to this tool. As such, they offer a significant amount of benefit to the investors and traders in this financial market. The main advantage in using this sort of tool deals...
hi, i have an EA which uses a couple of indicator functions as part of the trading strategy. however, to monitor the progress of the EA it would be good to have the indicators showing on the chart as well (running with the same parameters that are being used from within the EA). setting this up is...
How to return more than two parameters?
here is the script I wanted it to loop all the way to get max profit but it seem that I overcharged it with functions or something says stack overflow but I don't get where it's overloaded with functions (I seen lots of eas that does use way more functions then that and ran) extern double threshold...
can someone please answer a rookie question... I want to close my open order at the close of an hourly candle, but am having a problem doing it. eg : I open a trade and then when the hourly candle closes then close the trade no matter if in profit or loss... I tried this :...
  order select (2)
when i have some orders and i use OrderSelect(,by pos) to select orders if i write OrderSelect(0,by pos),it returns my newest order(or modification) or my last order?
Just after a quick answer, what code can i use to stop the EA from opening orders as soon as it is attached to a chart ? Thank You in advance MW
Hello, I'm trying to develop a script that draws arrows on a candlestick chart. I'm finding it somewhat tricky to position the arrows at a proper vertical position. First, I tried positioning the arrows at High[] for each bar. Sometimes, however, the body of the candlestick is drawn on top of the...
Hello, I know that I am not allowed to send the TP and SL with my OP_BUY or OP_SELL order. But what is, when I want to give an OP_BUYSTOP or an OP_SELLSTOP to an intermarket-broker? Can I send my SL and TP after sending the limit or does the Order must be open to send my SL and TP? Lot's of thanks,...
I just had an issue with several open live positions in my IBFX MT4 account where after many attempts over several minutes I was unable to modify the SL and TP of several open positions. I consistently received the "Trade Context Is Busy" error. The only way out of this was to reboot MT4 after which...
New article Econometric Approach to Analysis of Charts is published at mql5.com: This article describes the econometric methods of analysis, the autocorrelation analysis and the analysis of conditional variance in particular. What is the benefit of the approach described here? Use of the non-linear...
Hi all, I would like to know what components / filters you have in your trend trading system. Don't need to give exact details. I will start with mine 1. Entry on 5 min time frame 2. Signal comes from H1 time frame 3. Daily time frame to check trend Only 3 components Please share yours
Hi Guys, Something very disturbing has happen to me. I run an EA script to handle various aspects of my trades. In some cases, when I use a trade as a fence, there is a line in the script that says: if (OrderTicket()==183784037) continue; //don't process this ticket This trade had a constant SL...