Help With CMoneyFixedRisk

 

Hello!

I am attempting to calculate lot size dynamically based on a SL calculated from the ATR (Using the built-in iATR). 


The EA seems to compile correctly, but when I attempt to test the the strategy nothing happens. I have been unable to determine where my mistake is. 

Please, see the attached code below. Any assistance is appreciated. 

Thank you in advance. 


/
 
   if(
          (Buy_Condition_1 == true)
       && (Buy_Condition_2 == true)
       && (Buy_Condition_3 == true)
         
     )

You would never write if( (2+2 == 4) == true) would you? if(2+2 == 4) is sufficient. So don't write if(bool == true), just use if(bool) or if(!bool).