[Deleted]
OrderSend(Symbol(),OP_SELLSTOP,LotSize,Close[1]-BrStopLevel,Slippage,ssl,0,NULL,MagicNumber,Red);Is it legit or i must specify price creteria in Ask or Bid?
[Deleted]
Hi all, I don't have knowledge in MQL4 programation but I need a basic EA to backtest my strategy. My strategy is very simple : On the DAX, I buy or sell the breakout of the undred lines. For example, DAX is 8240pts, I buy 8300 target 8315 SL 3285 and I sell 8200, target 8185 SL 8215. If the price...
[Deleted]
Hi! Gives me "unbalanced left parenthesis..." cant find the problem..please advice. void KijunCrossExit(){ for(int i=OrdersTotal()-1;i>=0;i--) { if(OrderSelect(i,SELECT_BY_POS...
Please I need help on this for my EA: double RSI_Prev = iRSI(NULL,0,6,PRICE_CLOSE,2); double RSI_Curr = iRSI(NULL,0,6,PRICE_CLOSE,1); double MA_RSI2 = iMAOnArray(RSI_Prev,0,6,MODE_LWMA,RSI_Prev,2); double MA_RSI1 = iMAOnArray(RSI_Curr,0,6,MODE_LWMA,RSI_Curr,1); the comments on tester says:...
I've searched and this issue has been addressed many times. but I have been unable to find the solution. I feel that there may be a glaringly obvious mistake in my code that I just can't see. This is part of the code NormalizeDouble(SL,5); NormalizeDouble(OSL,5); if(SL<OSL)// && SL !=0 &&...
I can found high/low of no.of candles. here: High[iHighest(NULL,0,MODE_HIGH,4,1)];Low[iLowest(NULL,0,MODE_LOW,4,1)]; I want to find average high/low values for speciafied candles.is there any mt4 functions availble? or i use now:...
Hi, there, I am using Forex.com MT4 platform. When I used the strategy tester to run a backtest. I added the Ask price to show on the chart. I noticed the big gap between the Bid and Ask price - the spread is about 6 pips for EURUSD and AUDUSD (1 min and 5 min charts). I have not looked at...
[Deleted]
Hi, I cant find Projection Oscillator indicator for MT4. I found this description::::: (im not a programmer so i cant figure this out, maybe someone could create this indicator for MT4 users?) i think many ppl would find it useful to use. Thank you....
[Deleted]
Hello I need help. Im trying to draw fibonacci with my custom levels (0.0, 50.0, 100, 150.0, 200.0) and it does draw only the first (zero level) line. I tried many things. Could anyone help? Here's the extract from the code: void FiboCreate(color clr, datetime t1, double p1, datetime t2, double...
When my EA closes my trades on live trading mode, I get FIFO violation messages because my older orders are not being closed first. Is there a way to close all open orders in one trade instead of one at a time? It seems time consuming when only one order is closed at a time. I would like to be able...
Hi, as I placed a buy limit order I got a message that the order parameters are not valid. I need help to understand how the parameters should be valid. I have attached a file presenting the whole information.
On the MetaTrader 4 platform . there are no m1 datas for program testing.
Hello, i like to set a "-5" into an moving average shift. extern int MA1_Shift=0; it works with normal numbers and "-1" but not with "-5". On "-5" no trades are done. First i thought, that MQL doesn´t support "- numbers" but why does "-1" work? Any advice? Thanks
Hi everyone, I use Metatrader 4 for my trading and some time ago this year, I have experienced a problem where on my real account, the server time and prices only updates every 10 minutes, and this issue persisted for around 3 hours. It doesn't show that there is "No connection" on my Metatrader 4...
hi, im having a problem with my EA using iSAR. For example my code is - when iSAR dot is down, it will trigger ordersend() buy and if the dot is up above the candle it will open for sell. My problem is after sometimes lets say the dot is up above the candle, it suppose to trigger sell, when...
[Deleted]
Hi i am making an expert adviser in which i need to calculate wick size (upper and lower both) of last candle/bar . How can i calculate these wick sizes? Thanks
Please help me, I would like an alert every time there is an RSI (14) Divergence on the 1hr and 4hr chart for all currency pairs. Can anyone help me out please? Thanks.
[Deleted]
hello :) sorry for my terrible english i try to make an ea but i have problems with icustom i am using supertrend https://www.mql5.com/en/code/8268 variables Nbr_Periods and Multiplier and nonlagdot https://www.mql5.com/en/code/8026 variables Price, Length, Displace, Filter, Color, ColorBarBack,...
A continuation of DrawDown's 'Complex Arbitration. "Complex Arbitrage." Unfortunately, DrawDown doesn't want to discuss this topic any more, although it seems to me after modifying his tactics it is possible to earn on bread and butter, and when trading several pairs at a time - enough for caviar
[Deleted]
Hello, i am searching for a code example that can give me the last closed Order profit, wich have beend close with a loose. I have here a own code example, but i am not sure if this will work always right, for example i dont know if that work when somebody does changes the order history from oldest...
Good Day. I'm working on an EA that uses arrays to store 3 trades from 3 symbols. In the demo account it works great but when i tried it on a real account, the array seems not working. I use the array to store the ticket number and the starting profit to which from time to time a certain function...
I have just come across a seriously weird issue. If I delete a pending order, 9 times out of 10 I can't do an OrderSelect on the same ticket number afterwards. I'm really puzzled why selecting an existing (yet closed) ticket number would fail??? Don't ask me why I'm selecting the order again, it's a...
Hello, I´m trying to add a routine to an EA to avoid open consecutive orders of the same type. The idea here is, if price is above such a MA it BUY, but when that initial order is closed I need to avoid that the EA opens a new Buy order even if the price still above the MA, because the next order...
[Deleted]
I just bought a new phone Galaxy Mega, while Installation is Finish, However it coming out "Device is not supported." How Can Fixed It?? Anyone face this issue??
Hi all, I write some codes on my EA to close all my order after 12:00 EST. But when i backtest my EA, i get message error below. EURUSD,M5: invalid ticket for OrderClose function EURUSD,M5: invalid ticket for OrderClose function Please help me to fix this error . Thank you, Bizu void closeall()...
Hi MQL Community, i need the format of history/{BrokerName}/ticks file format. I have checked the forum but could not find it. Can someone share this information with me please? thank you taskin
[Deleted]
I have following code that is giving different result with two different for loops 1. for (i=0, i<10,i++); 2. for (i=10,i>0,i--); sample code is if(counted_bars<0) return(-1); if(counted_bars>0) counted_bars--; limit=Bars-counted_bars; for(int i=0; i<limit; i++) { ... .... .... if((a1>0) &&...
Hi all, I'm running an ea on a Demo account and receive the follow message on Journal Tab; Signal - not found update signal - 3374 in base do you know what is the meaning of it ? Thank you in advance Luis
Hi Everyone, My idea is that: If there is a Down-bar, I will track the first Up-bar that has Close higher than the Open of the Down-bar. Also, the first Up-bar must be within 5 bars from the Down-bar. Could you please help me debug my code below? Thank you for your help. HHC #property copyright...
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.