Forum

MQL5 - Insert for the experienced. learning for the newbies :)

#include <Arrays\ArrayObj.mqh> #include <Generic\ArrayList.mqh> #include <Generic\ArrayList.mqh> class DataRateStructure { public : string SymbolForDataRate; double DataRateData_Bid; double DataRateData_Ask; datetime DataRateDateTime;

Testing Multiple Symbols Execution fails after a few days.

Hi There; I've written a system on EA that hopefully executes multiple symbols concurrently. I=t works perfectly per individual instrument. just need to find a way to execute it properly on multiple symbols. The error starts at ticket 50+ for 2 instruments on the backend. meaning i'm able to

MarketClosed() Method - how to determine day to trade on.

bool MarketClosed() { bool closed= false ; MqlDateTime STime; datetime time= TimeCurrent (); TimeToStruct (time,STime); datetime date_from, date_to; bool session_exist= true ; uint session_index= 0 ; //--- get over all sessions of the current day while (session_exist) {

Account Leverage Question.

//+---------------------------------------------------------------------------+ //| Margin Leverage from the broker - for better calculations on big accounts.| |

Arrays that holds classes.

Hello Is there a way i can create my own class and reference it through an array ? The class is of non-default data types. (int, float, double, etc.) Why i ask. :-) class DataRateStructure { public : double DataRateData_Bid; double DataRateData_Ask; datetime

Hi - Calculate PERIOD_M15 ?

Hi There; I have a need to calculate 3 bars in M15 range. the last 3 bars including the current bar to make it comfortable. I do not want to rely on Chart component as the user will change the M15 to other ranges periodically and it's part of the automated process. The purpose of the requirement is

Greetings - oop - multi dimensional array question.

class PositionsForGoldStructure { // PositionStructure holds the details used to populate per position. class PositionsStructure { public : double dPipRangeValue; // ... more variables. PositionsStructure() { } }; }; my question is. If you use a multi dimensional

Need help with strategy tester

Hi There; I have attached my Strategy Tester output on my strategy for easier reading. I ran the data for any given period of time but the tester only provides 1 days of results. ANy tips how i can extend the date with output. the parameters is for a full month or year even

ERROR: Trailing Stops Invalid.

MqlTradeRequest request; MqlTradeResult result; //--- zeroing the request and result values ZeroMemory (request); ZeroMemory (result); request.action = TRADE_ACTION_SLTP ; // type of trade operation request.position =

Symbol issues.

Hi There; I have the following on my EA / OnTick() void OnTick () { // PositionsTotal() works fine. // Currently have 20 instruments selected in the market. but shows as 0 always :p for ( int i= 0 ; i < PositionsTotal (); ++i) { printf ( "SymbolName 1 = %G" , m_position