MQL4 and MetaTrader 4 - page 1471

  Database to remember trades?  (16   1 2)
I have an EA that closes off half the lot of a trade once a target profit is reached. I would like the EA to remember which order it has already closed so it doesn't close it again. I think the only way I can do this is to save the data in a database (ticket number) and have it check the table
[Deleted]
Let's face it, virtualization software is no fun. I am happily using MetaTrader on my Mac using a program called Crossover: http://www.codeweavers.com/ Everything works fantastic and quickly and it is MUCH faster than running in an emulated environment in Parallels. However, a problem has recently...
[Deleted]
I mean something like exit(0) or so... I want to call it when something bad happens.
can some tell me what is the purpose of this command. what is its function
Anybody has idea why is this order executed? MacdCurrent=iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,0); MacdPrevious=iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_MAIN,1); SignalCurrent=iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL,0); SignalPrevious=iMACD(NULL,0,12,26,9,PRICE_CLOSE,MODE_SIGNAL...
The idea of my EA is very basic. I want to enter and exit on an EMA crossover. Entry: Long 55 EMA Crosses below the 13 EMA on the hourly timeframe. Vice versa with a short postion. Exit: 55 EMA crosses above the 13 EMA on the 30 min timeframe. I have put together some code already however it...
  3k to 133k in 6 years! ;)  (13   1 2)
