Soroush Kheradmand / Publications
Forum
OnTester() and OnTesterStatistics() in MT4, work correctly?
double OnTester () { int tester_method= 1 ; double ret= 0.0 ; if ( TesterStatistics ( STAT_MIN_MARGINLEVEL ) < 100 ) return - 1001 ; } } when compiling, there is no error, but in strategy tester the value of TesterStatistics ( STAT_MIN_MARGINLEVEL ) is always zero. does OnTester()
HistoryDeal functions don't work in Tester
My code is as follows: int count = HistoryDealsTotal (); ulong tik = HistoryDealGetTicket (count- 1 ); ENUM_DEAL_REASON drrr2 = HistoryDealGetInteger ( tik1+ 1 , DEAL_REASON ); When using the debugger (tester), values of variables is as follows, while they are different from the History
“applied price” Input/Parameters for custom indicator (iCustom)
Each indicator has two types of data: Inputs and Parameters. -------------------------------------------------------------------------------------------------- How to set the parameters ( APPLIED_PRICE ) when using iCustom