Cost trigger of a guaranteed stoploss
Forums › ProRealTime English forum › ProRealTime platform support › Cost trigger of a guaranteed stoploss
- This topic has 14 replies, 5 voices, and was last updated 3 years ago by Albaran.
-
-
03/08/2021 at 4:36 PM #163480
Hi there,
It’s all in the title; when is the cost of a guaranteed stop loss triggered?
Two cases come to mind:
a) A stoploss yielding a loss
b) a stoploss yielding a profit
And with which command is it triggered? Whenever using the stop command or only when using below kind of command:
1Set stop loss xand not with below kind of command
1Sell at fulllongstop stop?
03/08/2021 at 5:12 PM #163495Both will be Guaranteed Stop. A pending stop order is a stoploss and a stoploss is a pending stop order 🙂
2 users thanked author for this post.
03/08/2021 at 5:15 PM #16349606/04/2021 at 10:43 AM #17112106/09/2021 at 9:44 PM #171513And with which command is it triggered? Whenever using the stop command or only when using below kind of command:
Set stop loss x
Sell at fulllongstop stop
A bit carefulness is needed. “Sell at xx stop” only triggers a guaranteed stop, when this has been activated before by “set stop loss x”, because in this case all stops (whenever they are changed) for a position will be guaranteed.
If you don’t use “set stop loss x” or similar commands at all in your code, all stop losses set by “sell at xx stop” will NOT be guaranteed !
“Quit” only closes all currently open positions at market price and therefore does not execute any stop loss.
1 user thanked author for this post.
08/24/2021 at 6:10 PM #176123Just to be sure, IG says that the cost of a guaranteed stop loss is +1pt if triggered.
So to be all sure, it’s cost = 1pt. * number of contracts * (value of contract or value per point), right?
And is it + 1pt. regardless of the underlying you’re trading in? I want to code the cost into the algorithm..
(I couldn’t really find any other information other than the +1pt. on the IG website hence why I’m asking it here)
08/24/2021 at 6:27 PM #17612408/26/2021 at 8:00 AM #17625208/26/2021 at 11:59 AM #176288When set DefParam CumulateOrders to False it only prevent your system to execute more than one (1) trade in the same direction.
Let me rephrase my question: “Is it possible to make use of a guaranteed stoploss of the type “$LOSS” with DefParam CumulateOrders = True ?”
PRT says that the two of them are not compatible and according to @XORANDNOT, in order to to benefit from the guaranteed stoploss protection, you need to make use of the command “set stop loss x”.
So my question is whether or not there’s a way to circumvent this incompatibility by coding it in a different way?
08/26/2021 at 1:35 PM #17629708/26/2021 at 3:15 PM #17630208/26/2021 at 4:03 PM #176307@GraHal: Maybe because it is a special case of CumulateOrders combined with Guaranteed Stops.
I can imagine that there is a (IG) limit to the amount of contracts in combination with Guaranteed Stops or a limitation between (cumulated) margin and Guaranteed Stops…etc.
08/29/2021 at 6:18 PM #176443Let me rephrase my question: “Is it possible to make use of a guaranteed stoploss of the type “$LOSS” with DefParam CumulateOrders = True ?”
PRT says that the two of them are not compatible and according to @XORANDNOT, in order to to benefit from the guaranteed stoploss protection, you need to make use of the command “set stop loss x”.
So my question is whether or not there’s a way to circumvent this incompatibility by coding it in a different way?
If you want to have an exact answer, try it out on a very short time scale (1 minute or 10 seconds) in your demo account. This is what demo is made for.
08/30/2021 at 9:45 AM #17647110/15/2021 at 11:10 AM #179727@GraHal: it’s as @XORANDNOT says..
-
AuthorPosts