Jump to content
Medved Trader Forums

alv123

Members
  • Posts

    35
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by alv123

  1. Yep, that's right. Good point. I've thought of a couple of potential solutions to that. 1) I noticed you have a variable which takes the price from which particular capsule the mouse is hovering over. So could you do the same for the risk reward tool? i.e. the price variables are linked to whichever risk/reward drawing you are hovering over at the time you press the hotkey. 2) Add an "active" tickbox in the risk/reward tool settings menu. Then whichever drawing has the "active" tickbox checked, is the drawing that the prices are pulled from. That's the best I could come up with for now.
  2. E.g For the risk/reward tool you could have PriceEntry, PriceStop, PriceTakeProfit That way you can quickly draw out your trade, and then have a hotkey programmed to adjust the quantity of each order based on the risk it calculates for the setup.
  3. Having more than one user defined price variable from the chart would be useful for automatically calculating risk on trade setups. The only user defined price I have found for the chart is PriceAtMouse. Currently, I would have to quickly draw on the chart with the line/ risk reward tool, to see how far away my stop would be from my entry price/s, and then use a hotkey to place a stop near to that number. Whereas, if I had more than one price reference, I could have a single hotkey that would be able to dynamically adjust to each set up. E.g. As it stands, if I draw on the chart and see my stop is 0.57% away for that particular setup, I would use my pre-configured 0.6% stop hotkey.
  4. So now its a case of me playing around with the sample code in here I guess, to see if I can get something working: https://docs.google.com/document/d/15IvYQEYzSeftTSEdVhsptAguM0fGm9mTJFSDDAK7zWE/edit# Are there any risks I should be aware of before I start typing code in willy nilly? It is only connected to my IB paper trading account so I should be fine to do whatever, right?
  5. SUCCESSFUL BUILD Thank you so much Donald! I would have been sat here for the next 6 months trying to figure that out. I ran into a couple of other errors a long the way, which I will document here for in-case other coding newbs need it in the future. After I made the MT.Util corrections, I still had a warning about 'WebSocket4net' could not be found, as you mentioned above Donald. So I went to trusty google and downloaded the package from: https://www.nuget.org/packages/Websocket.Client/ I then copy and pasted that package into my API test folder and that seemed to resolve it. Finally, I still had an error asking me to remove 'the mark of the web' from WS Tester.resx That was solved by finding the file in windows, clicking on properties, and clicking on 'unblock' at the bottom of the general section.
  6. My programming experience is making simple indicators on tradingview and a few apple script programs for keyboard shortcuts. I think I have now successfully loaded the files into visual studio. I believe that my next step is editing some of the code to include the 127.0.0.1 websocket described in the API document. Where would I enter this 127.0.01 number? I think I also need to enter the websocket port number from the medved application into the code. Where would I enter that number? If anyone could point me in the right direction, I would greatly appreciate it.
  7. Sorry to be a pain. I've read through the API documentation and I feel like I would be able to make something useful by combining some of the code examples together. However, despite lots of googling I am not sure what I am supposed to do with the Test api files you sent above. I believe i am on the right track by downloading 'visual studio community'. I then opened up the API tester.snl file, which I believe is the project file. But from that point I am lost on the next steps. I assume you have lots of better things to do than walking me through this. If you think i am way out of my depth then please say so lol. I think if I can just get to the stage where I can type out commands and see the responses, I will be able to get the hang of it, but this initial setup part is tripping me up.
  8. Thanks for you reply! My programming experience goes as far as making a simple indicator using pine script. This is the only API documentation I could find: https://www.medvedtrader.com/www/frontend/blog/HTTP-API Is there any other documentation I can read?
  9. Hi guys, I can no longer cope with the lack of good risk management tools on TWS and i'm hoping Medved trader will save the day! This is how I trade: 1) Decide what % of my account i'm willing to risk on the trade 2) Decide price of 1st scale in 3) Decide price of 2nd scale in 4) Decide price of my Stop 5) Calculate the correct position size for the trade and place it 6) Scale out half of my total position 7) Update my stop to reflect the new total position size On TWS this is painfully slow / manual / and takes a lot of concentration. All I really need is a slightly more sophisticated version of the long position tool on tradingview. If that tool could accommodate scaling in, and if you could change % account risk without having to open up the menu, it would be perfect. It even auto populates the order form for you. Do you think it would be possible for me to automate these steps using your chart trader, or perhaps with the new hot keys you are working on? I believe you do have a position size tool on the chart, but it does not accommodate scaling in. Thank you for all of your efforts to make interactive brokers actually usable!
×
×
  • Create New...