"On fly" Strategy Tester Parameter Disable

[Deleted]  

Good Afternoon !

Any one have a clue on this ?

If I have an EA with 2 iMA (for example) and each one has its own ENUM_TIMEFRAMES/ period.

If I want my EA to run both separated timeframes and unique timeframe using a key to compare my concern is when using single timeframe mode, Strategy tester will input parameters that will not make any difference to the Result so it can confuse the test make it going to the wrong direction.

It there any way to avoid this ? (Code below as an example)

input ENUM_TIMEFRAMES     iTEMA1_period;          // period
input int                 iTEMA1_ma_period;       // averaging period
input int                 iTEMA1_ma_shift;        // horizontal shift of indicator
input ENUM_APPLIED_PRICE  iTEMA1_applied_price;   // type of price; or handle

input ENUM_TIMEFRAMES     iTEMA2_period;          // period
input int                 iTEMA2_ma_period;       // averaging period
input int                 iTEMA2_ma_shift;        // horizontal shift of indicator
input ENUM_APPLIED_PRICE  iTEMA2_applied_price;   // type of price; or handle

input bool                UniqueTimeFrame=true;   // Usa TFUnico
input ENUM_TIMEFRAMES     TFUnico;                // period

//+------------------------------------------------------------------+

   if(UniqueTimeFrame==false)
     {
      iTEMA1_handle=iTEMA(_Symbol,iTEMA1_period,iTEMA1_ma_period,iTEMA1_ma_shift,iTEMA1_applied_price);
     }
   else
     {
      iTEMA1_handle=iTEMA(_Symbol,TFUnico(***),iTEMA1_ma_period,iTEMA1_ma_shift,iTEMA1_applied_price);
     }

//+------------------------------------------------------------------+

   if(UniqueTimeFrame==false)
     {
      iTEMA2_handle=iTEMA(_Symbol,iTEMA2_period,iTEMA2_ma_period,iTEMA2_ma_shift,iTEMA2_applied_price);
     }
   else
     {
      iTEMA2_handle=iTEMA(_Symbol,TFUnico(***),iTEMA2_ma_period,iTEMA2_ma_shift,iTEMA2_applied_price);
     }

//+------------------------------------------------------------------+ 
 
YouTrade:

Good Afternoon !

Any one have a clue on this ?

If I have an EA with 2 iMA (for example) and each one has its own ENUM_TIMEFRAMES/ period.

If I want my EA to run both separated timeframes and unique timeframe using a key to compare my concern is when using single timeframe mode, Strategy tester will input parameters that will not make any difference to the Result so it can confuse the test make it going to the wrong direction.

It there any way to avoid this ? (Code below as an example)

Avoid what ? Your problem is unclear.
[Deleted]  

Please accept my apologies if I was not clear.

Problem was solved

;o) Thank you