This function checks if the sum of current open orders gains all together are profitable.
Syntax | is_global_profitable(yes_no_option)! | |
---|---|---|
Parameters | yes_no_option | Set this parameter to YES if you want the total profit of all orders together to be true. Set it to NO if you want the opposite. |
Single-sided | Yes | |
Example | is_global_profitable(YES)! | |
This function, when added to another one, tells the expert advisor that condition is true only if the sum of all open orders gains are greater than 0. |