This function checks if there is only one open order left or not. It is mostly used in order closing conditions.
Syntax | is_last_order(yes_no_option)! | |
---|---|---|
Parameters | yes_no_option | Set this parameter to YES if you want this to be true whenever there is only one order left opened. Set it to NO if you want the opposite. |
Single-sided | Yes | |
Example | is_last_order(YES)! | |
This function, when added to another one, tells the expert advisor that this last one is true only if the there is just one order left. |