Forum

Strange behavior in calculating the bid price in the strategy tester

I'm testing an EA in the strategy tester . To get a graphical representation of it, I also added an indicator, a simple indicator that warns me when the bid price breaks the lower or upper limits of a donchian channel. In real time, the indicator works perfectly, but in the strategy tester the

Preserving a string variable value when changing time frame, is there a way?

Hi, Hi need to preserve a string variable from reset when I change TF. GlobalVariableSet is not a solution for me because I need to apply more times the same indicator on the chart with different properties , so to work correctly the GlobalVariable should have a different name for each indicator

Help me with the iCustom

Hi, I have a compiled indicator. When the indicator is in use I can see in the data window 19 values that I would intercept with the iCustom function in my EA. Is there a way to do this

How can I verify if a double number have a decimal part?

Example: EURUSD price: 1.22375 it40cash price: 23638 these numbers are both double, but the first has a decimal part, the second not. Is there a way to verify if a number have a decimal part? Thank's Piero

MT4: any way to use it on a multi scrren pc?

For me it is quite frustrating not to be able to open the charts on more screens

A function like OrderProfit but for all orders?

I, is there a function to have the total profit of all the opened order? Like OrderProfit...Thank's Piero

Doubt about iClose..

With the following code, using the variable "period" (which can become PERIOD_M5, PERIOD_M1, PERIOD_H1) and the variable "long" (various integers) c = NormalizeDouble (iClose (NULL, period, length), Digits); if they were set to PERIOD_H1 and 4, I was sure I would have obtained the closing price of