| stevehopwoodforex.com https://www.stevehopwoodforex.com/phpBB3/ Print view |
|
| Oanda TDesk Drone - Artificial Hedging for U.S. Traders https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5588 |
Page 2 of 3 |
| Author: | tomele [ Sun Dec 23, 2018 5:11 pm ] |
| Post subject: | Oanda TDesk Drone - Hedging for U.S. Traders |
Exactly. You are a brilliant co-genius. Cheers Thomas |
|
| Author: | SteveHopwood [ Sun Dec 23, 2018 7:40 pm ] |
| Post subject: | Oanda TDesk Drone - Hedging for U.S. Traders |
I love watching co-genius' at work. Anything I can do to facilitate you two here, just sing out. It will be done. It has long been a source of grief to me that so much of what happens here at SHF is denied to our friends in the US. Fantastic to see that you might be overcoming this. |
|
| Author: | mcbusrider [ Sun Dec 23, 2018 8:45 pm ] |
| Post subject: | Oanda TDesk Drone - Hedging for U.S. Traders |
Great work! For a trade copier using OandaPyV20, maybe consider running T-desk on an Oanda practice account, then use a Python script to make a list of all open trades on the practice account. This way, you can run any EA on Empty4 and the 1000 unit minimum trade size doesn't matter - it's on demo. The Oanda V20 Rest API lets you use the same library on practice and trade accounts, just change the "environment" variable to "live", add the live account info and you're good to go. So once you have the list of open trades/orders on the practice account, change login details to the live account, get the list of live trades/orders, then compare what's open on the practice account with what's open on the trade account, closing the differences and setting new trades as necessary, resizing as appropriate. Run the script either in a "While True:" loop, or as a cron job. You can cycle through a list of accounts (for accountID in accountList:) if you need to get/set trades on multiple practice/live accounts. Sorry if any of this content or these ideas are duplicate, just a few ideas for you to play with. |
|
| Author: | Jonah [ Sun Dec 23, 2018 11:19 pm ] |
| Post subject: | Oanda TDesk Drone - Hedging for U.S. Traders |
Found and fixed a few problems. New version uploaded. Here are the changes: Version 1.01
|
|
| Author: | Jonah [ Sun Dec 23, 2018 11:21 pm ] |
| Post subject: | Oanda TDesk Drone - Hedging for U.S. Traders |
Thanks for all of the great ideas! Right now I am mapping out how the EA should look and what data and features it should have. I will keep all of these in mind as I progress. |
|
| Author: | Jonah [ Tue Dec 25, 2018 7:25 pm ] |
| Post subject: | Oanda TDesk Drone - Hedging for U.S. Traders |
I have this about 60% complete. Still have to do some testing and make it presentable. Turned out to be relatively easy and would have went a lot quicker if I actually knew Python Merry Christmas, everyone! |
|
| Author: | tomele [ Tue Dec 25, 2018 7:51 pm ] |
| Post subject: | Oanda TDesk Drone - Hedging for U.S. Traders |
Merry X-mas, Lonnie. Take it easy. Cheers Thomas |
|
| Author: | SteveHopwood [ Fri Dec 28, 2018 11:27 pm ] |
| Post subject: | Oanda TDesk Drone - Artificial Hedging for U.S. Traders |
Lonnie has been in touch with me about where to post his latest so I have a bit of an understanding of where he is in developing his trade copier. I shall open a new sub-forum for him once he is ready to publish. Lonnie has a busy couple of weeks coming up, so time to possess your souls in patience, folks. His trade copier will happen; just not immediately. |
|
| Author: | cozybooks [ Sat Dec 29, 2018 12:26 am ] |
| Post subject: | Oanda TDesk Drone - Artificial Hedging for U.S. Traders |
Oh, Lonnie, We have been waiting so very, very long. For something of this magnitude, we can all dream away while waiting as much longer as it takes. Our best to you in your undertaking! You've had the vision to take on what the rest of us have only been dreaming about. |
|
| Author: | Jonah [ Sat Dec 29, 2018 3:46 am ] |
| Post subject: | Oanda TDesk Drone - Artificial Hedging for U.S. Traders |
Below is the current state of the copier. Currently if there is open Empty4 trades with a specified magic number and not a corresponding Oanda trade open it opens one on the correct account, either short or long. If there are any open Oanda trades and not a corresponding Empty4 trade it closes the Oanda trade. The size of the Oanda trade is based on a user-defined percentage of the Empty4 trade size. There are a few minor bugs to work out with the logic but it is working and I have had it running for 48 hours without fail. The dashboard component of it is about 75% complete. Just need to finish the FXtrade side of the display. It displays account info from both Oanda accounts. Trade sizes can be displayed in either lots or units and are easily changed between them. Data is shown for the whole position or individual trades and includes trade ID and other info from both Empty4 and Oanda. Oanda does intraday financing rather than a daily rollover, so the dash will also display up to the minute financing info and reduce/add that to the shown profit/loss. One problem that will need to be address is that Oanda demo accounts do not allow hedging. Not sure if a US resident can sign up for a demo account for another country. Perhaps using another broker that does allow hedging on demo accounts can be used. Not sure how different the price data displayed would be though. Have to test. I anticipate being able to release this sometime next week. Any other features that it should have? Here is how it looks right now. |
|
| All times are UTC | Page 2 of 3 |
|
Powered by phpBB® Forum Software © phpBB Limited |
|