MQL4 and MetaTrader 4 - page 1146

[Deleted]
Hi I have an EA but my broker has decided that now the EA's cannot create an order with stops simultaniously, you must enter then market, then modify the order with the correct stops. Here is some of my code, you can see I have added the OrderModify code but when testing this the EA just seems to...
[Deleted]
hello everyone, i need a little help on finding the error on this code, namely: the orderclose error 4051 and ordersend error 4051 this is a hedging EA that takes 5 levels of lots: 0.01, 0.02, 0.04, 0.07, 0.1 if the previous order takes a -80 point loss, the robot hedges and takes the opposite...
Gentlmen, I shall require your expert assistance. I have MT4 Trading Platform in conjunction with "Oanda" on my home computer. I have purchased a Laptop for travelling purposes, and I need to copy all my trading related MT4 data from one computer to another. I have attempted to download a fresh...
New article Applying The Fisher Transform and Inverse Fisher Transform to Markets Analysis in MetaTrader 5 is published at mql5.com: We now know that probability density function (PDF) of a market cycle does not remind a Gaussian but rather a PDF of a sine wave and most of the indicators assume that...
[Deleted]
Hi, I'm new to forex trading and have come up with my own little formula for working out my s/l levels and amount of risk in pips, cash and % I was wondering if any one knew of a website that would give me the average price for the day on certain pairs. I know I can work it out in excel using a...
[Deleted]
Hello, Can someone help me to merge two indicators, I will wish to interpose a Regression of Momentum: Here is the regression (i-Regr) : https://www.mql5.com/en/code/8417 and a Momentum : https://www.mql5.com/go?link=https://ta.mql4.com/indicators/oscillators/momentum thank you very much
[Deleted]
Can anybody from MT4 developers or experienced guys publish formulas/methods forSharp Ratio calculations used in new reports on Championship website. I am interested in Sortino Ratio calculations as well Does anybody know how ... Please
[Deleted]
  SSL value  (4)
Hello, Is it possible to get an SSL value with 5 digits after a decimal point? How? Thanks
hi, any one have the accelerator oscillator alert? when crossed over zero line, pop-up the alert and sounds many thanks
I have this simple script that print the tick ask rate in the expert window in start(){ double r=MarketInfo("EURUSD", MODE_ASk); for(;;){ Print("EURUSD=",r); r=MarketInfo("EURUSD", MODE_ASK); } return(0); } 1. How to prevent loging the data into ../experts/logs/ date.txt file, this file gets...
He descargado e instalado con éxito el E- REGR ea , pero no funciona. ea si alguien tiene esta funcionando correctamente, enviar mí por favor? Gracias. luisgiraldo50@gmail.com
[Deleted]
I'm running the simple script: int index=0; int start() { while(index < 500) { Print(index); index++; } return(0); } And the indexing starts at 246 and runs to 500?
Hello Guys, I have two demos accounts with oanda and fxcm. I niether case the order gets submitted, and GetLastError() returns 130, with means worn stop loss. ERR_INVALID_STOPS130Invalid stops. If I change to ticket=OrderSend(Symbol(),OP_ BUY,Lots,Ask,3,1.4,1.5,"my EA",16384,0,Green); I still get...
[Deleted]
  Data Type  (1)
I have just downloaded a demo copy of MT4. The data has 4 decimals. Is there a way that I can change the data to 5 decimal places?
Hello, In mql5 there's the CopyRates function to get the latest rates. In mql4 there's no such a function, but there's RefreshRates(). The question is: How often should it be called? Right before calling OrderSend() or OrderModify(), for example? Or it's necessary only after there's a pause, such as...
  can't get my EA to run  (29   1 2 3)
Hi i'm a newbe and i made an EA that compiled and loads successfully on to a chart. When using test strat the chart doesnt move. I put print statements at the Start () and other funtions() to see where it might be hanging up. But no displays at expert bar. Is there any suggestions. Thanks. Eample:...
Hi all, How can I get the foreground color of a chart? I want to display text in foreground color but could not find a way to get that color. thanks in advance
[Deleted]
  Download daily data  (14   1 2)
I want to be able to download daily bars for every available pair once per day. Is this possible to automate?
Hello to all I have redone the code so as that it will only BUY. No sell actions except to liquidate the BUY positions. Sounded easy enough. Everything was going well until I got down to the iSignalClose(). The code is attached and if there is anyone who wishes to add or delete for improvement, your...
[Deleted]
  Error 150 - FIFO  (2)
Can someone please help me navigate this issue, I am testing my order placement script. The following trades take place in one script: Sell 10000 units. Sell 15000 units. Net Position is Short 25000 units. Close 5000 of above units. Attempt to close 5000 more units, but get FIFO error. Attempt to
  EA frowny face  (4)
Why does my EA show a frowny face - can anybody help?
-
  MARTIN EA  (3)
Hi guys, I’m fiddling with this EA these days but there seems to be a part in the code thats been giving me troubles. When plotted to a chart the EA delivers the following error : invalid lots amount for FreeMarginCheck function. I suspect that the problem occurs at 5 digit brokers since it’s...
  ERROR 129  (5)
I've read some other posts and just no idea how to resolve this problem. I am still using a demo account (on Alpari - may not be as reliable as LIVE account). I have an array MOT with details of all current orders. The following is from my own log. The 204762 is a reference to the write_to_log...
[Deleted]
/*------------------------------------------------------------------+ |                                             fracmap_home         | |                                                 Copyright © 2011 | |                                                                  |...
[Deleted]
Hi, my strategy is based on taking trades off of the four hour 5 EMA - in a buy, the stoploss is set at the lowest low of the last four candles, and the opposite in a sell. Somehow, in the backtest, only 4 trades are executed, and the inital stop is 4.0000 in the EUR/USD(for the sell order it took)....
hi! I am searching for a method (or script, ea, ind.) to display or represent the "3-line break charts" on the MT4 Platform instead of candlesticks or the other chart representations. Has anybody an idea to realize this ?...
Hi, I've written a custom indicator that uses data from a csv file located in ../experts/files/ folder, and I've got it working great for my needs. However, the source csv file changes each day, which means me downloading it and placing it in the correct location. I've searched extensivly but cannot...
Below is an EA that I am using as a template to build an EA for a system that I use. I am not an experienced programmer and I am hoping this project will allow me to build my knowledge of mql4. The below code is working well however I am stuck on one small part. This EA will currently only have one
[Deleted]
Please, no offence gentlemen! But MT is really annoying in manual trading , and in auto trading too, to be honest. When trading manually we cannot close orders in packs... We have to deal with such kind of problems when dealing with pips and SL. There is only one Expert Advisor per chart. I am
[Deleted]
//I define the global array. string m_symbols[FX_GOODS_MAXNUM]; //set the value: for(int i=0; i<FX_GOODS_MAXNUM;i++) { m_symbols[i]="abc"; } for(int i=0; i<FX_GOODS_MAXNUM;i++) { Alert(m_symbols[i]); //print the string array to check the value, nothing is printed } Can anyone help me to solve the