Holy Grail?...Noooope, not yet. But let me share my report with you guys. Honestly, no cheating, no money management with fixed lots size 0.3 lots, no risk control with fixed stoploss 25 pips. Trade only one trade in a time. Please don't misleading by the EA name, it is not only looking for 10pips...
Hi everyone, my search of this comunity doesn't return ant results - today is first day this happened - any idea how to fix it if this is problem on my side? thank you
[Deleted]
Would you pls help revise My Close Order, I want Hard Close Order,All Existing(multiply) order should be close all at one Thick( one point) as Indicator triggere if( Signal Indicator triggere exit==1) if(OrderSelect(cnt,SELECT_BY_POS, MODE_TRADES))continue; if...
Hey, play with money you can afford to lose only. Investing is like a business, you win some and you lose some. Easy come, easy go. Therefore, remember that. And also remind yourself that Forex is really worldwide. It is not your relative or your friend: don't fall in love with it. When you lose...
[Deleted]
Trying to write some easy code that will draw vertical lines each day at the London open and NY close. I would like it to be just on the current trading day. Any ideas? Obviously, I’m new to MT4. Any help is appreciated.
[Deleted]
Hi, I tried putting this: if (TakeProfit!=0) OrderSelect(i, SELECT_BY_POS, MODE_TRADES); if(OrderMagicNumber() == magicnumber) { TrailingStairs(OrderTicket(),TakeProfit); in the end... But I couldn't make it work.. I'm a newbie when itcomes to coding, probably...
[Deleted]
I'm absolutely stunned by the behaviour of my EA during strategy testing. Why in the world are there two different outputs. How could Ask be perfectly divisible by CurrentProfitTarget and not equal to CurrentProfitTarget? Here is the relevant code: Print("LookForClose()");...
What is the difference between OrderMagicNumber and OrderTicket? Seem the same to me.
Ocassionally I need to move the stoploss as close as possible to a trade (open, limit or stop). I cannot seem to find the correct procedure to do this. For example with the pair GBPUSD I have tried using MarketInfo(Symbol(), (MODE_STOPLEVEL)) gives 3, MarketInfo(Symbol(), (MODE_SPREAD)) gives 4,...
[Deleted]
Im looking for a Reversal bar up/down indicator for MT4.
Many people may have heard of or even be familiar with the contents of J.L. Dub's book Probabilistic Processes. Chapter VII of the book, devoted to martingales, says that one cannot profit from pure martingales (a martingale is a fair game, i.e. with zero mathematical expectation, which, according
  How about that!!!  (72   1 2 3 4 5 ... 7 8)
I would like to present you an Expert Advisor based on modified Stochastic + ADX works on 5 minute timeframe results after 2 months of work with initial deposit 10000, lot is fixed 10, can be changed independently during the process, StopLoss 65, TakeProfit 150, TrailingStop 20 stochastic parameters
[Deleted]
I've been programming using MT4 now for about a year - watching tic-by-tic and I've finally got a winner. My first attempt out wasn't so successful -- but, it worked; ie., when I bought it bought and when I took profit it took profit - Now, after downloading the latest revision of MT4, my trades...
[Deleted]
  HELP ME  (1)
ESTOY EMPEZANDO A LEER EL LIBRO, Y QUISIERA SABER SI PUEDO CREAR UNA ORDEN CONTRARIA AUTOMATICAMENTE DESPUES DE EJECUTAR UNA ORDEN MANUAL Y COMO PODRIA EMPEZAR EL CODIGO, SI ALGUIEN ME PUDE AYUDAR LE AGRADEZCO. EJM. HAGO UNA ORDEN DE COMPRA MANUALMENTE Y EL EA ABRE UNA ORDEN DE VENTA CONTRARIA...
  Terminate an EA.  (3)
Hi, How can I terminate an EA if certain inputs are incorrect? I do not want to put a conditional return in start() because its still running and catching the error on every tick. I need something that can just stop executing the EA if the input params are incorrect. Is this possible? Thanks, JForex...
[Deleted]
Hi Admin, Where do I find the next page to ad the code?, after I have downloaded METATRADER 4??? Is there anyone who lives in Australia or on the Gold Coast Queensland Australia.. Rgds - George Martin gibman7@gmail.com 61755294087
[Deleted]
HELLO, PLEASE I REALLY NEED HELP FROM PROGRAMMER. SOME ONE ASK ME TO PAY MONEY JUST TO CREAT MY SYSTEM TO EA, I F I HAVE SUCH MONEY I WILL DO IT BUT AM JUST TESTING THIS SYSTEM ON DEMO AND NEVER GONE LIVE YET, I NEED AN EA FOR IT, PLEASE HELP ME . THE SYSTEM AS FOLLOWS: Place two pending stops BUY...
[Deleted]
Hi there, I downloaded MT4 and created a DEMO account. Then I downloaded an EA for MT4 an tested it with some combinations on the strategy tester. Then I signed up for a LIVE account. And now the strange thing: When I try some strategies (with same values/settings as in my DEMO account) I get TEN...
[Deleted]
PLEASE I REALLY NEED HELP FROM PROGRAMMER. SOME ONE ASK ME TO PAY MONEY JUST TO CREAT MY SYSTEM TO EA, I F I HAVE SUCH MONEY I WILL DO IT BUT AM JUST TESTING THIS SYSTEM ON DEMO AND NEVER GONE LIVE YET, I NEED AN EA FOR IT, PLEASE HELP ME . THE SYSTEM AS FOLLOWS: BASICALLY ON DAILY CHART Place two...
pls can anyone help me this powerful ea open trade daily if price is above pivot point then it open sellstop order on pivot point value and take profit on support1 and stop loss of 100 if price is below pivot point then it open buystop order on pivot point value and take profit on resistance1 and...
[Deleted]
  Help Me!  (2)
Hello All, I encountered a problem. I got error code 4200 when I used ObjectDelete to delete an object. I don't know why. Why cannot I delete an object? Can anybody help me? Best Regards, szfishing
[Deleted]
Hi all, I'm beginer in forex trading. Please tell me if someone knows EA wich works to micro account. I need your help guys. Thank's.
  Feedback on EA  (2)
Hi, after some testing I've set-up an EA that seems providing interesting performances. Attached the results of backtesting over 1-month period (it is very similar on other months). As baseline the EA uses 0.1 Lots quantity. I would really appreciate some feedbacks and suggestions on how to improve...
Hi. I want use a simple code for checking out if market  is under or not certain price-range criteria, into an expert advisor, tick based (checking the values tick by tick), utilizing the simple iHighest and iLowest function, with the  timeframe and shift-bar in-function options. In particular i...