Exit Rule Explanation
1 month ago #270900
Hello everyone. I am still learning to use SQ. Can admin or anyone help me with some exit rule variable in source code?
extern int MoveSL2BE
extern double MoveSL2BECoef
extern int SL2BEAddPips
extern double TrailingStopCoef
extern double TrailingActCef
extern int OrderExpiration
extern int EnterRvrAtMrkPrfTrg
extern int EnterRvrAtMrkStpLss
extern double EnterRvrAtMrkMveSL2BECef
extern double EnterRvrAtMrkSL2BEAddPpsCef
For example, MoveSL2BE = it will move stop loss to break even after some pips of profit.
your undestanding for ‘MoveSL2BE‘ is correct. THe ‘MoveSL2BECoef‘ can be decimal value mainly used to multiple the ATR or similar value. ‘SL2BEAddPips‘ is the amount of pips added to entry price once SL is moved to BE. ‘TrailingStopCoef‘ is also a decimal value that determines trailing SL distance for example ATR * 0.85. ‘TrailingActCef‘ determines when the trailing stop-loss will be activated. If you set a pending order the ‘OrderExpiration‘ value will determine how many bars the order will be kept alive until it is cancelled. ‘EnterRvrAtMrkPrfTrg’ and ‘EnterRvrAtMrkStpLss’ determines distance of profit / stop distance for the ‘Enter/Reverse at Market’.
1 month ago #270957
Thank you, Tomas!
Viewing 3 posts - 1 through 3 (of 3 total)