Hi
I am testing my EA and want to scroll back along the chart to see what went wrong at certain point, but with each new tick the chart jumps back to the current date. I tried 'file/Open Offline' but the chart keeps jumping.
Any ideas?
Thanks
in MQL4 for MT4 Is it possible to have an indicator execute once every new bar/candle instead of every tick? If so does anybody know how?
Thanks.
I have a custom indicator where I would want to draw a 0 line when a certain condition is met. However, I cannot get 0 to draw. I have to use .001 to get close to 0. Is this a bug?
I'm having a problem where the visual representation of my EMA lines seem to be different then the calculated representation. Here's what I have:
- 3 EMA lines for different periods
- A custom indicator that goes to 1 when the fast EMA is greater than the mid EMA and the mid EMA is greater than...
Using the code below prints some sort of random number before the text "Looking ....". Print("Looking at H1 bar ", i, " time on bar local= ", TimeToStr(time), ", bar time dest= ", , TimeToStr(time-tzdiffsec)); There's an extra comma in the statement, the compiler doesn't give an error about it. If I
Hello!
I have a question for an Indicator. Is there a way to tell how many bar are visible on screen (or which time range). Background is that I want to display some data (text object) on some HLINEs on the left side of the screen.
Thanks!
Markus
My expert advisor 'may be' working! The Meta backtester is messed up every which way you try to use it as I just learned. I thought that if a program did not use buy and sell stops it might work right - WRONG! My present program only uses BUY-SELL-CLOSE and it failed again! I just got to learn...
Hello, Does anybody know how Normalize() or NormalizeDouble() is calculated? I want to know the internal calculation of this function. If you have a spare time, could you forward this question to MetaQuotes forum? They banned me last time. If possible, ask them how to rewrite the Normalize()...
I have used an expert advisor that can place orders at the beginning of a new bar, and that works fine with adding the time and prevtime limitation as described in the manual.
I am now trying to run an expert advisor that is able to send orders within a bar when my conditions are met. However, I...
MetaTrader 4 Mobile. Build 184.
1. Enabled advanced authorization mode support;
2. Added Russian interface;
3. Updated charts working;
4. Updated interaction between mobile terminal and trading server;
5. Updates based on users suggestions.
Hi Guys, I am trying to execute unmodified script "Trade" which is provided as sample with MT4 However, I am getting printed: Error=trade is not allowed. What am I doing wrong? -Stan
Hello,
I have created an object of type OBJ_TREND and it draws a line exactly where I want it. Each bar, I query ObjectGetValueByShift (myObjectName,1) to get the value of the line at the last closed bar.
When the slope of the trend line is fairly flat, it seems to give me the right results but...
Hello, To permit proper monitoring of incoming data from the WWW, can I or will I be able to uncheck the "Allow import of external experts" box? I tried unchecking this box, but when I attached an expert later on, the box keeps on having a tick in it, which is allowing external expert advisors to be
Hello,
I want to call the shift value for the bar when the order was opened. So if I opened a new order 10 minutes ago, I want to be able to call shift value (10) for 1 minute bars. This is the code I was using, but it does not work........
OrderSelect(1,SELECT_BY_POS);...
I used Zero Code to create an expert. There is a piece of code that verifies margin of 1000. If it is less than 1000 then trading stops. I have tryed to chage this to 100 but it does not work. When I try to back test with 1000 as my account size it stops making trades if the account goes...
1) When I have a custom indicator attached to a chart and changed inputs (not using the defaults) and compile the custom indicator the values on the chart switch back to the defaults.
2) Same situation as above. But when compiling the indicator all layouts for the graphs switch to lines with width...
MT4 Strategy tester, "Control Points" option doubles the time, producing many irregular trades. Producing impossible results according to the world time.
EURO/USD back test with control points option.
Impossible cases (doubles) produces like this two...
Is there a limit of idicators per chart?
I cant seem t put more than 6 indicators, the rest dont show up till i delete another indicator.
Thanks
Frank
From history- Slawa said:
"spread is constant and cannot be changed during backtesting".
What about this , when when broker quotes 10 pips spread and suddenly spread is changed to 5 pips. How can i accurately backtest for now, without changing spread from symbol properties. Is it soo hard to...
Hello, When a new 1-min OHLC candlestick opens for the first time (ie when seconds=0), we should see the open and close at the mid-points of the 2 pip spread, and the high and low being the ask and bid respectively. In other words, the new 1-min candlestick should have wicks on the ends (being a...
Hello,
Although indicators have access to multiple periods of data, I need to access bars with different periods. Is this possible with MQL 4?
Close[i-1] -> GetClose(PERIOD_H1, i-1)
Close[i-1] -> GetClose(PERIOD_M30, i-1)
Thanks
I have a thought: in history, in 30min chart, I draw an "Arrow_up" sign in the chart, standing for buy, and then draw a "stop sign", standing for close the order..... I want to build a indictator or something with MQL which automatically "reads" the prices of the 2 sign and calculates the difference...
Is it possible to remove Cancelled Orders from the Account History so that only actual trades are left.
If not any chance of this feature being added in next build..?
Thanks.........
Downloads Section is now fully functional. FxFisherman files, MetaTrader experts and indicators are organized in section for convenient access. You are encouraged to submit interesting files, profitable expert advisors, or updates. After moderated, they will be live in downloads section. Bear in...
hi
can i use extern var in scripts???
i can't use the function Symbol() in script to execute buy or sell order , what's wrong????
thanks
Hi all
does anybody know how to set the description property to line objects that are created programmatically?
I wrote the following code, but couldn't find how to set the 'description property' (the description that is shown upside the line when drawn in charts)
ObjectCreate("line1",...
hi,
i have problem with ArrMql4
MQl3:
Array: Table_value2[500,2](0);
MQL4 :
?
regards
Alex
Can somebody help me how to draw candles with special parameters.
Supose one attach Heiken Ashi on 15M chart but get data and draw bars
from example 4 bars back as follows:
Open[4],High[Highest(NULL,0,MODE_HIGH,4,4)],
Low[Lowest(NULL,0,MODE_LOW,4,4)],Close[1].How to program this?
Please help...
I have a custom indicator (macd) but i want to use the extern int function..
Is it posible to use it like this extern int TimeFrame=1440; what i want is to monitor that timeframe on any timeframe on for example 60 min
Jannik
Hello everyone, Well today I just finished my $5k fund. I'm about to open a live forex account Now heres where I need your help/advice on this, everybody, I have the CCI system running, backtested manually with a new way to use it and I am LOVING it, the biggest drawdown I've received is 7 pips.....

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.