hello,
I am stuck in my attempts to set on the charts symbols instead of execute orders while backtesting. Can someone help with a code snippet that is supposed to draw thumbs up for example when a condition is met?
When I replace
SetOrder(OP_SELLLIMIT,Lots,v1,3,v1+StopLoss*Point...
I havent seen this before so I am asking it here, can arrows be added to EA for orders just like we use them in the indicators?
Does anyone have an example?
Thanks
EK
i write a simple expert adviser "testTigger",like this //+------------------------------------------------------------------+//| testTrigger.mq4 |//| qiuyg |//|...
Hi
Did anybody use iFractals in an expert yet ? ( val = iFractals(NULL, 0, MODE_UPPER,0); )
i can not get any value back form it , only return 0 .
Can someone please explain the IndicatorCounted() function to me in plain english? I have read the limited documentation, but cannot figure it out.
Does it simply count the numbers of bars since the last tick? What is the difference between it and Bars? How is it used in init() and in start()?
I...
Hello,
I have just another question:
what should the command ShowDebugWindow(bool) do. I cannot find it in documentation and if I put it in my advisor, nothing special happens.
Tried to set true and false.
with regards,
cori
I've got an optimization I'd like to run, but the 10,737,341,824 combinations want to take 697,682 hours to complete. There's a very good chance, I'll be dead by then. However, is there any way the processing can be distributed amongst 1,000 computers? If there is, I could complete this project in
Hello, I encountered a Problem using input variables in an advisor. In the advisor, variables defines as extern are shown in the inputs tab of the advisor. The input field is defined with a standard value which could be entered but it's not a must. When I set the value in the inputs tab it is
I know how Breakpoints work in other Programming languages, but it seems I am missing here something.
If I put for example a breakpoint here
if (ActualTime == 0) { // here would be a breakpoint after I pressed F9 }
then I would expect the script to stop there. But it does...
I've got a P850 laptop that I don't use much, and I'd like to run 100-hour MT4 optimizations on it.
The problem is that MT4 runs the CPU at 100% and after about 5 hours, the system overheats and reboots itself.
Does anyone know of a way to force MT4 to run at 50% CPU utilization? Is it possible?
In the MetaTraderAPIExample2 project, I see several instanced of the following:
SendOrderInfo soi; soi.volume = m_nLots; soi.cmd = cmd; if(g_pSecs[m_iSec].indirect == FALSE) soi.price = (cmd == OP_BUY ? m_fAsk : m_fBid); else soi.price = (cmd == OP_BUY ? m_fBid : m_fAsk);
Can...
Hey people, just wondering, in your 'MarketWatch', there is a clock. Do the seconds tick smoothly? Mine is really jerky and it goes from 13:14:22 to 13:14:42 in a few secs sometimes.
thanks
Trying to delete an object inside the deinit() function of expert advisor hangs and force metatrader to shutdown the expert by timeout. MT4 v177 (updated) //+------------------------------------------------------------------+//| JustTesting.mq4...
Wonder if someone can help on that. To draw a specific coloured
trendline in a chart (preferably horizontal), and when price is
touching this trendline to hv an alert.
I know what yu will say. i can draw a trendline and then to put a
price alert. Yes but same takes too long time for many pairs,...
My version does not draw in the 0.786 Fib. Line.
Why is that?
When I apply an expert to a chart I don't see anthing on the chart
Matt
Does any body want to build expert advisor here? I could help...:-D I have development experinces on building automated trading system based on expert advisors, e-signal API and IB TWS api. contact me at: steve_zhang8@yahoo.com. Low price high quality guarantee
I am trying to modify an existing MQL program to include a buy and sell conditon based upon the RSI levels > 25 and < 75. When I try to set it up under the Calculate indicators' value in the program the rsi indicator setup asks for 2 time periods: rsi1_0 = iRSIEx(5,10,0,PRICE_CLOSE,0). The RSI(5) is...
hi,
i have problem mit my expert and BuyStop and SellStop Order
BuyStop open and immediately Delete :(
SellStop open and immediately Delete :(
here my Expert code :
extern double Lots = 0.1;extern double StopLoss = 34;extern double TakeProfit =...
I write a advisor program based on two-EMA-Crossing, but it can not work. The program can not give any signals and open any positions. There are some wrong with it , but I dont know what the problem is. Please help me check it, thanks! int start() { double mapre1,mapre2,macur1,macur2; int
In ColdFusion and PHP (other computer languages), I'm able to evaluate a string, but in MT4, it seems I cannot. Here's an example in MT4 of what I want to do:
string longsql;
longsql = " (a<1) && (b>2) ";
if (longsql) {
// buy it!
}
I'm getting these error messages:
'longsql' - compare...
MetaTrader 4. Build 177.
1. Added checkbox for enabling optimization parameters;
2. Work of initialization and deinitialization functions is limited by 2.5 seconds;
3. Added the features of inputting the sender and recipient addresses in 'Email' tab of terminal properties;
4. Optimized...
how to use custom indicator in script program,
have i had to include something?
help, thanks
I started fooling around with this code tonight in an effort to reduce mutliple orders going through at the same time when backtesting and to fix the problem where it keeps ordering stuff at an old price and selling at a newer price.
This seems to do a good job slowing down the order flow and is...
Hi,
I've been unable to get email to work w/ my gmail account.
I keep getting : Mail:'Test messasge' failed
Not a very helpful message...
I'm pretty sure I've got the smtp server info right because if I change that
I get : Mail: error connecting to xxx
Can anyone help me out here...
Im using the MetaTrader4,Buil 177 But I have the problem with the Candlesticks, When I press the candlesticks its not working with some peirs, and working with some other pairs ! Anyone knows why this happend? I remove the program and installed it again, but same problem
Does anyone have an Idea how I can modify the ZigZag inidcator to use the number of pips between the Highs and Lows to determine which highs and lows are used to draw the ZigZag?
Thank You for your Time
EK
Is there a way to create a trend line that doesnt extend past the second time/price parameter?
Thanks
EK
Is it correct that the backtesting will not show results of losing strategies? If this is so, is there a way I can see the results of all the runs, whether winning or losing? In the expert properties there is an Optimisation tab but ffrankly, i just dont understand it. thanks hugues
I'm currently working on an expert advisor, and I'm having some problems trying to figure out how to break the following down into programming concepts. I want the expert advisor to be able to notice when the market is moving sideways, and not trade during that. It uses two moving averages, RSI

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.