Forum

List or Array of a Custom Object

Hello, I'm really struggling with the way MQL5 implements lists, I wish it was simple as C#'s List class! I have this custom class: class SDB_TradeAlert : public CObject { private : public : SDB_TradeAlert(); ~SDB_TradeAlert();

Getting the Last Price of another Symbol which is not the one loaded in the current window

Hello I'm building an indicator that compares two symbols, so it needs rates from a different security that the one that is loaded in the current window, in order to make the calculations. Is there a way to load another price[] array in the indicator, which will load rates from a different