Reply

Exit Rule Explanation

2 replies

Harry G

Subscriber, bbp_participant, customer, community, 3 replies.

Visit profile

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.

Thank you

0

tomas262

Administrator, sq-ultimate, 679 replies.

Visit profile

1 month ago #270917

Hello,

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’.

 

0

Harry G

Subscriber, bbp_participant, customer, community, 3 replies.

Visit profile

1 month ago #270957

Thank you, Tomas!

0

Viewing 3 posts - 1 through 3 (of 3 total)