fx_ta / Publications
Forum
is market open/close
Hi all I would like to check in the expert advisor if the markt is open/close. What's the easiest way to do that? I don't want do check that over time. I also need to know when the market open again after the short close every day at 11pm. Thanks FX_TA
Add script to chart by attaching EA (automatically)
Hi all How can I attach a script to chart within the init-part of an EA? I've always a coresponding script to each EA I need to attach. Thanks for help. Best Regards, FX_TA
Array resize for object of a struct type
Hi all I've a method which i call x-times. I fill an array in this method and I don't know how many times the method will be called during the runtime (every call of the method creates a new entry in the array. It could be upto 300 times before I "free" the array). Short: I don't know the needed
runtime variable name of class and method
HI all I'm looking for a possibilty to get the the name of the current class and method during runtime. I need to know in every method the name of it to write that name into a (log)file. Is that possible without using an own variable? (i don't like to always define a variable for that). Is there any
Display each order/trade in MT5
Hello all I've (e.g.) two EA attached to two different charts with different magic number for each EA. If I trade EURUSD with 1.0 volume and after a while a second order is send out with 1.0 volume. Now I see in MT5 EURUSD 2.0 volume. Is it also possible to display the two different trades in two
"Real" global variable
Hi all I've three EA implemented. All these EA's have to read a "real" global variable to set some parameters. With "real" global variable I mean one value which is accessible (readable) from every running EA (e.g. my three EA's). I've implemented this with a file. The file have the value and ever
Global variable to use in different function
Hi all I've a global variable defined like this: MqlRates ga_rates[]; Then I've a function in my EA defined as follows. void getBarInfo() { // fill array with bar information to use in functions CopyRates ( Symbol (), PERIOD_CURRENT , 0 , 10 , ga_rates); } Now I would like to use the variable
Backtesting - Difference in open information
Hi all I'm a very "new newbie" in MQL5 (I've experiences in other progr. lang. but not in MQL5). I trade for more than two years and now is time to start with developing EA to make trading (hopefully) easyier and less risky. To my challange... I need the OPEN information of the last and previous