Jump to content
Medved Trader Forums

Mike Medved

Administrators
  • Posts

    1,537
  • Joined

  • Last visited

  • Days Won

    123

Everything posted by Mike Medved

  1. You know you can do Price Alerts indicator instead of trendlines. The advantage is that those would show on both intraday and historical charts and show differently. Then at right click you could have an option to create a new price alert?
  2. ... ? Are you talking about line fitting?
  3. Yes. Check the paintbar coloring options, one of them is full chart background.
  4. You can make it yourself as an advanced paintbar... All you have to do is this: .fctbNone{ color:#000000; } .fctbStyle5{ color:#0000ff; } .fctbStyle1{ color:#a52a2a; } .fctbStyle3{ color:#ff00ff; }public void MainCalculation() { SetColor("VolColor", SysColor.MainIndicator1); SetYValue(BarVolume*(Open+Close+High+Low)/4); } Then place the paintbar on an extra chart at the bottom make its width 1 and shape let's say square. You can even combine Volume and this paintbar into one chart, with one scale on one side and the other on the other.
  5. https://www.medvedtrader.com/trader/WebHelp/variables_and_conditions_secti.htm As for C# - no, hotkeys are their own thing. But they are pretty flexible, especially if you do Variables and Conditionals.
  6. Ok right now we don't have a variable in hotkey that is "account value". We do have "Cash" for the account's cash buying power. (I asked Jerry to add a way to get the account's total value into a system var for a hotkey) Using the Cash Buying Power you would do something like this:
  7. Will be in next beta. The minimize all is easy, the restore all is the one that is awkward. Cuz if everything is minimized, the window does not see the keypress at all.
  8. Mike Medved

    DST issue

    If the alert is as it says: 2:58 DST with "Adjust for DST" checked, then it will trigger at 2:58 eastern. Both during DST and out of DST. In order for it to trigger ALWAYS at market end, make it 3:58pm with Adjust for DST checked...
  9. I am not familiar with what scripting is available on that "stream deck". But if the script can isolate a window and send a keypress to it, then it definitely can execute hotkeys.
  10. well yes. Just have a Variable section that defines a price as a variable (let's say LimPrice). Then add 10 order sections, each for 100 shares, and the limit prices being LimPrice, LimPrice+0.02, LimPrice+0.04 etc
  11. Tell me what you would like to do and I will show you how to do it. We can go from there.
  12. and the same thing for "stop loss 33% at -1.25%, 67% at -1% "
  13. 1. Ok this one: "exit 33% position at 2%, 67% position at 3%" - I presume when you say at 2% you mean 2% above what you paid? If so, here is the hotkey (I will just post a screenshot, not JSON - easier for you to change it for your needs)
  14. It's the same way. You define a new StateFIFOQueue(n) - where n is the period. You use the state function to save state/restore state for that queue. Every maincalc you .Add whatever it is to the queue. The Queue's Average property will hold the average. It also has StDev, WeightedAverage etc...
  15. Ok first - that's a huge paintbar. Second - yes, it is pretty hard to figure out what/why is happening... We do have a method for debugging - you would use the LogString() function which would output a string to the debug stream. See https://www.medvedtrader.com/trader/WebHelp/debugging_paintbars_scans.htm Third - I do have to note that you seem to be accumulating sums and their averages but they seem to be over the WHOLE data space. Is that what you really want? Usually the averages (or highest highs or lowest lows) are done over some period. MT has a perfect class to do that - it is StateFIFOQueue. It is set for a particular period and keeps track of sums, averages, stdevs, highest highs etc for you.
  16. Mike Medved

    Paste API

    It is for people who use something like AutoKey and prefer to use its paste feature. It allows you, instead of sending WSAPI commands over the websocket, instead paste (as in ctrl-V) the command into a window. The doc is the same as WSAPIs. Just the method of delivery is different.
  17. I ran that code all by itself and it is showing the volumes in the scan. Can you send me to support@medvedtrader.com the whole scan - maybe somehow something in the scan is preventing showing the BarVolume.
  18. 1. If you set the right X coordinate to something like 99999, it will always be flush right. 2. The X parameter can be a timestamp. So you can do TradingDay.SessionStart I guess.
  19. Well, we have several color levels but anything past the last one is the same color.
×
×
  • Create New...