Changes

Jump to navigation Jump to search

SetTrailingStop pt

1 byte removed, 16:40, 20 July 2017
no edit summary
Closes out the entire position or the entry if the current profit is less than the maximum profit by the specified amount; generates the appropriate Stop order depending on whether the position is long or short.
For example, if the specified ammount amount is 50 ticks and the profit has reached the maximum of 120 ticks, the position will be closed once the profit drops to 70 ticks.
[[SetStopPosition]] and [[SetStopContract]] or [[SetStopShare]] functions determine whether SetTrailingStop_pt will be applied to the entire position or to each entry in position individually; by default, SetTrailingStop_pt is applied to the entire position.

Navigation menu