process waitforexit return value how to trade trend lines in forex