Forum

indicator problem in calculation

Hi guys i try to create a indicator that calculate a CCI over the ratio of 2 instruments i code this //+------------------------------------------------------------------+ //| CCI_Ratio.mq4 | //| Expert Advisor created by

replicate the indicator for spread trading

Hello friends, I would like to recreate this indicator for MT4, or if someone already has it done for MT4, that would be even better :D. Here's a description of the indicator and what I know about it: It's an indicator used to understand when to enter and exit the market in spread trading operations

where is the EventMouseWheel.mq5 ?

Hi i read this https://www.mql5.com/en/book/applications/events/events_mouse&nbsp ; in this paper say exist this file ,i suppose in metatrader 5 , but i not find EventMouseWheel.mq5 or EventAll.mq5 anyone have this file ? thanks

include file in include library ?

Hi i try to include this library #include <Trade\PositionInfo.mqh> #include <Trade\Trade.mqh> in my common.mqh library i try with <> and not work , but i try also in this mode #include "Trade\PositionInfo.mqh" #include "Trade\Trade.mqh" and not work but if i remove folder and move file in main

include library in other library in mql5 is possible?

Hi i have created a commofunctionlibrary.mqh in include folder , i want call this library #include "Trade\PositionInfo.mqh" #include "Trade\Trade.mqh" i try also with <> but nothing is possible call ?? thanks

ordertype() in mql5 ?

hi guys how can substitute OrderType() in mql5 ? thanks

include mql5 help

Hi , i try to look if exist a oreder all close , i find many article but all example have this include #include <Trade\PositionInfo.mqh> #include <Trade\Trade.mqh> but where i find this library ? thanks

why mql5 return me unexpected token ?

why in this part of code void CloseALLOrders() { // Aggiorna i tassi di cambio prima di chiudere gli ordini. //RefreshRates(); // Stampa nel terminale il totale degli ordini, attuali e passati. Print ( OrdersTotal ()); // Avvia un loop per scansionare tutti gli ordini. // Il loop

in mql5 why if i declare variable is not possible change ?

hi i have declare in top of script this code input int OnOffChiusuraAuto= 0 ; but why when i try to chage return me 'OnOffChiusuraAuto' - constant cannot be modified SPREAD_ROBOT.mq5 297 9 but is variable not constant o_O

function Time in mql4 exist somthing similar in mql5 ??

Hi i look in manual but i not find something similar to function Time ,probably i not see , anyone know if exist something similar? thanks