Expert Advisors and Automated Trading - page 371

  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?
  indicator EA  (2)
I copied an EA based on the RSI indicator that is optimized automatically. you can add the indicator window so that the setting values are updated each time you update the values of EA?
I'm trying to convert the amount of money into lotsize to buy or sell. let's say account balance is: $1000 Lotsize risk percent is: 20 the formula I used below return the value of $20. How do I convert that into lot size? Here's the code I'm working on. What am I missing? double...
I found this iFibonacci indicator https://www.mql5.com/en/code/14393 Does anyone have any idea on how to use this iFibonacci code in an EA? Is it possible to call upon iFibonacci like iLow, iHigh, codes in an EA? Or, is it in development for future release of MT4?
  Kindly help.  (2)
My EA opens very many trades but closes none. Could anyone tweak the code so that there is only one open trade at a time.Thanks guys
  MQL Container  (2)
Hello MQL4/5 Community, I have a C++ Python backround and I am working recently on an MQL4 EA. First thing I realised that there are basicly no containers. No Maps/Vector/Lists... (if I am wrong please correct me) So I was wondering since everybody will already have created custom containers: Why...
Hello, I was writing a simple script which its job is to send market data to external program but I have an issue. I don't know how to access Last Price, Ask price and Bid price in script How can I solve this?
I am trying to get the EA Elliot Wave working, but it doesn't go easily. I found out that the main problem must be in the Rules Functions file, especially this sentence: //+------------------------------------------------------------------+ //| The WaveRules function...
  CoreFPS for MT4?  (5)
Hi, let me begin by saying I am from the USA. I backtested the CoreFPS EA, and got great results. I was very happy, no all I had to do was find a good broker. Easy, right? Wrong. None, and I mean NONE of the USA regulated brokers use MT5, which CoreFPS is made for. Is there any way I can buy the EA...
Hi, I wanna write something to a textfile everytime a new pass is done while optimization-process. The question is, how can I recognize a new pass ? Is the Start() or Init()-Function run once at every new pass ? Thanks, Swen
  iBearsPower  (1)
Does anyone know what is the code to calculate the median number between the highest value and lowest value of iBearsPower ? For example: iBearsPower highest value is: 50 iBearsPower lowest value is: 10 Median value is: (50+10) / 2 = 30 I want to know what the mql4 code for that.
  swaps  (3)
Can anyone tell me if swaps are calculated in when performing a backtest with a EA? I would guess yes with the current swap the is when testing? Just want to double check, thanks! *Please source your info*
  EA Crossover's  (1)
Hi Guys I have notice that the MA's crossover does not happen the same time as a stochastic and that the EA I am looking for or going to get created, which would be a better buy or sell signal MA or Stochastic crossover? Can I base the trade entry on a MA and exit on the Stochastic? What would...
Hi Everyone, Apologies for the slightly off topic subject here, but was hoping someone on the forum may have experience in HTML coding and be able to help me with an issue I'm having sending mail notifications from my EA. (I couldn't find an off topic section). I have an EA that send me email...
Is there any way I can reference a function in the EA from my custom library, since there are multiple functions that are customer related functions so must be in EA, but are called in specific places in my code in library no matter what the job? For instance, I have OnTime function, and inside that...