MQL4 and MetaTrader 4 - page 467

To post a new topic, please log in or register
for(int otsb=OrdersTotal()-1;otsb>=0;otsb--)              //Check through open orders      {     if(OrderSelect(otsb,SELECT_BY_POS,MODE_TRADES)==true)          {              if(OrderType()==OP_SELL)                                   // if(OrderMagicNumber()==magicnumber)...
Hi, I am writing paper on Resource management systems and I choose to write about Automated currency trading using EA's. But now I discovered that there is no actual schema on internet, that explains how does it actually works, what kind of servers used, how strong security over the network and so...
Hi all, Was trying to get my head around the iMAonArray function. I noticed that if you use a simple array then the iMAonArray function reads from lower to upper bound of the array variable whereas if the array is an indicator buffer array then the iMAOnArray function reads from upper to lower bound...
About below Indicator, I have some questions as below: 1. when "#property indicator_chart_window" is available, we get the result is: when "#property indicator_separate_window" is available, we get the result is: the first picture shows the indicator draw "dot" between x1 and x2 area;...
Hi. I created an pipe communication with my .net app and mt4. When an onder are open, your close price is 0. So I need send exactly this digit to my app, only 0. But mt4 is send 0.00000000 . I create a var called closePrice as double. Need to be double because the close price is a double number...
Dear all, I hope someone of you can help me sending a code that allows me to control how a specific EA trades. What I need to do is to manually drive an expert advisor and make it stop tradding when a specific condition meets. The idea is to manually draw a trend line on MT4, and make the EA stop...
How do I declare an abstract base class in the new beta version of MQL4 or, similarly, in MQL5? The language doesn't seem to permit it, despite being heavily based on C++.
Hello, is here any good code avaible with wich i can read with the MetaTrader a website? For example when i want to read the source code from a website with market news into a expert advisor.
Something weird has happened on my pc... It seems someone has blocked my IP adress from mql5.com I mean it because I can connect from other IP adress... I tried to connect from my office and was able to connect from there. The problem is that my accounts are all from my home IP adress wich was...
Hello Hello Hope that someone here can help me - I need tostart trading and trading fast. I have just ended the forex trading course and am reeeeal excited! I saw the promotion for christmas at traders pulse but am not sure about it - has anyone here traded with them - what do tyou think -...
Good day. My name is Lee and I'm a new trader from the Philippines. I have a classic account but I don't trade live yet because I'm still getting some practice. So what I'm doing now is a demo account that is free. I am certainly learning a lot from this demo account. But surely it would be very...
Hello I've tried using numerous different ea's and it seems like about 75% of them don't work or work randomly. Right now I am messing with a PSAR ea thats suppose to trade on every new dot in the opposite direction and it will not open positions and when it finally does it will not close the...
I've been using a demo account for more than two weeks now. And so far I'm doing good and I'm enjoying it. How long should be a demo account be used? What are the good and bad effects of using a demo account for a longer time? Thanks.
I have created an ea for M10 offline chart there is a condition for order close in ea that if the indicator value crosses the value 30 then close the order.I have also attached the indicator to chart to show the values of indicator on every tick. There are many times indicator value crosses value...
How can i calculate the lot maximum size based on the limits of the free margin?
the bars like below picture shows; most time I want to get bar A rather than bar B;but use iLowest(), it is easily to get bar B; so how get bar A?
Hi, all As my indicator updates only when i change timeframes from higher to lower TF. for e.g. if i need to update the 1M indicator i have to change indicator to M15, M5 and then M1 indicator is refreshed. Thanks... Harry.
you will see something special for every curreny pair in special time, banks make action.... if see trend today example: gbpjpy or gbpusd or other you will see that works.... for trend needed two point: time1,price1 is timestart and second point: time2,price2 where...
I am probably doing something wrong. I am trying to build an array, store it in a file, and read it back. However, it seems to work but the data read back is incorrect!! so obviously it does not work please see the attached code and the associated expert data. int AnalHandle = 0, Row = 1, Column =...
It is too small, I don't see the name of the indicators. either is it possible to increase the size of the icone of the terminal upper bar : Timeframe M1 M5 M15 and the other icone ?
I am interested in adding an ea to my mt4 platform but with the newer platforms the mql4 files will not automatically transform in to a ex4 file like it use to with the older mt4's. Can anyone help please?
Good day to all. First I would like to thank you all for the work you folks do... Thank you I am having a problem with custom indicators not showing on charts. They show in my list of indicators. But it does not matter which indicator i try to load on the charts, nothing shows. But It shows it is...
  Need Help on this? (12   1 2)
Hi! I have written EA using 2 strategy. first strategy i use 30 minutes and 2nd strategy i use 4hrs and for JPY pairs. I run EA with 30min tf. for second strategy i used BB indicator at 4hr timeframe and once per bar. I validate the below conditions once per bar. problom is EA check every 30 minute...
APeng
Is there a way of creating a permantent array? It should not be deleted when the indicator is reset (e.g changing timeframe, restart MT4,...). It is possible to create grafical objects and fit its text with the data but is there another way than this workaround? Thanks for any help!
Does anyone know if is possible to write data to an external table mdb Access? is it possible to create a dll? and how to create it?
PLEASE I NEED HELP. I HAVE TRIED TO TRADE FOREX FOR ABOUT ONE YEAR NOW. BUT A AJOR CHALLENGE I HAVE IS THAT I DO NOT KNOW WHEN TO BUY AND WHEN TO SELL. AS SOON AS I PLACE A BUY POSITION THE MARKET WILL START TO SELL. LIKEWISE IF I PLACE A SELL LATER, THE MARKET WILL START BUYING. PLEASE COULD...
  fix the EA (4)
i made EA by EA generator, based on thid indicator, but it wont make order, can someone please gime me a clue how to fix this problem?
Hi all I need some help fixing this dashboard indicator My objective is to display mainly for the 4H the indexes that are in the best configuration either in UP trend and below Stoch 20 and Down trend and above Stoch 80. the dashboard was created to display some occurrences of conditions in all the...
Hi together, I copied a code and modified it at several rows. When compiling it MT4 Editor shows an error. ErrorDescription is not defined:            m_Allow_Trading = false;           ErrorCode = GetLastError();           string ErrorDescIniLongMod = ErrorDescription(ErrorCode);           string...
  Close order next tick (13   1 2)
Hello, Have anyone any ideas for such problem: when an ea sent order and transaction was done (platform X) after next tick order closed (loss depends on next tick - less or more than spread). Next, ea sent order (the same direction) and everything was ok to the next transaction. Event starts again,...