MQL4 and MetaTrader 4 - page 893

To post a new topic, please log in or register
Hi I want to add to my EA option of stopping and starting by time . I mean : 1 . start time of trading 2. stop time of trading 3. closing all open positions at stop time (never mind win or loss ) thanks
Any of you rocket scientists know how to call and plot this function ?
hello every one.. i want to put indicator stoch to ea, but don't know how to get the value of 2 lines.. the stoch have 2 lines : red and blue line.. i am using code like this: int start() { double stochh=iCustom(NULL,0,"Stochastic",2,1); double stochl=iCustom(NULL,0,"Stochastic",3,1);...
Hello All, sorry to bother anyone here, but I need help. As for the expert advisor, there is like 'Moving Average' for Auto Trading to Buy / Sell. However, I can't seem to find Auto Stop Loss and Auto Target Price. When double click there're 'Common' (For Setting up Auto Buy/Sell according to the...
  Free EA - SteadyWinner V3 (19   1 2)
I am the coder of SteadyWinner. V3 (for small Accounts) is now released. V3 has a lot of improvement and is more profitable. V2: stoploss=200, takeprofit=50, trailing stop=20, trading 2% and 4% of the account balance V3: stoploss=50, takeprofit=12, trailing stop=10, tradng only 2% of the account...
New article Protect Yourselves, Developers! is published: Protection of intellectual property is still a big problem. This article describes the basic principles of MQL4-programs protection. Using these principles you can ensure that results of your developments are not stolen by a thief, or at...
Hello. My statement is not showing the balance graph. Instead I get a black image. Does anyone know what must I do to correct this?
I have been testing a fairly intensive EA on a live micro account and the recent volatility has been putting the EA through it's paces. It stacks orders and on stong moves can accumulate a large number of open positions each of which then has a stop loss trailed. This is resulting in a high volume...
hello every body... i see in the https://book.mql4.com/samples/shared, to pass the indicator parameter to ea using like this: double iCustom(string symbol, int timeframe, string name, ..., int mode, int shift) example: name indicator: rocse.mq4 have parameter : extern int History    =5000;        //...
This other post about twitter posting from an EA gave me an idea on how to remotely monitor my EA's performance while I'm at work without clogging up my inbox. Instead of littering my EA with various calls to send email or post to web on every branch of my MM subroutine, though, I'd prefer to find...
Hi, I have a dealer account which is attached with many client accounts. I want to write a script which will place the order in every client account depending upon account balance and other status. Is it possible to retrieve the account information related to dealer's terminal. Thanks, Alok.
Is it possible for an EA to either disable or remove itself after closing a trade ?
Hey Guys, I would appreciate i if someone can add codes to the code below to enable the EA work with 5 -digits brokrs. Thanks advance. Malk //+------------------------------------------------------------------+ //| 10points 3.mq4 | //|...
Hi every body I am a new mql4 programmer. please help me How can I select all open orders (for example 5) and close all of them immidiately? Thanks for your cooperation
i did all i know to turn on the default expert advisor (moving average) but i still failed tools > options > enable expert allow live trading allow DLL allow external experts import (all ticked) in addition to EA play button (on on) what is the problem
hallo . i have a basic problem . for start neuron parameter i need for example a b c parameter . now after condition i will get d and e . let say a b c is close[1] ma(50) ma(20) d is parameter i will get after close candle > a point . so it could be after n (maybe 1 2 or 30) bars or...
Dear Fellow traders, First of all I am all new to the forum, so please bare with me, secondly English is not my first language, again please bare with me. The following strategy I used for the last month (sep) on the EU gave me a nice steady profit (1195%) on a small live account (no demo). No big...
I've been looking for the last week to find some type of code to add market orders at regular intervals during the trend. I was wondering if there is anyone that has some code that will do this that i could use. I've been learning mql for awhile now....but i haven't found anything that i can learn...
I have a ROC price indicator. How simple is it to change the instrument from price to ATR indicator? So that the new indicator monitors the ROC of the ATR? Code: //+------------------------------------------------------------------+ //| ROC...
Hello, what I am trying to do is very similar to: http://www.forexfactory.com/showthread.php?t=217362 7bit explains how to do it here: http://www.forexfactory.com/showpost.php?p=3424034&postcount=19 The method he posted is what I've been trying to do, but for some reason it doesn't work. The arrow...
Please, Can anybody explain why some trade are deleted when pending order ie SellLimit and BuyLimit going to be activated. When I checked the account detailed report (attached), it says Not enough money though the money in the account is still there. Apprecite any explaination. Thank you.
  Is this a bug? (12   1 2)
I have recently developed a custom indicator that counts trading days and plots vertical lines at my prescribed intervals. Works fine within the processed bars, however, as soon as it starts plotting in the future - to the right of the current bar - it adds days?? The code that I use is simply a...
Is there a way to get the profit for just one chart? I would like to find the profit so I cn close all orders just on the one chart Thank You Kalkaska
I am quite new at this, so I plead ignorance. I am starting to work through the demo account. According to instructions in the user guide, under the charts tab, lines of pending or open orders with attendant stop loss or take profit limits can be shown by enabling the "show trade levels" and then...
Hi, Is there any framework/wrapper library for MQL4 to make life easier? I havent really been searching around much, but so far I havent seen any. In case there is no such thing, would anyone be interested to create one? For instance, a piece of framework library code for Bars could be like this:...
Hi, I just made a EA which seems to be profitable in backtesting (it opens and closes positions) but when i activated it in my demo account it just don't open any trade however all criteria are met. In the backtest it opens about 6 trades a day, but in my demo it has not opened anything in 2 days....
What is the best way to trade multiple pairs? Ex. I would like to trade like 4 pairs on the same account When running EA, I face problem like error 146, TradeDispatcher is busy. I believe the cause of this is that MT4 is single threading and EA cannot make more than one trade at a time? Correct me...
Hello All, I have a EA based on Laguerre and Moving Averages indicators, among others. In case of wrong signal I use martingale to help the account (with constant steps, incremental steps or Fibonacci steps) From my statistics the probability of a wrong signal is just about 2% (I used 10 pairs to...
Does anyone know of an indicator that charts the change of the previous bar (or several bars) in pips rather than a percentage? I really need this for a strategy I am trading. Any help would be greatly appreciated! Daniel
My system is in MLQ4 on metatrader and trades sweet crude oil futures. It does well in forward testing in the month or so I have run it. It does reasonably well in backtesting in metatrader. But of course the metatrader backtester is extrememly limited. I would like tick data for sweet crude oil...