simplifying code for 2 connected variable
Hi,
I have 3 input variables with enum data type and 3 other variables with double data type.
if I want to use fixed stoploss on InpCloseTradeBy variable I will use InpCoef variable for the input value that I need, so does with InpCloseTradeBy2 with InpCoef2 and InpCloseTradeBy3 with InpCoef3. The problem is that I can use (e.g) Fixed stoploss in one of the close trade by variable.
When I want to open new position, on MqlTradeRequest SL parameter I use this code,
Is there a simpler way to tell the EA if fixed stoploss is on InpCloseTradeBy2 variable, it should use data from InpCoef2 variable?
Hi,
I have 3 input variables with enum data type and 3 other variables with double data type.
if I want to use fixed stoploss on InpCloseTradeBy variable I will use InpCoef variable for the input value that I need, so does with InpCloseTradeBy2 with InpCoef2 and InpCloseTradeBy3 with InpCoef3. The problem is that I can use (e.g) Fixed stoploss in one of the close trade by variable.
When I want to open new position, on MqlTradeRequest SL parameter I use this code,
Is there a simpler way to tell the EA if fixed stoploss is on InpCloseTradeBy2 variable, it should use data from InpCoef2 variable?