Download MetaTrader 5

MQL4 and MetaTrader 4 - page 143

To post a new topic, please log in or register
Hi, long time I was not using MT4. Yesterday I released him and when starting the MT4 my PC froze. So I gave unistall it and I installed the new version. does not work. I tried to mount the MT5 well, but the same result. I tried Istal different versions, in different folders, even in the Virtual...
I am using below code to calculate lot size before opening order, but now I changed to ECN accout that has commission. Is it possible add commission to lot size calculation before order is open on a symbol? double lots    = AccountBalance()*(RiskPercent/100.0)/(StopLoss*pipValue);
What is migilior method :  1 ) Recognizing a long-term trend ( 1 hr and up)2 ) Recognize a short-term trend ( 1 hr in down)
Hi, please,    I use MT4 with pepperstone brooker When i launch a backtest with my real account on my laptop and the same backtest on demo account on another computer, i have not same results. i have not same data, is it the reason ? how can i have same data ? I always have to download them during...
Hi trying to transition to actual coding from modular interface - have managed to code long side OK, but have made a mistake somewhere with the sell function ... can anyone spot? Imagine it's a pretty simple/obvious mistake. I'm not getting any order send errors. Cheers. #define __STRATEGY_MAGIC...
Hi guys I am programming ea and now i have problem with settings stop loss and take profit. I want set them on the nearest pivot point from candle of which buy or sell was created. Thank you for your advices.
I want to declare an external integer variable for day and add it to a datetime variable, Is it possible? I need some code Like this, to get for example 10 days from an external variable an add it to my datetime variable. Should I first convert days to millisecond then add to datetime?  how can I do...
When an object is CREATED by an indicator, it doesn't trigger OnChartEvent(). But when an object in DELETED by an indicator, it does. #property strict#property indicator_chart_windowint OnInit()  {   ChartSetInteger(0,CHART_EVENT_OBJECT_CREATE,true);   ChartSetInteger(0,CHART_EVENT_OBJECT_DELETE...
I am a programmer in MQL4, i am still learning, i have some good indicators for 60 seconds Binary Options and would like to transform this signals into a EA (Robot) for Binary Options, i have no clue how to go arround this and i see no information in the internet. Do you use the  same language mql4...
How can i open a position with known dollar value? Let say i want to trade AUD/CAD or AAPL, or any other asset, and i want to open position which value is 100$. How can i do this in mql4? Thanks.
Hello, I should fix the arrow when the moving average crossed the fractal channel as written in code. The problem is that if you create another minimum on the first tick of the candle 0, the arrow is not present. How can I fix? Thank you if(iMA(NULL, PERIOD_CURRENT, MediaM_Periodo, 0, MODE_EMA,...
Hi, please, I just installed MT4 for Mac and i can not change speed in testing mode. Is there an issue ? it seems to work in very low speed, and certainy not at 32 . There is no cursor. Thanks for you future answers. 
Sorry English is not my native language,  i try to explain what i want to say as title, I think that is the data in Period_H4 don't have been updated (BUT PERIOD_M15 have updated), iMA(NULL,PERIOD_H4,13,8,MODE_EMA,PRICE_CLOSE,1) = > it should get the price of last candlestick (index 1)  In fact, it...
Hi I have seen If two object crossed with each other then the cross section get white or in other color. Is there any way to avoid that?   I don't want the white area, I want it to be full blue. How can I do that? One thing predicting object cross section are is not possible as its dynamic. Regards...
Hi. Why this simple code (attached) doesn't work with takeproft and stoploss below 7 pips?
hello, I have another question for further growth in programming. I have this script that I need to connect to my indicator, every sgnale / Arrow script run one scrennshot. After studying the script I always get errors like I could solve? Thank you all P.S.: sorry for my English and my poor...
Hi community, for my EA, I need a function that is able to show the market value of SP500 when it opens and when it closes from the previous day. Does something like this exists and if not, what I assume since I didn't find anything, has anyone of you an idea how to solve this? Best regards...
I need help programming an EA that buys (OP_BUYSTOP) when a candle hits lower band that simultaneously sells (OP_SELLSTOP) also. #1 CONDITION. sells when a candle hits upper band, and also opens a simultaneous order that buys. #2 CONDITION. THANKS ALOT. David.
Hello everyone, it is possible to obtain the moving average no repaint? By working with well-known moving average that in the historical shifts and is no longer true as I could solve?...
Hi, is there anyone who could tell me if is't possible, by coding, to modify the speed of the backtest ?   I'd like to decrease it during open position in order to see better, and increase it after. But with code, not with the cursor.
Hi all I have been trying to get an Ea to run on a Renko chart and have had no success. Even when I run a one line code -----Print("Got Started"); it does not work The same line of code will print to Experts log on a regular time frame chart. Leads me to think that Ea's will not work on Renko charts...
im having trouble finding the functions that allows me to report number of trades and profit the way i have these other varibles displaying      Comment(StringConcatenate("\nCopyright © 2015, Jasper\nViolentPips EA v1.0 is running.",                              "\nMomentum delta : ",c...
Hi, please, can you tell me if spread is always the same during a backtest or if it changes like in real ? in memory with archived data?
Hey, Is it possible to retrieve a Ray value of a drawn ray line in the past, Or do i have to calculate it myself (how?) Thanks   
HI, I know it has been discussed here. It was an indicator that looks quite interesting but is nothing but an ema. I remember there was a post that shows the original indicator and the ema and after some bars both show identical values (line). Doe anybody remember the name?
Hey all!  I recently started programming my very first EA. It may look a little confusing at first but i hope it is readable. Th reason for this post is that i have encountered a problem. It comes down to this. I want to execute a buy order once 3 requirement are met....
Hi, please, my brooker (pepperstone) tell me that price on chart is bid price and if i want i can add ask price. Is it possible to visualise medium price ? thanks for your answers. 
Hello guys, i am programming EA which has entry based on pivot points. For example condition that top wing of bullish candle touches pivots R1 or R2 or R3. ( i have already programed all highs lows etc. or values for pivot points that not my problem.)       (   ((high1>=R1_1 && close1<=R1_1) ||...
How do you make the " ex4 " used for a predetermined time " X " ?
New article Universal Expert Advisor: A Custom Trailing Stop (Part 6) has been published: The sixth part of the article about the universal Expert Advisor describes the use of the trailing stop feature. The article will guide you through how to create a custom trailing stop module using unified...