Hi .I want to write above programming .There is a problem but I cantfind it.Can I write an indicator within an expert ? I want Ma crossingindicator be in expert space.How can I do it?expert +indicator in onespace.
only when crossing happened Sell or Buy order do their work, notwhen fast MA be...
EA for HAMA Pad Indicator
Dear Friends,
Can anyone make EA for HAMA Pad indicator as per belowsettings:
Time frame: Any
Lot size auto increase depends on balance
Fix lot options
Trading time option (able to set trading time on current charttime)
Breakeven option
Stop loss
Take...
Hi,
I know how to get the profit of a position on the current symbol the EA is running on. But how to get the total profit for all the position opened by the EA ?
Thanks.
EDIT : Is there anyway to get notification only for answers received on the forum ?
I want to get the value of the best bid. EG:
if the best price of the best bid is 2000 and its volume is 5000, then I want to be able to get that 5000 value in a variable.
How can I do this?
I couldnt find anything in SymbolInfoDouble() function.
Please help.
Thanks
Hi, I would like to change the min/max price of a chart to see the trade level even after breakouts without changing the periodicity. But if I do that with the code sample below the tick volume disappears. If I do the same manually with the mouse on the vertical price scale it works. Is there any...
Hey there,
I got a little question, i am working with this indicator: MACD-2, here is a little screen:
I would like to know which is the current color, like:
if ( current_color == "green" ) { Print ( "It is green" );}elseif ( current_color == "red" ){ Print ( "It is red" );} else { Print...
Hey there, using this code snippet:
void OnTick() { MqlTick last_tick; if(SymbolInfoTick(Symbol(),last_tick)) { Print(last_tick.time,": Bid = ",last_tick.bid...
hello see title ... i try to modify (examples) controls .mq5 in my own directory (robotB) but i can't : compile errors i certainly forget an include but what ? thank's 'CPoint' - declaration without type Rect.mqh 37 4 'CPoint' - declaration without type Rect.mqh 39
Is candlestick indicator useful for an EA creation?
Do you have any experience with candlestick indicator
Hello all, weeks ago I had a C-programming training. Now I will start to learn MQL5. I read some tutorials but I don`t know how I can get the maximum and minimum of bars to copy them into an own array. Concretely I would like to create an array (e.g. double array_maximum[20]) and safe the maxima of...
hello! :-) I would like to automate my backtests, so they will run at night or on weekends Can I program it with MQL5? best regards
Hi,
Here I am trying to find out how many 0.1 (SYMBOL_VOLUME_MIN) lots are there in a position. I am using below given code to find it.
Only BUY-Instant orders are used here.
Lot Size is maintained as 0.1 while opening, adding and closing of the position.
Position Volume is working good...
hello ! my EA seed several same orders (generated by onTick() ) although my first lines are : if (PositionSelect(_SYMBOL)==true){ Modify_Order();}else{ Send__Order();} i think it's a problem of waiting time on the queue server. may i treat my first order in OntradeTransaction event? an other...
Hi, Right now I am back-testing my EA. In EURUSD I find a gap or data-missing. I have attached the screenshot. Is there any way to will it up? or Will that gap disturb while back-testing? If I want to test from 2004 means what should I do? I am using MQL5 .com's demo. With Regards, Krishna
I want to be able to run an external app like : notepad.exe using ShellExecuteW() and send an argument like : c:\sample.txt to that.
I mean:
notepad.exe c:\sample.txt
How can I send arguments to that?
I use:
#import "shell32.dll"
and :
int ShellExecuteW(int hWnd,int lpVerb,string lpFile...
every time my computer hangs strategies instead of resuming open positions just start all over again.
Is it possible to make them resume work or to program EA in such way so it would resume the activity instead of reseting it every single time.
This is most annoying thing for me in both...
Hi everybody,
i've been looking for a script that allows me to set pending BuyStop, BuyLimit, SellStop and SellLimit orders at a specified distance from a candle opening price in pips. E.g. i want to place pending orders every hour at "opening price +200 pips". There are some scripts out there,...
Hello ,
I need to know how does GetTickCount function behave in Strategy Tester if we using it to deciding on the trades?
Thank you
Hello,
I need to return multiple values from a method.
Actually I'm already using a struct but it doesn't work properly (sometimes it returns true value but sometimes returns EMPTY_VALUE).
struct orderValue {...
[Deleted]
Hello, I have been using a file loaded with values to optimize certain parameters of my experts and it was working fine. All i had to do was save the file into the testers temporary files folder but since i recently installed one of the terminals updates, the tester deletes the file without reading
I want to have the total of milliseconds past from the start of the current day in the server's time.
Please help me with the code.
Give an example code please.
Thanks
Hello everyone, I'm trying to iterate in a checkgroup control but I can't get the count of items in it. how can i do that? Thank you in advance
Hey there I am quite new to mql5 but i already programmed in c++/java/php. I am not sure why my code isnt executed, thats why i am asking here: void OnTick () { MqlTick last_tick; //--- if ( SymbolInfoTick ( Symbol (),last_tick)) { Print (last_tick.time, ": Bid = " ,last_tick.bid
Hi Guys,
Sorry new here, i was just wondering whether other people are having problems with EA coding ?
I have someone writing up code for me through the jobs section however he says that it works on his system and it dosent for me on build 600 and 610.
he said there were errors...
when I place a pending order in MT5, is it necessary to have my terminal of MT5 runnin to execute those orders?
or can I disconnect from the internet and shutdown my PC?
I mean, if I shutdown my PC and disconnect from the Internet, will the server of MT5 continue to execute my orders when my own...
I want to know if there are 5 seconds until for example 8:00 am.
I have to use the TimeTradeServer() datetime as the source of my current time.
please give an example.
Thanks
hello,
I need to manage several MT5 accounts.
Should I install several MT5?
Is there an alternative?
best regards
Yes, right now! Yes, in the near future. Yes, but just in the distant future. No, maybe in the future. No, never!
i need a ea for opening two pending order at a fixed time. in that time the the order will open with the different of current market price. i want to used the TP AND SL and Lot.
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.