Forum

Not opening any positions

hi, could you tell me why this code is not opening any positions? #define EMA_MAGIC 123452413534876 //--- #include <Trade\Trade.mqh> #include <Trade\SymbolInfo.mqh> #include <Trade\PositionInfo.mqh> #include <Trade\AccountInfo.mqh> //--- input double InpLots = 0.01 ; // Lots input int

Rsi levels

Hi, i want to add RSI to my EA, with different Rsi levels than default. I'm adding RSI with this code: bool CSampleExpert::InitIndicators( void ) { if (m_handle_rsi== INVALID_HANDLE ) if ((m_handle_rsi= iRSI ( NULL , 0 , 14 , PRICE_OPEN ))== INVALID_HANDLE ) { printf (

Limit of optimization steps.

Hi, I want to optimize my Expert Advisor . The number of all steps is 899756000. I know that it will take even few days, but I want to do it by slow algorithm. When I am starting optimization it shows that there is only 10496 steps, how I could do evetything by one optimization? Or how I could

Ema Cross, nothing is happening

Hi, I am just trying to made Expert Advisor based on " MACD Sample" from mql5 examples. It is kind of ema cross, but with low price ema and high price ema, I made it in different way, but without possibility of changing inputs. After changes high ema and low ema aren't apperating on chart and Expert