Forum

Problem drawing Vertical line

Hello, I want to make indicator to draw vertical line at certain date and certain time, but I don't get a line. What is wrong ? If I look at objects list after inserting indicator, I find Vertical line with date parameters: 1970.01.01 00:00 Thanks, Edward

Metatrader on Server

Hi Everyone, Is it possible to run MetaTrader (and Experts ofcource) on so called dedicated Windows server (many internet companies give such service) ? Thanks, Edward

Cubic root

Hello, How to take cubic root in MetaTrader ? for example: CubicRoot(8) = 2; CubicRoot(27) = 3; There is only SquareRoot sqrt(4) =2; Perhaps Logarithm function should fit ? Thanks, Edas

Wanna include "include" file into indicator

Hello, I have indicator which uses "include" command to include external library. This library declares external functions which are in .dll file Is it possible to declare dll functions from indicator itself avoiding "include" file ? (there are many #define statements in "include" file) Thanks

SendMail problem

Hi EveryOne, I have problem with SendMail function . If I test Options-Email-Test, I got error message. The settings are working in email program. If I include SendMail command in expert it does not send any mail. Could you advice ? Regards, Edward

Why Indicator line does not seen in expert correctly ?

Hello, I have a quite strange problem. I have indicator, which plots one line with constant slope per bar. If I include this indicator into expert indicator line plots strange way during testing period. Before testing period it looks ok. If I reexecute indicator on expert it plots OK. What is

Data export: how to make two little improvements for script ?

Hello, Here is script which exports data in different time frames and different fx pairs. It can also export indicators data. Original code it is here: https://www.mql5.com/ru/code/7716 I modified code to change output format (format it is now the same as pressing F2 and exporting). Script is very

Question about FileRead

Hi Everyone, I want to read .csv file with precalculated data and load this data to indicator. File data has such stucture: Date time, data1, data2, data3, data4 2011.10.20 00:22,-0.04558,-0.76599,1.65205,2.83105 2011.10.20 00:26,-0.04582,-0.76509,1.65226,2.83158 For indicator line I need ofcource

How to calculate was last trade profitable or not ?

Hello Everyone, I want to calculate if last trade profitable or not. I want to vary Order Size, depending on last operation. For example, if last trade was loss, I want have only half of default lot. If last trade was profitable, I want to trade default lot. What commands show if last trade was

Is it possible to change Object Name ?

Hello Everyone, I want to change object name . Is it possible ? Or I need to create new object with the same parameters and delete old object ? Edward