MQL4 and MetaTrader 4 - page 268

To post a new topic, please log in or register
DEAR SIR I AM USING META TRADER 4 BUILD 840 , I WANT TO IMPORT EXTERNAL SYMBOL,  I HAD FOLLOWED THE FOLLOWING PROCEDURE A. I HAD OPENED THE MT4 , TOOLS , HISTORICAL CENTER, EXPORT ONE OF THE SYMBOLS AS TEXT FILE AND THE RENAME THE SAME SYMBOL WITH DIFFERENT NAME AND TRY TO IMPORT THE SAME SYMBOL ,...
Hi, I have been back testing my EA for a while now and would like to trade it live.    However, when I run it live, 3 different pairs for example,  I realised that that the orderstotal() was interfering with one another. if(OrdersTotal()==0)     {//---  Buystop and Sellstop     int...
  Web Trding (1)
Web Trading Our online web trading platforms, Visual Trading Machine, allows you to trade from any computer wherever you are in the world. Sophisticated tools and unique features make Visual Trading Machine one of the most sophisticated online-based forex platforms on the market. Real-time rates...
  Code Problem (2)
Hi, I have a problem: my program during the test send only one order even if looking at the charts it could do many more order. Please can you help me?
I am trying to run a test on the MT4 strategy tester on the 5m chart. I want conditions to be met on both the 5m and 30m charts. It appears to ignore the 30m chart condition so the condition is never true? // Input variablesinput int KPeriod = 14;input int DPeriod = 3;input int Slowing = 3;input...
Hi Guys...  I've created an indicator but I want it to be very un-obtusive.... I use a black background on my chrarts and I have set the 2 indicators to clrMaroon and clrDarkGreen... but they are still too visible for me... How do I increase the "black" level of the indis... Thanx... 
I have found the function ChartTimePriceToXY() to be quite useful but exploring in more detail there may be some discrepancies. Pick a candle using Time[] then use the code below to show the position of the candle as a percentage down the chart calculated using Time/Price & Pixels. I would have...
I have a certain condition in code where I define the BuyPrice total = OrdersTotal();if ( Bid >= BuyPrice1 && total <1)                                           // Buy Order 1   OrderSend (Symbol(),OP_BUYLIMIT,Lots,BuyPrice1,0,0,0,NULL,0,clrNONE);      if (Bid >= BuyPrice2 &&...
Hello everyone. I have MT4 840 build and I have following problem  with DAX index, it shows me in one click trading false vallues 1414.3 for sell and 1415.3 for buy (screenshot is old) instead of 11414.3 for sell and for buy 11415.3.  Number 1 in the beginning is missing. I have 840 and Win XP. Does...
Hello!   I am totally new with MQL programmation and I need a simple operation to be executed I'd like to buy the open_price of the next hour whatever this price is   Please can someone help me write the EA ?    
MT4 always cover or remove the history data I downloaded and exported once connected to broker server.  . Does it mean MQ doesn't want to support back test? . Does it mean MQ doesn't want users to do back test? . Does it mean MQ will waive the function of back test gradually?  . Otherwise why does...
Hi all, I wanted to enquire about the MT4 platform. My broker does not have access to mobile trading on MT4 but does so for the usual desktop version. I wanted to know, are you able to download the platform and use this on a tablet? or can this only work for laptop's and computers?
Trading forex ,ForexCurrency Trading  Our Affiliate Program offers you highly lucrative remunerations for referring clients to 5StarsForex Are You: • A website or forum owner? • An expert advisor (EA) developers or a signal provider? • An education provider? • An online marketing agent?If you...
Hi guys,  I am trying to figure out how to flush out, or 'reset' indicator buffers on a keystroke event. Here is what I have so far   void OnChartEvent(const int id,         // Event identifier                    const long& lparam,   // Event parameter of long type                  const double&...
Hi,  I'm looking for some strategies on how to debug. I can't run an EA on a simulator because MT4 doesn't have one. Print function doesn't work in the strategy backtester and finally the Comment function only show one statement at a time. Any tips?   Thanks 
Which platform is better. MT4 or MT5.  Any comments?
I am developing a ForexStrength indicator. This indicator shows the strength of 28 Forex pairs according to market conditions.  Everything is ok with the indicator if I draw the outputs to the chart. But now I want the outputs to be written to Custom Indicator Buffers (thanks new MT4 I can do it, in...
Hi, I wonder if someone has encountered the same issue I'm currently battling (see topic). Should not this code suffice as to delete orders pending? Have not tried it LIVE, I'm talking back test. Still, I believe this code should do it; Ticket = OrderSend(Symbol(), OP_BUYLIMIT, 1, Ask - (Point * 50)...
Hi, i made an API written it in some classes. How can i compile/hide them? the export function doesn't work for it if i try it using as lib. Is there any simple way or do i have to include them into a new lib and hide them with new functions wich can be exported? Thanks for the answers.
Recent surveys show that much more FX trading is occurring from web connected and mobile devices. The statistics speak for themselves: 1 in every 5 people in the world own a smartphone, and 1 in every 17 own a tablet*. To stay ahead of the curve, you need to offer your traders the convenience of...
Hi,   I am having some trouble trying to identify the highest high for the last x number of candles. I already have a for loop running to identify other Highs and Lows. - The for loop has to work backwards from eg 10 candles to the live candle.  Any help is greatly appreciated   Thanks in advance 
I downloaded 2-year data and it seems ok for back testing. However, when I opened the chart after testing, the beginning time wasn't the one my downloading starts, but almost 1 year later. I'm confused what cause this issue and how to fix?  I downloaded and exported to MT4 again and the issue is...
Hi, I'm Alex from Cali and I am learning C++ and also learning mql4 and I noticed that most ALL of the example mql4 files have errors or warning in them what is going on with this I don't understand. Keep in mind that I am still learning to code but if one would copy and paste into the compiler it...
Hello, A few month ago, maybe more than a year, I found an indicator on this forum that do the "Subject". Unfortunately I had to reinstall windows and now I've done a search with no success. Please if anyone could give me a link I would be very grateful. Thanks in advance!
Hi Folks  I have this code for an indicator but would like it as an EA. I have no idea how to do it. Any help appreciated. Code for indicator is attached.    I would like adding to it a martingale type system, inclusive of:   Take profit Trailing stop loss Lot Size 1, Lot size 2 etc etc. Restart new...
why  close at stop ? how to solve?   
Hello! I would like to know how can I get this zigzag indicator last 3 numbers. I don't care if indicator repaints I just need these numbers. Any idea how to get this 3 numbers to use them with EA? Thank you! Here is source code: #property indicator_chart_window#property indicator_buffers 1#property...
Hey Ya'all, I have a Pending Order (i.e. BuyLimit), the market has changed and it did not change to Open When I try to delete the Pending Order I get ERR_INVALID_TRADE_PARAMETERS But... if I reset the client, the order is shown as BUY OPEN. Has anyone encountered such a problem? Thanks
  hhhhhhhhhh (1)
hhh