SmartQuant Discussion

Fixed-Stop/Trailing-Stop Combo Code Example
Page 1 of 1

Author:  M101 [ Mon Jun 06, 2016 5:30 am ]
Post subject:  Fixed-Stop/Trailing-Stop Combo Code Example

Hi SQ,

Would really appreciate if you posted an OQ2014 code example of how to do the following:

Once a position is opened add a Fixed Stop. If the position becomes profitable by X then cancel the Fixed Stop and send a Trailing Stop.

(Note: I tried doing this via getting the PL data from the broker, which I'm now guessing is not the smoothest way of doing this? Either way, would really appreciate the code example so I can understand best practices and all of how to do this sort of thing.)


Page 1 of 1 All times are UTC + 3 hours
Powered by phpBB® Forum Software © phpBB Group