Tente utilizar assim:
//--- input parameters input int maPeriod =67; // Periodo da Media Movel int handle_iMA = INVALID_HANDLE;; //+------------------------------------------------------------------+ //| Expert initialization function | //+------------------------------------------------------------------+ int OnInit() { handle_iMA = iMA(_Symbol,_Period,maPeriod,0,MODE_EMA,PRICE_CLOSE); if(!ChartIndicatorAdd(0,0,handle_iMA)) PrintFormat("Failed to add iMA indicator on %d chart window. Error code %d",0,GetLastError()); return(INIT_SUCCEEDED); }
Você está perdendo oportunidades de negociação:
- Aplicativos de negociação gratuitos
- 8 000+ sinais para cópia
- Notícias econômicas para análise dos mercados financeiros
Registro
Login
Você concorda com a política do site e com os termos de uso
Se você não tem uma conta, por favor registre-se
Pessoal,
Quem puder me ajudar estou com o codigo abaixo pra plotar uma media movel janela ativa do grafico mas nao aparece, somente aparece se eu direcionar para uma sub-janela, onde estaria o erro nesse codigo.