/////////////////////////////////////////////////////////////////// // // SaherElm IT Center MQL5 XOBD Signal Provider Indicators Library // ---------------------------------------------------------------- // // Maintainer: // ------------ // Hadi Khazaee Asl (hadi_khazaee_asl@yahoo.com) // ////////////////////////////////////////////////////// // // Global Properties ... #property library #property copyright "Copyright 2023, SaherElm IT Center" #property link "https://www.saherelm.ir" #property version "1.00" #property strict // // Include Provider Inputs ... #include "x-saherelm.xobd.provider.inputs.lib.mq5"; // // Imports all Indicators Helper here ... input group "XOBD Provider Indicators"; #include "x-saherelm.xobd.oscillator.helper.lib.mq5"; // int xOBDMaxLengthOfInputs = 0; int xOBDCalculatedBars = 0; // // Init Indicators ... bool XOBDInitIndicators() { // bool result = false; // // Check and Calculate Max Length in Inputs ... xOBDMaxLengthOfInputs = MathMax( xOBDNumberOfItemsPerTick, xOBDLength); // // Initialize Indicator/Oscillator Handlers ... ResetLastError(); // // XOBD Init ... result = XOBDInitHandlers(); if (!result) { return result; } // result = true; // return result; } // // Release Indicators ... void XOBDReleaseIndicators() { // // Release Handlers ... XOBDReleaseHandlers(); } // // Handle Reading Buffers ... void XOBDHandleReadingBuffers() { // // Reading Calculated Bars for a Simple Handler ... xOBDCalculatedBars = BarsCalculated(xOBDHandler); // // Read Indicators Buffers ... XOBDReadBuffers(xOBDNumberOfItemsPerTick); } // // // START Combination Functions ... // // // // Can Open Long Trade ... // this is a Function will Check all market Conditions and get all // Strategy requirement Verifications for Long Signals ... bool XOBDCanOpenLongTrade() { // bool result = false; // result = XOBDHasLongConditions(xOBDNumberOfItemsPerTick); // return result; } // // Can Close Long Trade ... // this is a Function will Check all market Conditions and get all // Strategy requirement Verifications for Long Signals ... bool XOBDCanCloseLongTrade() { // bool result = false; // return result; } // // Can Open Short Trade ... // this is a Function will Check all market Conditions and get all // Strategy requirement Verifications for Short Signals ... bool XOBDCanOpenShortTrade() { // bool result = false; // result = XOBDHasShortConditions(xOBDNumberOfItemsPerTick); // return result; } // // Can Close Short Trade ... // this is a Function will Check all market Conditions and get all // Strategy requirement Verifications for Short Signals ... bool XOBDCanCloseShortTrade() { // bool result = false; // return result; } // // // END Combination Functions ... // //