Jump to content
Medved Trader Forums

Kasper

Members
  • Posts

    128
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Kasper

  1. Hello,

    Will it be possible to remotely control scanner actions for a portfolio window from API commands?

    Start/Stop/Pause scanner

    Enum and switch scan

    Enum and edit params

    Freq etc.

    The goal is to daisy chain some scans and may be get filtered results to generate a report.

    Thank you.

     

    image.png.c6735f893a52b665f49b6b8c53ba692f.png

  2. I use Questrade and MT handles all the heavy lifting. After adding Questrade under Trade/Account once, I only have to login to Questrade account every once in a while.

  3. Hello👋

    Not sure if there has been a recent change but I'm seeing intermittent error on sending commands. Following are tested on my app as well as WSTester.exe.

    Socket connection opens but fails to connect with password. I now see in logs <******> instead of plain password when it fails. But WSTester or my app are sending all commands as usual.


    MT: 18:31:50.79222 07412: API_WS: SENDING (6a4dbdcf-9): 00009: CONNECTED

     

    23-07-30 18:31:57.581: SENDING:
    {cmd: "connect", Pwd: "MYPASSWORD"}

    MT: 18:31:57.59143 77392: API_WS: RECEIVING (6a4dbdcf-9): 00034: {cmd: "connect", Pwd: "<**********>"}
    MT: 18:31:57.60181 07412: API_WS: SENDING (6a4dbdcf-9): 00199: {
      "cmd": "connect",
      "success": "fail",
      "resultcode": 400,
      "result": {
        "time": "2023-07-30T18:31:57.135",
        "ver": "1.1.9930.105",
        "reason": "need to specify password"
      }
    }


    MT: 18:33:21.04030 80588: API_WS: RECEIVING (6a4dbdcf-9): 00019: {"cmd":"enumPorts"}
    MT: 18:33:21.05051 07412: API_WS: SENDING (6a4dbdcf-9): 00108: {
      "cmd": "enumPorts",
      "success": "fail",
      "resultcode": 401,
      "result": "need to connect first"
    }

  4. Jason, I don't know if I fully I understand your use case but here's something you can try to read a chart's frequency from WS API.

    Calculate CandleSizeInSec function's value in a Painbar to assign frequency to chartvar() or Intervar(). Set this paintbar on the chart then value read from your app from getintervar()

  5. Hello, I am not seeing response from MT except Connect command. Following is from WSAPI Tester: What is "no cmd in message"?

    MT: 11:46:21.66385 27048: API_WS: RECEIVING (6767054c-0): 00019: {"Cmd":"enumPorts"}
    MT: 11:46:21.66785 43344: API_WS: no cmd in message: {"Cmd":"enumPorts"}

  6. Hello Mike,

    I am now using Set/GetInterVar between MT and my WS-API app to exchange data. Can you tell me if it should work like data subscription? Within MT GetIntervar can stream between two scans. Do I need to do something on app for something similar?

    Also, is there a way to throttle a scan, say one scan pass over all symbols then wait n seconds before going again. Or if frequency on portfolio is set to 5 minutes thena rule to run scan every (frequency * 0.25) minutes.

    Thank you.

  7. Hello Mike, thanks for this info, I'll try it out. I assume if there are any variables in external script requiring access to data will have to be added to internal paintbar code?

    The other question I have is about scan chart parameters such as frequency can be read from within a scan?

    I want to append this to naming SetInterVar() then call by GetInterVar() elsewhere based on frequency selected.

    image.png.0350327b9330e11b64e43c8bc7c63b74.png

     
  8. I have 26 symbols in MT in two portfolios, both using IB data feed. I noticed this morning, AAPL, AMD and SPY stopped streaming. After clearing data and backfill, I got AMD back to normal. But AAPL is still not streaming, SPY streaming Last price but no bid/ask. Also, it backfilled only current day for Intraday.

    I am on 9810.100, is there a known issue like this? Other symbols are streaming ok.

  9. The calculation is slightly different with each data feed, but that's due to it's feed's speed.

    Here's actual example with IB:

    Symbol    AAPL  Last    136.50 Low  133.73    High 137.65        Rng    3.92    Rng % 70.66326531

    I calculated below for same data feed.

    SetScanResultColumnName(0,"Range%");
    SetScanResult(0,((SymbolData.High - SymbolData.Low) * 100 / SymbolData.Last));


    Range%    2.871795

  10. Hello,

    Number 7 key on number pad does not send 7 in some situations.

    On trade ticket, it send Home.

    On chart, I use 7 for 200 bars shortcut but it only changes the number in drop down, does not change the bar on chart. I have to use number line of keyboard.

    Also non-urgent issue, on the option risk analysis, toggle buy/sell or call/put messes up the graph view. Starts to show opposite direction of chosen.

     

    image.thumb.png.8183631ba804aa0c847cc77b955c79d1.png

  11. Since MT doesn't have window work spaces or tabs, I would like to suggest following that hopefully can be implemented easily.

    Sub-Layout: From MT Dashboard > Windows tab, user selects required windows with CTRL+Click then Right click to save as a sub-layout. This sub-layout can be used to open all the windows in this group.

    User can CTRL+Click items in the Dashboard > Windows as assign a Window group colour or name for easy  window management e.g Minimize/Restore/Close/Move/Lock that apply to all windows in the group. MT currently have a feature to Shift + Arrow to select windows then minimize/Restore them.

×
×
  • Create New...