Contract / Position management by IG
Forums › ProRealTime English forum › ProOrder support › Contract / Position management by IG
- This topic has 24 replies, 4 voices, and was last updated 3 years ago by
PeterSt.
-
-
05/20/2022 at 9:24 AM #193481
I have a (live) automatic trading system running on the US Tech 100.
Yesterday the system went from short to long but the number of contracts did not match the settings of the system. Too few contracts were opened.
I know that in volatile times IG adjusts certain things like the margin, but there’s enough on my account so that can’t be the problem.
Is it perhaps the case that in volatile times IG no longer increases the margin but instead simply reduces the number of contracts by a certain percentage?
Has anyone experienced this?
I use a simple money management system based on margin.
PositionSize = (STRATEGYPROFIT + prevProfit) / (Close * MarginPerc)
05/20/2022 at 10:53 AM #19348405/20/2022 at 11:41 AM #193491My margin percentage in the system is fixed and based on the information from the website of IG namely 5%.
ONCE MarginPerc = 0.05
When IG, during the session, increases the margin percentage, it will only affect the amount of money that should be available for the margin and that money is available.
1 user thanked author for this post.
05/20/2022 at 11:46 AM #19349205/20/2022 at 11:52 AM #19349305/20/2022 at 11:53 AM #193494What is prevProfit?
STRATEGYPROFIT is updated everytime a trade is fully closed, so adding some previous profits may incorrectly increase the actual profits gained so far.
The only value you could add could be the temporary current profits in case you need to accumulate positions, but it’s not safe, because those profits are not granted to stay there for the future candles.
05/20/2022 at 12:04 PM #193499I use prevProfit when I have to stop the system (has only happened 1 time) to make a small adjustment. When you stop a system and make an adjustment, the StrategyProfit is back to zero. To take the profit from the previous session with me, I fill that in at prevProfit and start up the system again. This way your profits (or losses) are not lost.
1 user thanked author for this post.
05/20/2022 at 12:25 PM #193503Is it perhaps the case that in volatile times IG no longer increases the margin but instead simply reduces the number of contracts by
Actually increasing the margin IS reducing the contracts, as it requires more money.
If DAX is at 14000 and you have 12000 euros on your account, your formula, with a 5% margin, yields 17.14 contracts. If the margin is raised to 8%, you’ll get 10.71 contracts, instead.05/20/2022 at 12:40 PM #193505As you know, there is no exchange of data between your account and your strategy.
The strategy doesn’t know how much is on my account and he doesn’t know a lot of other things either like minimum stopping distance, minimum contract size, etc.
All this data has to be incorporated into your strategy with ONCE.
The amount of money in my account is sufficient and my minimum contract size starts at 1 and on the basis of the StrategyProfit it is built up.
05/20/2022 at 1:16 PM #19350905/20/2022 at 1:36 PM #19351005/20/2022 at 1:50 PM #19351405/20/2022 at 4:11 PM #193519I have no other clues, nor ideas about the causes. I think only addressing PRT could work it out!
1 user thanked author for this post.
05/20/2022 at 4:54 PM #19352505/20/2022 at 6:34 PM #193531@JS, Notice that if you are literally inverting (thus be 10 long,go 20 short, which would be the same as sell 10 and next sell short 10 in the same bar (call of your code)) then you would need 20 contracts. This is only a fraction of a second (nothing knows that you will be trading in the 20 net contracts for 10 others to vanish) – this is how it works.
-
AuthorPosts
Find exclusive trading pro-tools on