yalewang:
if not ,is there functions to compare strucures ?
// MQL4&5-code
#property strict
#include <TypeToBytes.mqh> // https://www.mql5.com/ru/code/16280
void OnStart( void )
{
MqlTick Tick;
::SymbolInfoTick(::Symbol(), Tick);
MqlTick CloneTick = Tick;
// Operation with structures
if (_R(Tick) == CloneTick) // Now the structures can be compared
::Print("Equal");
}
#property strict
#include <TypeToBytes.mqh> // https://www.mql5.com/ru/code/16280
void OnStart( void )
{
MqlTick Tick;
::SymbolInfoTick(::Symbol(), Tick);
MqlTick CloneTick = Tick;
// Operation with structures
if (_R(Tick) == CloneTick) // Now the structures can be compared
::Print("Equal");
}
TypeToBytes
- votes: 19
- 2016.09.19
- fxsaber
- www.mql5.com
Byte-wise operation with structures and standard data types.
yalewang: if not ,is there functions to compare strucures ?
| You write them. See Sort multiple arrays - MQL4 and MetaTrader 4 - MQL4 programming forum |
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
may we use ArrayCompare() fuction to compare two structures ?
if not ,is there functions to compare strucures ?
thanks .