Hallo, i tried to get the values of the REI by using iCustom(). But i dont get anything but Zero. double val=iCustom(NULL,0,"RangeExpansionIndex",1,1,0); What is wrong and can anyone help me? Best Regards Alex
Hi, My EA always needs to check the last close trade but whenever mt4 is closed and restarted it does not read the last trade. Any ideas how I can code my EA to check the last trades result even when the terminal is restarted? double profit = 0 ; datetime lastCloseTime = 0 ; int cnt =
Hi guys, I would like to know if it is possible to detect chart scroll. Whenever somebody scrolls right/left I would like to redraw my indicator. Any ideas how to do it? Thank you for reply!
I'm looking into developing an EA to trade the DAX or GER30, but when I attempt to run one of my more basic strategies on the DAX in the strategy tester, I find that I can't get it to download any Metaquotes data. I believe its using only the data provided by the broker FXCM. So can anyone confirm...
Hi, I can't figure out how to get the indicator to consider all the candles as opposed to only the ones which have come since i have opened the chart. I've got pretty simple code for example's sake, just working with the close prices: Any help really appreciated. Thanks void OnTick() {//---...
I wrote this to check if the close price of the last 150 bars were above the moving averege of the last 150 bars. bool ma_buy_2() { int i = 1; int n = 1; double MA_Array[]; double Candle_Array[]; for(i=1; i<150; i++) MA_Array[i] = iMA(Symbol(), Period(), 200, 0, 0, 0, i); for(n=1; n<150; n++)...
When trying to use the function TesterWithdrawal ( https://www.mql5.com/en/docs/common/testerwithdrawal ) in mql4 I receive the error: "CExpertExecutor::TesterWithdrawal is not implemented yet" I found of this funciont in MQL4 Reference: MQL4 Reference / Common Functions / TesterWithdrawal...
In an Expert Advisor code, I would like to know on which bar of a chart the user clicked. From the example and documentation of OnChartEvent() function, a left click of mouse can be captured as a position (x, y). Is there a way to get the bar time/number on which the user left clicked?
I would like to use these functions, however there is no help i.e. descriptions which probably means that these functions are not implemented.I remember that i saw some help in MQL5 regarding this, but now i cannot even find that.Anybody knows more?
Dear Metaquotes i use this code to test arraybsearch i feel the result is incorrect int OnInit() { //--- ArrayResize(array,10); array[0]=64; array[1]=128; array[2]=52; array[3]=78; array[4]=30; array[5]=21; array[6]=88; array[7]=977; array[8]=2110; array[9]=887;...
The Search did not provide me with any result regarding the subject... The latest version of MT4 for Windows Mobile targets Win. Mob ver. 6.5, not higher. Today's devices using 7.5-8 (!!!) Is there any hope for correct version of MT4 for featured Win. Mob. devices of 21 Century? (I'm not Android...
Hi, i have made an observation. Actually i am doing this observation for 2-3 years on same broker. I thought maybe i am wrong and evaluate things wrong but i am now read to clarify this. I would like to hear opinions from community please. Problem: There is price difference between...
real headach here Built in indicator like stochastic can be displayed like belowfor(x=0;x<6;x++) { if((iStochastic(NULL,TF[x],PercentK,PercentD,Slowing,MODE_SMA,0,MODE_MAIN,0)) > (iStochastic(NULL,TF[x],PercentK,PercentD,Slowing,MODE_SMA,0,MODE_SIGNAL...
Hi all, I try to code an EA that handle with d'alembert progression (for all that don´t know progression d'alembert: http://www.bettingexpert.com/casino/roulette/strategy/d%E2%80%99alembert-system ) The plan is to start with 0.01 lots and SL 13 pips / TP 14 pips. Each time a trade close with a loss,...
Hi, If I have 2 mt4 terminal instances running on 2 different computer with 2 different locations, is that a normal behavior that if I submit an order at a computer, it will be 'discovered' on the second computer 30-40 seconds later? Is there anything extra from metatrader (or the broker) involved...
With the new builds for MT4, it appears as though the importing of historical data to the History Center is no longer allowed thereby restricting back tests to the use of inadequate data. What are various solutions to dealing with the problem of inadequate historical data in MT4
Hello, i am searching for infos how i can codeing that Metatrader does trade on a binary options broker plattform. When i search in google i just find sites where people want to sell somethink but no tutorial/infos how to codeing it.
I'm trying to modify an order, but I'm getting error 130. I already checked for STOP LEVEL and it is 0 (I'm using Alpari). This is my code: int digits= MarketInfo(Symbol(),MODE_DIGITS);if(digits == 2|| digits == 3) pipdigits = 0.01;else if(digits==4 || digits==5) pipdigits=0.0001;selltakeprofit =...
Hello, MetaEditor. List of functions Alt + M It's a shame that the functions are displayed in alphabetical order, not in the order choose in the source code.
Hi, I think most of you have experienced that the Metatrader causes problems when you plot a trendline on a specific timeframe and switch to another one. Today I noticed a very large difference in the GBPCHF. Attached you see a weekly and a daily chart. The blue trendline fits perfect on the wicks...
the function below only calculates the dollar amount of the last open trade. I am looking to calculate the dollar amount of all open trades for the currency the EA is on. I can not find what I am doing wrong. can I get some help? thanks in advance. double LastBuyProfit() { for(int...
Is this even possible? Im planning something like this: void OnStart() { //--- ChartOpen("EURUSD-Pro", 15); } //+------------------------------------------------------------------+ But if there are no charts open I have open one first. Greetings BeLikewater