MQL4 and MetaTrader 4 - page 67

Hi i need your help, I need to draw an arrow on the next bar and not on the current bar which is drawn by this indicator. What could I modify? Many Thanks. #property indicator_chart_window // The number of buffers for calculation, up to 8 #property indicator_buffers 2 // The color for displaying
Anybody know how to fix a failed [Common error]? My EA did a sell trade which is successfull previously and now when it tries to place a sell trade again, it has a failed [Common error]. No problem with the buy order. I have search in the metaeditor documentation and this forum but it doesnt do much...
Hey guys I was wondering if their was an indicator or EA that would copy a trendline on multiple charts if drawn on one. example, if i drew a line on a eurusd 1 hour it would come up at the same level on all other instances and time frames of eurusd thanks
  Error  (2)
#property indicator_chart_window #property indicator_buffers 3 extern string pair1 = "EURUSD"; extern string pair2 = "GBPUSD"; extern int period = PERIOD_H1 ; extern int distance_type = MODE_EMA ; extern int distance_period = 20 ; double dist_min[]; double dist_max[]; double dist_avg[]; int init()
Can i only delete and reopen it
I have 2 EAs that I intend to use to gather custom data by running the EA in MT4 strategy builder and a CSV file is dropped containing the data. the file is working fine except for saving the OHLC data. It is saving the same price all through OHLC per one timestamp. See below: time open high low
I have an EA that places BuyLimit and SellLimit trades. Most of the time there is no problem and the trades are placed successfully. But every now and then there is a trades that refuses to go through and ndlessly giving an "invalid stops" error. The problem is I define NO specific SL or TP. They
  close price  (1)
hello everyone, i have 5 min bar which divided into 5 bars of 1 min, how can i get the close price of all one of that bars of 1 min
Hello everyone, I'm trying to calculate the summation between 2 Histograms in different timeframes and fit it in the lower timeframe, but my code is not perfect. could anyone help me reversion my code, please
Is there any way to set up an EA based on an indicator that I don't have the code for. The indicator draws lines on the chart and has dots for buy and sell signals. Is there anyway I can make an EA that buys or sells on those dots
Is there any function which returns the overall average win amount, average loss amount, and winning/losing trade fraction? I'm thinking about implementing a kelly subroutine to handle position sizing and would like to make it fully automatic (to be turned on by user after sufficient history is...
bool sendImage ( string symbol, string tf) { string fileName = StringConcatenate (symbol, "_" ,tf, ".jpg" ); Print ( "FILENAME = " + symbol); string fileType= "image/jpg" ; int res; // To receive the operation execution result char data[]; // Data array to send POST requests
//+------------------------------------------------------------------+ //| BINARY MT2 TETSING.mq4 | //| Forex trading | //| https://youtube.com |
my strategy is based on the envelope indicator : -for a buy order a candle has to close above the envelope line -for a sell order the candle has to close below the envelope line The EA seems to enter trades based on those rules but whenever a candle closes above the envelope line and the EA enters a
Hello . i got myself stuck in a very silly issue : I've deployed a table with edits . I do the following for each edit : readonly = true selectable = false On creation Then when i update the table i've got some cells that represent switches with the "Windings" font . The initial idea was to have
Hello dear friends I want to check in EA if a position of a specific currency is open or not!but i dont know how should i do that! For example, I want only one position to be opened at the same time on currencies that have USD on one side, for example, if a position is already open on the EURUSD
Hello everyone! I am making a panel of buttons to open operations, so far I have no problem; My need for help is that I would like each order that I open to add the loss value for the Stop loss line and the same in the take profit, this next to its operation number, see drawing
I wrote an article and submitted it for publishing on this MT4 site over six months ago. Since that time is has just sat there with the "ready for publishing" sign, but no messages or responses from admin. I think that it is the admin which is responsible for finally publishing it, and there is...
[Deleted]
I'm pretty sure it's in points, but I want to make absolutely certain! Thanks!! :)
  Experiment  (2769   1 2 3 4 5 ... 276 277)
Dear forum users. I decided to discuss the results of my experiment on the organization of real automatic trading with one order without SL and TP on EUR/USD currency pair on TF M1 on cent account with a minimum lot 0.01, by analyzing 1000 last minute bars of history that I started today - 23.04.21
Please help if you know what's the problem. My EA opens trades incorrectly, it opens the sell trade first instead of the buy which is the moving average. I want to open the buy trade first (Moving average) then if it goes opposite (10 Pips) direction open the sell, vice versa. void OpenTrade() {
Morning all I have an EA which is designed to send a confirmation email when an order is executed. The 'orderselect' (Not to be confused with the MQL4 OrderSelect(...) function) function is called in the OnTick() section of the EA. Just to be clear, I am aware as to the implication of the OnTick()
Hello. I cannot receive test email notification. Is there a setting related to recepient side or there is a problem with mt4
hallow gays, when I switch from one timeframe to another timeframe the data of the indicator changes, are there any potential reasons
i have a problem on error 130 its on BTCUSD everuthing are okay exept the error about the tp and sl, i tried to up these but nothing change pls help me
Hi All, My strategy tester is showing a loss on a long trade which I bought 25.15 units of at 5360.63 and sold at 5404.44 which should have given a profit of ~ 1101. Instead I got a loss of 70. Can anyone please explain this to me? Some additional info: I'm using MT4 on Windows supplied by FPMarkets
Hi, can anyone advise how to make code to sort floating point variables as simple as this example for integers? Thanks #define nl "\n" int OnInit () { EventSetMillisecondTimer ( 500 ); return ( INIT_SUCCEEDED ); } void OnDeinit ( const int reason) { EventKillTimer (); } void OnTimer ()
  LBR + 1000 pips in one week!  (323   1 2 3 4 5 ... 32 33)
Hi! I made oscilator according to LBR rules from VT, and signal indicator to it. It looks proftable for first look, but mabye U will help to improve this idea. Regards Kale
Has anyone already coded url encoder in MQL4, that could be paired to the PHP urldecode()?
Hello, There is a coder who is developing for me an EA. I backtested the EA on 2 different MT4 version, one version is sponsored by IC Markets, and one version is sponsored by Vantage. When I run the backtest while logged in to a IC Market demo account on either one of that 2 MT4 versions I have a