|
Tighter Trailing Stops && Stops
Most of the brokers out there won't let us scalpers use tight StopLosses or Modify the orders with a tight Trailing Stop. Attached is some code to facilitate this function.
To use the TTS, you’ll need the following setup.
1. A global variable setup with
a. extern int TrailingAct
b. extern int TrailingStep
c. int TrailingPrice
2. Insert the functions into your code.
3. Make sure that you reset the global variable TrailingPrice to 0 after you close your trades. I have a function that calculates current orders and if there are 0 then the first line after it is to reset TrailingPrice then OpenOrders().
note: this version won't modify the order if the trailing stop is within 8 pips of the current price, but will still close according to the TS.
|