-
Content Count
352 -
Joined
-
Last visited
-
Days Won
16
Content Type
Profiles
Forums
Blogs
Calendar
Community Tutorials
Posts posted by jlz
-
-
On 30/03/2021 at 17:35, wki said:
Hi. I have a trading strategy that I would like to execute but it involves moving the stop once when the price drops below a set threshold. Example:
- Current EURUSD price is at 10,000 (easy numbers)
- I put down a sell working order with the level set at 9,980 and a stop set at 9,990. The price drops to below 9,980 and the order is placed.
- As soon as the price drops further to 9,960 or below, the stop is moved close to the current price, i.e. it is moved from 9,990 to 9,965
- Note this is a once-off move and a trailing stop won't (I don't think) give me what I need
- I monitor the price further and tap out if it reaches a lower profit taking level
I am achieving this currently through another rest api process that watches the price every 1 minute and moves the stop when the threshold is hit, but I would like something more automated / on the platform itself as I often miss the intra-minute movements. I have considered a streaming approach but this can't be set up for limit setting right? Also considered using alerts but this is not (currently) part of the rest api. Can I achieve the above using the current IG rest api tools or even 3rd party tools? Thanks!
I don't see why you couldn't use the steaming API to watch the price and the REST API to move the stop.
If your problem is that you would like to act quicker between minutes just watch the price setting up the streaming service and then when the threshold is hit call the REST API to update the stop. You have already most of the work done.
-
22 minutes ago, wki said:
Through the rest api, the ability to add additional stops and/or limits to existing orders if a level is hit. For example, I have a current sell order in place with a stop at 10,050. If the price moves down to say 9,950, I would like to move the stop quite close to say 9,960. I could achieve this if I could create another instruction on the platform that specifies the level and the stop, linked to the same order id. Also the ability to edit this additional instruction via the rest api. The original stop of 10,050 would still be in place but would be redundant as the 9,960 stop will be hit first. This would make my day.
https://labs.ig.com/rest-trading-api-reference/service-detail?id=593
You can update a position by using this endpoint.
-
Questions about the API are ignored on this forum.
If you still have the problem send an email to helpdesk with your details.
https://www.ig.com/uk/contact-us
Email address is within the page.
-
Hi Dylan1234, can we see that complaint that you are going to file?
A demo account is never going to be the same as the live account. Many people have complained about it, always as a rant more than an actual action, but I've never seen an actual formal complaint that would challenge the behaviour of a demo account.
It would be interesting to see where that complaint is ending at, how it is filed, its format and who is addressed to.
-
30 minutes ago, andysinclair said:
Yeah I agree, for the last few months it attracted lots of spammers for some reason (I presume it was not being moderated and had always attracted spam).
However, it did have lots of useful content, often I would search on Google for a question/issue and would see a useful forum post in the results. Over the years it became a decent knowledge base, which I guess is all lost now.
Good point, I guess they turned it down because no one was using it and they didn't think about those queries.
Maybe a good solution would be to load those posts into a knowledge base directory so we still can search through it.
-
I don't understand why you guys want that forum to be back. It was abandoned for several months and you could not see an interesting post apart from the usual spam that you see on unmoderated boards.
It had many posts selling pills and magical remedies for weeks until someone decided to look at it, you can tell that there wasn't an admin taking care of the content there.
In the last year I did not see a useful response there and every conversation about the API was held on this forum, so what is the point of asking for the other one to be back?
-
-
19 hours ago, nickcamel said:
Repo seems gone!?
I've also started a python project on Ig Api, when I saw your post I was def hoping on gaining some more knowledge or collaboration.
Here's my repo. https://github.com/nickcamel/IgApi
Hi I moved it to https://github.com/oneangrytrader/IG.Python.Api.Client
-
40 minutes ago, BoJK said:
Does this mean you win small and lose big? Notwithstanding your rate of return is above parity? Pardon me, I really dont know how to read this data.
I guess mine is worst (lose big, rate of return negative.)
You are right. That's exactly what is happening.
-
On 03/03/2021 at 08:35, Ozquant said:
Those are really cute numbers. For someone that has been trading "over 20 years" is not much. Try to post something with more than a thousand trades. Anyone can make 50 trades out of luck.
Attached are mine.
-
These should be the limits.
-
No, normally strategies are market related. You will find many people that trade only one market on a daily basis and eventually will venture into other options.
The benefit of watching a market constantly is that you get to understand it better than if you would look at many.
You could group markets into their trends i.e sideways, long or short markets , then your techniques might be valid for multiple markets, but since you have to account position sizing based on price, volatility and margin required I doubt that a single technique would work in multiple markets.
-
1
-
-
This the response from the search markets endpoint. Does it help?
Quote/gateway/deal/markets?searchTerm=Tesla
{
"markets": [{
"epic": "ED.D.TL0GY.DAILY.IP",
"instrumentName": "Tesla Inc (DE)"
}, {
"epic": "ED.D.TL0GY.MAR.IP",
"instrumentName": "Tesla Inc (DE)"
}, {
"epic": "ED.D.TL0GY.JUN.IP",
"instrumentName": "Tesla Inc (DE)"
}, {
"epic": "ED.D.TL0GY.SEP.IP",
"instrumentName": "Tesla Inc (DE)"
}, {
"epic": "UD.D.TSLA.DAILY.IP",
"instrumentName": "Tesla Motors Inc (All Sessions)"
}, {
"epic": "UD.D.TSLA.MAR.IP",
"instrumentName": "Tesla Motors Inc (All Sessions)"
}, {
"epic": "UD.D.TSLA.JUN.IP",
"instrumentName": "Tesla Motors Inc (All Sessions)"
}, {
"epic": "UD.D.TSLA.SEP.IP",
"instrumentName": "Tesla Motors Inc (All Sessions)"
}, {
"epic": "KA.D.STSLLN.DAILY.IP",
"instrumentName": "Leverage Shares -1x Tesla ETP"
}, {
"epic": "KA.D.STSLLN.MAR.IP",
"instrumentName": "Leverage Shares -1x Tesla ETP"
}, {
"epic": "KA.D.STSLLN.JUN.IP",
"instrumentName": "Leverage Shares -1x Tesla ETP"
}, {
"epic": "KA.D.STSLLN.SEP.IP",
"instrumentName": "Leverage Shares -1x Tesla ETP"
}, {
"epic": "KA.D.2TSLLN.DAILY.IP",
"instrumentName": "Leverage Shares 2x Tesla ETP"
}, {
"epic": "KA.D.2TSLLN.MAR.IP",
"instrumentName": "Leverage Shares 2x Tesla ETP"
}, {
"epic": "KA.D.2TSLLN.JUN.IP",
"instrumentName": "Leverage Shares 2x Tesla ETP"
}, {
"epic": "KA.D.2TSLLN.SEP.IP",
"instrumentName": "Leverage Shares 2x Tesla ETP"
}, {
"epic": "KA.D.3LTSLN.DAILY.IP",
"instrumentName": "GraniteShares 3x Long Tesla Daily ETP"
}, {
"epic": "KA.D.3LTSLN.MAR.IP",
"instrumentName": "GraniteShares 3x Long Tesla Daily ETP"
}, {
"epic": "KA.D.3LTSLN.JUN.IP",
"instrumentName": "GraniteShares 3x Long Tesla Daily ETP"
}, {
"epic": "KA.D.3LTSLN.SEP.IP",
"instrumentName": "GraniteShares 3x Long Tesla Daily ETP"
}, {
"epic": "KA.D.3STSLN.DAILY.IP",
"instrumentName": "GraniteShares 3x Short Tesla Daily ETP"
}, {
"epic": "KA.D.3STSLN.MAR.IP",
"instrumentName": "GraniteShares 3x Short Tesla Daily ETP"
}, {
"epic": "KA.D.3STSLN.JUN.IP",
"instrumentName": "GraniteShares 3x Short Tesla Daily ETP"
}, {
"epic": "KA.D.3STSLN.SEP.IP",
"instrumentName": "GraniteShares 3x Short Tesla Daily ETP"
}]-
1
-
-
12 minutes ago, u0362565 said:
Ah ok so there is a time limit really thanks for that, important point.
I trust Casey's comment on that you should only get charged with the spread again at the date of expiry, as that has been the response every time someone asked the question, but then I read the document and it says something completely different. I think you need to give them a call and see the official response. We are not helping much here.
-
27 minutes ago, Morpheus said:
Have you noticed today that you can only have one device open at a time? for example if I log in on the phone app it logs me out on my MacBook browser, this is a reasonable thing I think and will presumably reduce the number of concurrent connections to the IG servers, this action alone, is enough to conclude that the outsages were indeed related to system overload at least in large part.
You are never going to stop
Now tell me why the API failed to respond at the same the website login did.
-
Looking at the rollover rules document at:
https://deal.ig.com/content/files/140800_IGI_UK_Rollover_Rules.pdf
Copied from the document.
QuoteRolling over a bet involves closing the old bet and opening a new one in the same size and direction as that of the original. Any profit or loss on the old bet will be realised to your account and you will have to settle any losses on the bet that has been closed.
-
Now let's talk again about those "technical issues". Those that happened at the very same time all across the world in multiple countries and to multiple companies. My guess is that all of those brokers had to go through the same clearing firms/liquidity providers.
It looks like a switch off button.
Better to have "login problems" than having to disable every single market that doesn't have proper liquidity available.
I believe these clearing firms do not discriminate per market and they just stop providing a service for a period of time, the very same time these brokers had to stop providing a service. Because after all, why would you allow customers to login if they can't do anything.
Thank you for posting the video, it will help many to understand what is going on, including me.
-
2
-
-
30 minutes ago, JIT13 said:
Does IG monitor these posts? It would be good to see them reply to these concerns.
Looking at all of the analysis on RobinHood there seems to be two possible causes for them halting these stocks; 1. a conflict of interest or 2. they have a liquidity problem.
Does IG have liquidity issues?
Am looking at Capital.com, does anyone have experience with them? Good or bad? Their advert claims they have no trading blocks in place.
I am not sure if they are good or not but capital.com are trolling every broker by showing GME on their main page. They must be laughing at the whole thing there. They don't have an API for developers unfortunately but their spreads seem reasonable.
The didn't seem to have any "technical issue" last week. So there is that.
-
2
-
-
I don't know. I am on Ubuntu and for these cases, when I have to run exes, I use "Wine". There seems to be a version for Mac as well, I haven't tried it on Mac but I would try that route.
https://www.wikihow.com/Open-Exe-Files-on-Mac
-
- Popular Post
- Popular Post
For those who want to trade GME stocks I can recommend DeGiro. For UK customers you will be based with an Irish account manager where the default currency is €. After changing your currency you will be able to trade in pounds.
It is an execution-only broker that charges per operation. They don't offer CFDs/Spread-betting nor ISA accounts.
They even have an API available for share dealing.
-
8
-
49 minutes ago, Morpheus said:
Can we find out if there are common liquidity providers to these brokers ?
The list is not small, for any query I send to Google I get the usual big bank names where Citibank and Citadel seems to be the most common among other 15-20 providers.
Many comments came out pointing that broker shortages are normally related to these providers but none mentioned exact names and particular reasons.
-
-
I was going to recommend the website 'prorealcode' for a solution.
And then I found your question there
https://www.prorealcode.com/topic/backtesting-on-prt-v11-1-on-mac-os/
-
These are the brokers that were reported to have problems yesterday.
https://istheservicedown.co.uk/status/ig-broker
https://istheservicedown.co.uk/status/cmc-markets
https://istheservicedown.co.uk/status/etrade
https://istheservicedown.co.uk/status/etoro
https://istheservicedown.co.uk/status/interactive-brokers
https://istheservicedown.co.uk/status/robinhood
https://istheservicedown.co.uk/status/td-ameritrade
https://istheservicedown.co.uk/status/trading-212We can tell that the down time was very similar in all of them, with the exception of Robinhood that is still having problems. If you click on the full report you will see the location where those users reported the problem from, they are all over the world.
Some users are already pointing out in comments that there was a shortage of equity liquidity from the usual providers. Now the question to me really is : Why those liquidity providers stopped or decreased their availability over the last week?
Some will point to the recent news about GME and Reddit but I can't subscribe that, mainly because I can't prove it. All I can say is that the reason why we had an outage seams obvious, but the trigger is still to be understood.
-
1
-
Automatically move stop once when price drops below a level
in General Trading Strategy Discussion
Posted · Edited by jlz
You can subscribe to multiple epics with the streaming service, once you get your updates it will be per epic. You should hold a collection of epics and its prices in memory , then act on every price update.
1. Subscribe to prices. (Streaming service)
2. Subscribe to trades. (Streaming service)
3. Hold your positions locally in a collection (Get the first snapshot from the REST API)
4. Set your thresholds per epic in a another collection.
5. Wait for a price update (Streaming), on that update check your positions and thresholds. Once you reach a level call the Rest API to move the stop.
6. You will get an update from the Trades streaming service, update your positions collection in that update.
If you can share your code on Github I can have a look when you have something set up.