Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Views:
654
Rating:
(8)
Published:
\MQL5\Include\fxsaber\Keyboard\
LanguageID.mqh (13.53 KB) view
KeyCode.mqh (14.23 KB) view
KeyState.mqh (6.15 KB) view
Keyboard.mqh (22.43 KB) view
\MQL5\Experts\
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Library for keyboard operation:

  • Data of the selected keyboard layout.
  • Status and processing of pressed keys.

Example.

#include <fxsaber\Keyboard\Keyboard.mqh> // Working with keyboard data.

void OnChartEvent( const int id, const long &lparam, const double&, const string& )
{
  static const bool Init = KEYBOARD::FullControl(); // Allow full key interception.
  static string Str = NULL;

  if (id == CHARTEVENT_KEYDOWN)                              // If the key is pressed,
  {
    Print(KEYBOARD::Pressed(lparam) +                        // display the pressed combination
          ", KeysState: " + ToBits(KEYBOARD::KeysState()));  // output the key states.

    Str += KEYBOARD::Input(lparam);                          // Form a string of keys pressed since startup.
    
    Comment(EnumToString((ENUM_KEYCODE)lparam) +             // Output the pressed key.
            "\nKeyboard language: " + KEYBOARD::Language() + // Current keyboard language.
            "\nKeyboard country: " + KEYBOARD::Country() +   // Current keyboard country.
            "\n----------------\n" + Str);                   // Output a string of keys pressed since startup.
  }
}

An example of library operation.

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/48393

ErrorDescription - Updated library ErrorDescription - Updated library

This library is an updated version of the ErrorDescription.mqh library published by MetaQuotes, with some features included.

ONNX Trader ONNX Trader

An example of a bot with an embedded machine learning model that is trained in python and saved in ONNX format.

AIS Extremum AIS Extremum

The indicator allows you to estimate the probability that the price has reached its maximum or minimum.

Developing Multicurrency Expert Advisor - source codes from the article series Developing Multicurrency Expert Advisor - source codes from the article series

Source codes written in the process of developing a library for creating multi-currency Expert Advisors combining multiple instances of different trading strategies.