Hi, I don't know how to install Pivot Indicator for MetaTraer4, anybody can help me with that? this is what I can see in C:/Program Files/ FxPro-MetaTrader4: Thanks
[Deleted]
I have this simple indicator which just adds two objects to the chart to show the spread and margin for currency pair. It is all fine when first added in (i.e. objects display correctly and are removed when indicator is removed), but when MT4 is restarted two things happen: 1) only one of the...
//----delete objects // { // for(int z=ObjectsTotal()-1; z>20; z--) { // ObjectDelete(ObjectName(z)); // } // Comment(""); // return(0); // } //----delete objects Hi everyone, I have been searching with no luck for a way to clear a chart from "x" bars back. So for example any objects that
I have a EA that is profitable up to 95%. The problem is that in real (demo) work is not working. He entered the trade late, took a higher price (or lower, depending on whether buying or selling) than in the tester. Perhaps the problem is that my ping is 110 ms? Maybe tester does not work well - how
[Deleted]
Hey there, I'm currently working on an expert advisor that uses fibonacci levels. This way I can backtest those levels. I'm using an indicator by deVries (included below) to try and get the last high and low of the ZigZag indicator. This is what I'm trying... However, it doesn't work. Could anybody...
[Deleted]
Hi, I am trying to build an indicator and I need an MA on a Buffer I am calculating. For this reason I used the iMAOnArray function. Buffer's field of existence is [0;1] and it also usually never comes above .5. When trying to get this MA set as: double temp = 0.0; temp = iMAOnArray(ExtUpProb...
I have shown below 2 different codes that each do the same task of moving my stop to breakeven after price has gained profit of 200pts (at 0.1 lots). While the first code works like I want without any problems, I cant see why the second code although appears to work correctly in the MT4 journal it
[Deleted]
Hi Community, I need help on how to code the "playsound" multiple time. (ie 10 times repeating) once the condition met. Below are the original coding. void SendAlert(string dir) { string per = TimeframeToString(Period()); if (UseAlerts) { Alert(dir + " Pinbar on ", Symbol(), " @...
First apologize for my bad English.I am new in MQL4 programming and also in the forum and searched and found nothing like what I want. First, my code sends two orders , in opposite directions, and I need a code to open a new order so that one of them is closed. The order must always be opposed to...
{ if (DB_Profit>=DB_Target);DBFloor=DB_Target;DB_Target=DB_Target*DB_Target_Factor; if (DB_Profit>=DB_Target); else if (DB_Profit<DBFloor); } j=OrdersTotal()-1; for (i=j;i>=0;i--) { OrderSelect(i,SELECT_BY_POS,MODE_TRADES); RefreshRates(); if(OrderMagicNumber()==DB_Magic...
[Deleted]
Hello, I need to calculate EMA in excel for backtesting. The formula for MT4 help topics is: EMA = (CLOSE(i) * P) + (EMA(i - 1) * (100 - P)) Where: CLOSE(i) — the price of the current period closure; EMA(i-1) — Exponentially Moving Average of the previous period closure; P — the percentage of...
[Deleted]
Hello I need help to calculate Low of previous bar for multi symbol through one EA. I was using ilow() function. I did not get correct update low of previous bar.
[Deleted]
Dear Sir all , please answer my question Is there an option in MT4 for automatic trade or if there any robot can do this? for example , when i want to open a deal automatically of 1 lot of EURUSD ( sell or buy) at time 08:00 am , this means that when time became 08:00 am, my deal must be open
Hello, I have been trying to integrate my calculation on eurusd chart. However, I could not find where I am mistaken. Would you help me out with my codes at below ? Or what do you suggest to have result as a line on EURUSD chart ? Thanks. // The code is being used for educational purpose only...
No matter my EA uses iMA or iCustom indicators, the indicators are not displayed on the chart where my EA is running. But my EA exactly works with those indicators. It means indicators are working for the EA, but not displayed. Do you know how to make the indicators displayed? Thanks.
[Deleted]
Hi, Is it possible to get an alert when any of the symbols in MT4 terminal crosses the 30 level RSI indicator and how?
Hello, I have been searching and reading documents to find a way how to draw a line on eurusd chart and the line , which I calculated by using other pairs prices, is the result of my calculation. Could anyone help me how to add this result on eurusd chart as a line ? Thanks.
I know what iHighest/iLowest do but have found that these are quite often hit by spikes in the price. Is there an easy way to ignore the highest and/or lowest and get the second or even third highest or lowest.
Hello all, I've been developing and trading with systems based mostly on candlesticks. Because I am a programmer, I start coding a Metatrader4 program to help me. I believe it can help more people as the program is very configurable and extensible. Is is still under development and needs testing...
Hello all, Facing a problem when coding my simple moving average EA in mql4, just lacking mql4 knowledge really. How do I make it stop the trade when going 30 pips below/above MA, this is to protect from bad trades or negative SMA as I call it (see image). I don't want to use a stop loss. Currently...
The problems noted at https://forum.mql4.com/68999 and https://forum.mql4.com/67275 are still the same - if not worse. If this one isn't corrected, it will act as an incentive to users to open multiple mt4 accounts simply in order not to have to switch to different chart timeframes.
I am having a custom indicator which accepts 3 extern variables as input (1)Signal_Type, (2)Entry_DateTime & (3)Entry_Price. With the help of these inputs indicator plots some objects on the chart as depicted in image below. This custom indicator allows user to edit these extern variables in...
Hello, I need your help. What I want from the EA is that as the Margins arrive to a specific bottom it will stop adding new trades and stop executing. How to do it, Please.
Hi all, I am preparing an EA which uses Partial Close in its logic inside I can save remaining order after partial close with magic number control But now, I have different problem in OrderOpenTime, remaining orders ( generating after partial close ) have different OrderOpenTime() than original...
I am new to mql4 coding. This is my first indicator using arrays and I'm having problems with the object delete function, its not removing indicator after removing from the chart? I have looked everywhere for a solution I can't see how this is not working, does anyone know what needs changing below?...
I've noticed some codes Sleep at the start of a code then Refreshes to update values before continuing with the rest. Is it not better to Sleep at the end of the code? Then RefreshRates is not required? edit: should probably specify purpose: to make sure the code only runs once per second for...
Hi i m beginner so i have some question about EA programming. I want get value from indicator (MA20) and take it into my sql program ,but i dont know way to take its. Advise for me , Thank you
Is there any standard function to get total closed orders for current day? eg: must count only closed orders count day by day! if there is no standard function available please give me a suggetion to get daily orders count?
/+------------------------------------------------------------------+ //| buyOrder.mq4 |//| David_kdcp |//| falavaspace.com...
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
If you do not have an account, please register
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.