//+------------------------------------------------------------------+ //| tickvalue.mq5 | //| Copyright 2024, MetaQuotes Ltd. | //| https://www.mql5.com | //+------------------------------------------------------------------+ #property copyright "Copyright 2024, MetaQuotes Ltd." #property link "https://www.mql5.com" #property version "1.00" input double InpDividentValue = 10; // Dividend value input double InpDivisorValue = 3; // Divisor value //+------------------------------------------------------------------+ //| Expert initialization function | //+------------------------------------------------------------------+ int OnInit() { //--- //--- return(INIT_SUCCEEDED); } //+------------------------------------------------------------------+ //| Expert deinitialization function | //+------------------------------------------------------------------+ void OnDeinit(const int reason) { //--- } //+------------------------------------------------------------------+ //| Expert tick function | //+------------------------------------------------------------------+ void OnTick() { //--- printf("tickvalue"); printf(SymbolInfoDouble(_Symbol,SYMBOL_TRADE_TICK_VALUE)); printf("ticksize"); printf(SymbolInfoDouble(_Symbol,SYMBOL_TRADE_TICK_SIZE)); printf("digits"); printf(Digits()); //- get the real remainder of the division of the numbers entered in the inputs double res=MathMod(InpDividentValue,InpDivisorValue); //--- print the result in the journal PrintFormat("Real remainder when dividing %.2f by %.2f = %.2f",InpDividentValue,InpDivisorValue,res); printf (SymbolInfoDouble(Symbol(),SYMBOL_VOLUME_MAX)/SymbolInfoDouble(Symbol(),SYMBOL_VOLUME_MIN)); } //+------------------------------------------------------------------+ //+------------------------------------------------------------------+ //| Script program start function | //+------------------------------------------------------------------+