You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Thank you!
But haven't figured out how to override the macro
Here's the code:
it works now, but with the prefixFAST_ , I want to overrideMACROS_PREFIX , but so thatconnect(string host = "localhost",int port = 6379) wascalled
I want to overrideMACROS_PREFIX but callconnect(string host = "localhost", int port = 6379)
Thank you!
But haven't figured out how to override the macro
Here's the code:
it works now, but with the prefixFAST_ , I want to overrideMACROS_PREFIX , but so thatconnect(string host = "localhost", int port = 6379) wascalled
Forum on trading, automated trading systems and trading strategies testing
OOP, templates and macros in mql5, tips and tricks
Vladimir Simakov, 2020.02.18 05:56
It is strange that it works, but it does not.
It's strange that it works, but it doesn't.
My macro has two parameters, but you pass one, so the compiler swears.
thanks... but I still haven't figured it out.... science from hell!!!!
I can't explain it in words. I'll try it in note language.
This code works as intended:
But I want to make a macro substitution in MQL to minimize the code text itself, so I have to:
My macro has two parameters and you pass one, which is why the compiler is fighting
It doesn't work.
It doesn't work.
thanks... but I still haven't figured it out.... science from hell!!!!
I can't explain it in words. I'll try it in note language.
This code works as intended:
but i want to do a macro substitution in MQL to minimize the code text itself, so i need it:
BUT!!!
CONNECT macro cannot be overridden by making #undef USE_FAST
so I can do what I want.
interested in options suggested yesterday using the magic spell #defaine abracadabra ##_
UPD:
Vladimir Simakov OK, I'll try to figure it out
UPD:
HOORAY! IT WORKED! (С)
Thank you! It worked as intended!
PZY: How would I add __MQL5__ and __MQL4__ macros to this abracadabra, but fast_xxx() functions will never be in MQL4 code at all - from the word NEVER