Forum

kNN Indicator not plotting

//+------------------------------------------------------------------+ //| RSI.mq5 | //| Copyright 2009-2017, MetaQuotes Software Corp. | //| http://www.mql5.com |

Custom indicator not backtesting

Hello everyone. I am using a custom indicator , but ever since I added it to my code, the backtesting did not run at all. How can I improve the code? Or is it even from the indicator this slowness? Best regards. //+------------------------------------------------------------------+ //|

Stop trading after reaching daily Profit/Loss

Hello everyone, I am trying to code a function to return the accumulated daily Profit/Loss, but I cant make the code work. Can any guru here be so kind to help me? I Appreciate! double ProfitAll( datetime & XHoraPrimeiroCandle, double & XProfit) { int err= 0 ; if (IsFirstBar()) {

SL/TP Strategy Tester not executing

Hello everyone, I am cracking my head here. My code simply does not execute the SL or TP orders. They appear on the testing graph , but they are not executed. Can anybody help, please? Thanks. //IMPORTAÇÃO #include<Trade\Trade.mqh> //cria instância chamada "trade" CTrade trade; input int lote =