Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (TipmyPip, AndrewAMD, dBc), 18,430 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
IB Options - how to Stop Loss ? #469322
11/10/17 20:49
11/10/17 20:49
Joined: Nov 2016
Posts: 103
NSW
V
vinsom Offline OP
Member
vinsom  Offline OP
Member
V

Joined: Nov 2016
Posts: 103
NSW
Hi,
I would like to try to tes an option strategy with stop loss.
But when I have multple contracts, how to set the stop that from my understanding is per asset and not per contract ?
And how to set the stop with the ATR of the contractPrice , in the snippet below ?
Any help appreciated.
Thanks
Vincenzo

CONTRACT* CallLong = contract(PUT,DTE,Close[0] + spread);
CONTRACT* CallShort = contract(PUT,DTE,Close[0] - spread);


if(!(NumOpenLong + NumOpenShort) && CallLong && CallShort && !is(LOOKBACK) )
{
contract(CallLong);
enterShort();
contract(CallShort);
enterShort();
}

Re: IB Options - how to Stop Loss ? [Re: vinsom] #469335
11/11/17 12:15
11/11/17 12:15
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Options have normally no stop loss. But you can implement a sort of stop loss by comparing the current value or profit with a threshold or with a percentage of the premium, either once per bar, or permanently in a TMF.

Re: IB Options - how to Stop Loss ? [Re: jcl] #469342
11/11/17 18:34
11/11/17 18:34
Joined: Nov 2016
Posts: 103
NSW
V
vinsom Offline OP
Member
vinsom  Offline OP
Member
V

Joined: Nov 2016
Posts: 103
NSW
Hi Jcl,
This extract below is in the "Futures and options" manual page

"Entry, Stop, and TakeProfit limits also work for trading options and futures, and refer to the ask and bid prices of the contract. They must be given as an absolute price limit, not as a distance. When an exit limit is hit, the contract is sold at market. "


Moderated by  Petra 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1