Expert Advisors and Automated Trading - page 430

[Deleted]
Can anyone tell me what could be causing these errors? StopLevels level is 20 pips, all trades should pass. Handicaps and off-quotes are annoying :)
hello i want to take n tick and calculate the simple ma :double tk[], matk[]; /// buffer tick int dimtk = maperiod+5; //--------------void tick(){contotick++; //contotick =0 in the init functionshifttick();}//---------------void shifttick() // shiftick{ int setdim=dimtk+1; // add 1 memory...
I have been trying to run this code as an EA but it keeps getting removed from the "journal". I was wondering whether someone can review the code and help fix it as i do not know what the problem is. When running in strategy tester it does say "invalid pointer access" 508,19 and then its not...
  EA  (4)
Comments that do not relate to the "Forex Market Update", have been moved into this topic.
I once saw something that I believe was an expert, that when executed on strategy tester, with visualization enabled, you could buy and sell manually (it shows some buttons for you to indicate the order you want to send in the strategy tester visualization window). It is a way to practice using...
Hi, Need some help on history logic. How do i check if i have enough history to test? say if my history starts from 01.01.2009, but EA needs at least 31.12.2008 to go without error. i know i can always download the history for 31.12.2008 and start testing from 01.01.2009, but i think it should be
I am seeking brokers having low spread and commissions that can be used for MQL5 MT4 platform . Can you recommend or share your ideas. . . ?
Hi, Is there any way to get the time and sales data in MT5? I can't seem to find any documentation on it. Cheers
Is this true for everyone else or did I mess up my mt5 by connecting to other brokers?
Hello, Problem description I registered and paid for the new virtual server service offered through our MT5 account. It is running some EA's. When I log onto my desktop, MT4 is asking me to register a virtual server . In other words it thinks I don't have one but I already have one. The money...
Hi I have recently started trading in signals on meta trader 4. From what I read, the volume is set using "Use no more than...." I assume you need a lot of capital before you can set the volume more than 0.01 Has anyone worked out a simple fix to set the volume of the signal trade other than...
And so i have coded an EA, now i have a question about activation. Do i need to code the activation into my EA? i can't find any resource pointing to it. And also about the demo, does "IsDemo()" or "IsTesting()" needed?
[Deleted]
datetime ends=yesterday;
Hello MQL5 community, I have started developing my own MT4 EAs in 2015 and today I just realized a major MT4 problem. The problem can be harmless in normal conditions, but when slippage occurs on entries, it might be very annoying actually. Many times I get slippage on activation of pending...
  ChartNavigate problem  (13   1 2)
Hi, first I apologize if this is in the wrong part of the forum, I saw no technical problems or developer section. I have a problem with ChartNavigate() function in MQL5. I'm working on a couple of projects, some indicators and EAs; and it has come to my attention that ChartNavigate will jump...
Hello to everyone. I'm experiencing an issue on EA made by myself that works on Renko (using offline charts). Inside the routine OnInit() I've calculated PipValue of the pair in this way: double PipValue; int OnInit() { double LotSize = 1; PipValue =(((MarketInfo(Symbol()...
Hi, I'm having a few issues with the SymbolSelect() function which I hope you can help me with. From my understanding of things, it's not possible to get any information on a symbol that's not the chart symbol, unless that symbol has been added to the MarketWatch window (is this correct? Please let...
Is there a way to detect if/when (One Click Trading Panel) is on. OnChartEvent event does not fire clicks over it. Suppose an alternative would be to take a screenshot and visually process the corner. However is there some function I didn't find or a c++ dll call to do the trick?
  SymbolSelect()  (6)
How do i exactly use symbolselect function?I used it this way it doesn't work String pair="EURUSD"; SymbolSelect(Pair,true); Alert (symbol()); i use alert to see if the symbol is selected but i see it always alerts usdchf by default, Please me with, write the exactly code which select EURUSD...
I have some EA. In this EA is several different conditions to open and few different conditions for close trade. Each condition for open has a different string for Comment in order. ... This I can. ======= And now ... When EA close the opened order on the basis one of the specific conditions -...
Does anyone know of any free EA with source code that will open trade the opposite direction if it is wrong on a trade. This condition is true if price moved against the original (buy or sell) order by 20 pips. Also, while it open trade in opposite direction, it must pay attention to the averaging...
HI Guys I am new to MT4 and I am having problems. I click on Modify Expert and nothing happening? Can you run a EA with no money in your account? What suppose to happen when you run the EA? does it show you were you enter the trade and exist the trade? Cheers Andrew
Hey Guys, From the teachings in this forum and personal excersice i have discovered how to build a grid indicator, But there is a little problem Im having : building the indicator as a single variable it worked correctely but when i tried to convert each grid line into individual element...
Hi there! Sry if the subject doesn't quite tickle the point of my question, maybe bad wording within this post and if my question already got answered elsewhere. I've searched for it. Problem: Let's say your expert advisor works with some kind of related parameters such as two Moving Averages and...
[Deleted]
Hello there, I share with you my two first EAs tought for learning purposes! Any feedback from experts is welcome. How would you improve them? The first one is RSIExpectator, the very simple EA that works exclusively on RSI. The results calculated by this robot give an idea of the effectiveness of...
[Deleted]
  Coding question  (4)
Can an EA read notifications for indicators? If yes, how? Regards
In the EA I am testing, during the compilation I observe two warning and the information gave by the compilator is: need to check the ordesend   I am new in MQL5 programmation sorry and If somebody can help me I will really appreciate.    Thnks a lot by advance   Jean Philippe 
  MetaTrader 4 API  (3)
can someone kindly tell me how to use mt4 API ? my application is to develop my own web trading terminal, so I need to get data from meta trader server and display data in my web interface like mt4 PC client. in here (http://www.metatrader4.com/en/brokers/api) says about mt4 API, but I can't...
I am going to build a trading strategy based on the Heiken Ashi. I need to identify three consecutive red or white bars. i would like someone can put the MQL4 code here
Let's say if an EA open a buy order, the market move in the wrong direction. I want the EA to close that order and open in the opposite direction. Does anyone have a template for Closing trade and opening trade in the opposite direction?