MQL4 and MetaTrader 4 - page 309

for ( int i= 0 ; i< OrdersTotal (); i++) { OrderSelect (i,SELECT_BY_TICKET,MODE_TRADES); //Alert("Order Ticket = ", OrderTicket(), " Order Open Price= ", OrderOpenPrice()); ticket=OrderTicket(); pricelevel=OrderOpenPrice(); OrderModify(ticket,pricelevel, NormalizeDouble (Bid- Point * 500 , Digits )
Hello everyone, im building my first EA, it uses a custom indicator that is a two lines cross indicator, i have also made the EA so it calculates the StopLoss and TakeProfit level using the ATR multiplier, the problem that i am having is that the EA does't take trades, it shows no errors in the
Hi there, I have minor experience in MQL4, i have encountered a 2 problems with Invalid ticket Order Close error 4108 & invalid stop loss for OrderModoify but for BUY ORDER. Below i have posted the code & picture for the  If anyone can help, your help will be appreciated a lot. extern int...
Hey there Community ;-), maybe someone faced a similar Problem and has some Information for me. I've installed Metatrader4 on WIne and everything works fine, except the F1 Help in Metaeditor (Metatrader Help works ) I've browsed older Threads to fix this issue but there isn't much Information about
Why the hell is this simple function not working, I use it in my if statements for buy !CheckOpenBuyOrders() and sell ! CheckOpenSellOrders(). bool CheckOpenBuyOrders(){ for ( int i = 0 ; i < OrdersTotal () ; i++ ) { OrderSelect ( i, SELECT_BY_POS, MODE_TRADES); if
  Three (3) Moving Average  (11   1 2)
Hello everyone, I was doing EA which to open trades and close trades when moving averages crosses. But I get confused how to compare three moving averages in IF statements. also is there anyway EA can only open buy order when CANDLE start/open below 50SMA and close/ends above 25EMA, and moving
  Dinapoli  (17   1 2)
Author said that this indicator is working in two mode: delayed mode (trend is established already) and predictive mode.
At the top of this page, there is a figure showing prices above and below each bar: https://docs.mql4.com/constants/objectconstants/enum_object/obj_text I am a newbie at MQL4 and reading that code is still hard for me. It seems that you can't anchor text on top of specific bars. If I understand that
[Deleted]
Hi Friends, I would add on my ea a code to read from a db on my hosting website. In details, i have a db mysql where i store in a table the id (account Number) and a Value 0 or 1. From ea on client side, It would be Amazing if It could call the remote db passing the query with account Number and
My Mql5 indicators that I've had downloaded is not showing in my MT4 Tallinex account The Market Folder is missing from left side of Platform.  So I went to data - Indicator folder and the market folder is present with all the free indicators  that I've downloaded from this site.  I went to The EA...
So I have this expert advisor. I am running it on three accounts. Two of these accounts are Live. One is Demo. On two accounts, the EA opens trades normally. On one Live account, the EA does not open trades at all. I noticed that for the two accounts in which the EA is opening trades, MT4 connection
  Market hide bug  (2)
Hello. i see no expert, no indicator in the windows "Market". I uninstal mt4 but the problem stay. Thank
hi every one below is ATR indicator codes in MT4 //+------------------------------------------------------------------+ //| 1Calculate Lot.mq4 | //| Copyright 2020, MetaQuotes Software Corp. | //|
I have a few bots that only go up with "open prices only" but only go down with "every tick", and I do not understand why. I would like the performance to be similar. I try to have it run on candles like so. bool IsNewCandle() { static datetime lastCandleTime; if (Time[ 0 ] == lastCandleTime)
Hi all. I would like to know what is the name of the chart/s with the pictures i have attached below. I tried googling & searching for the name of these charts. I assumed it might be tick or point o charts. If i could know the name of the charts your help will be appreciated
Just wondering in Strategy Tester how the indicator values (iMA, iADX... etc) are calculated, does it use the hst or fxt files? I'd never test a strategy (in tester) using the high timeframes, Month, Week, Day etc but I use indicators values based on the high timeframes If I only run strategy tester
Hello Masters, I just started to learn MT4 Promgram and am doing some practice on my own. And I have an Array out of range issue that I couldnt figure out. Can you guys help me to point out where and why it's wrong? Goal: Draw Up arrow when EMA8 crosses EMA20 from below (golden cross) when price is
i have a custom indicator that works fine with recent candle but when i goes in the past in the chat(like over 2000 candle) it start working wrong but as soon i open input setting and closed it it works fine with past (but i go more in the past candle it have again this trouble) the indicator using
Hello ! I have been using an EA on my demo account in MT4 last week and everything was working just fine. Friday before the market closed, I removed the EA from the chart and closed MT4. Today (2020.7.6) when trying to attach it to the chart again I got this alert : « Your copy for testing to
hi guy i have in my terminal \MQL4\Files\dataCOT\Finance\forexsymbol.csv file csv i try to load with this script but return me error in path not exist a file o_O how is possible ? int start() { string terminal_data_path= TerminalInfoString ( TERMINAL_DATA_PATH ); string
Hello All, Does anyone know of any good Coding Resources to Practice and learn from? Quizzes/Tests would be great as well. Resources i am currently using include: Book: Expert Advisor Programming for Meta Trader 4 by Andrew R. Young. Udemy.com Instructors Mohsen Hassan & Kirill Eremenko Youtube
I am looking for an EA that can be used in conjunction with the MT4 Multiterminal. It is to add a SL and TP, in pips, as the trade is opened on the master and receiver accounts
Hi guys, I build a simple EA that open a position according to EMA crossover. But when I backtest it I found an odd open position above the candle like on the image. This kind open position happened more than once and I don't know why it behave like that. Here's my EMA crossover code. int
Hi! I've created an EA that will close the open order if there's a changing in parabolic SAR indicator. For this EA to work I want to check the Indicator for every new candle since the change of the PSAR is in every new candle. Here's the code for every new candle function: datetime newCandleTime =
Kindly provide us with a link to get and install metatrader 4 on windows 10 thanks
Hi, First of all I will tell you that Im new with Meta trader 4. I have worked with a software called Autostock Before (automatic trading). With that said, hope someone here can help me. I have tried some experts on my demoaccount, first in backtest and then to a chart. This has worked fine. I
Hi All, I am working on creating a class that will be used when called upon. I'm basically trying to make sure that system always uses the server time when trading on certain days. However, i have come across an issue where i can not see the mistake, if any done. Any ideas/help would be much
  Tendential planimetry method  (157   1 2 3 4 5 ... 15 16)
Greetings to the speculators ! :) Have any of the high road romantics heard of the above method ? If not, the pictures have been posted on this forum, in a thread dedicated to all sorts of funky niceties. The pictures are really quite aesthetically pleasing. If you want to know more, there's a
hi every one i have a code that shows some massage box and also send email i wonder how i can make auto alignment in the mql4 like one phrase just showing in one line another one showing in next line
I am trying to create those zones people use when they look at a chart and pick some good lines where price seems to react as decision points for price action strategies. I can do it intuitively on a chart as well, but am having trouble defining this problem clearly and translating it to good code