Mike Medved
Administrators-
Posts
1,539 -
Joined
-
Last visited
-
Days Won
123
Content Type
Profiles
Forums
Blogs
Gallery
Downloads
Events
Everything posted by Mike Medved
-
This is for a historical chart, right? .fctbNone{ color:#000000; } .fctbStyle8{ color:#000000; } .fctbStyle5{ color:#0000ff; } .fctbStyle7{ color:#800000; } .fctbStyle6{ color:#808080; } .fctbStyle2{ color:#008000; }StateFIFOQueue Highs; Double AllTimeHigh = 0; public void MainCalculation() { AllTimeHigh = Math.Max(AllTimeHigh,High); Highs.Add(High); Double H,L; Highs.GetHighLow(out H, out L); SetColor("Line Color", Color.Green); if (H == AllTimeHigh) SetYValue(H); else SetYValue(YSkipValue); } /// <summary> /// Is called at start of paintbar calculation, should be used to initialize anything needed for the paintbar /// </summary> private void PaintbarInitialize() { Highs = new StateFIFOQueue(90); } /// <summary> /// Is called at start of paintbar calculation, should be used to clear the paintbar state /// </summary> private void PaintbarClearState() { Highs.Clear(); } /// <summary> /// Saves paintbar state (called internally). /// </summary> private void PaintbarSaveState() { Highs.SaveState(); } /// <summary> /// Restores paintbar state (called internally). /// </summary> private void PaintbarRestoreState() { Highs.RestoreState(); }
-
Quote box shows the current quote for the stock. Trace box shows the data for the candle under the cursor. ... and you can move the boxes if they obscure things. You can also change what is displayed in the boxes.
-
Press Shift as you're moving the mouse over the chart. The Trace box will show up and the full-chart crosshair. Click on the little gear on the Trace box and change it to "Always Show". You also have settings in Settings / Charts / General - under the Tracing section.
-
2 DMA crosses 8 DMA
Mike Medved replied to mastertrader's topic in Scan and Paintbar Help/Discussion
-
IB Hotkeys Getting Price Variation for Contract Error
Mike Medved replied to dubcanada's topic in Support
I also changed the code so that the prices will be rounded to trading increments automatically. -
You create a hotkey, set the Order to be StopMarket, with the Stop Price of Price - 0.15. Then you assign a key to it. And execute it on a chart or on DOM etc..
-
I hope (and presume) that by "current bar" you mean the last candle on the chart. Added: BarHigh BarLow and BarOpen - only for hotkeys executing on Chart windows.. Will be in next beta.
-
IB Hotkeys Getting Price Variation for Contract Error
Mike Medved replied to dubcanada's topic in Support
https://www.medvedtrader.com/trader/WebHelp/variables_and_conditions_secti.htm look for round, floor, ceil functions and their variants. -
What is the correct format to login to the websocket?
Mike Medved replied to Roger's topic in Support
"pwd". I will change it to accept "password" as well. Sorry about that. -
Mouse pointer in way of Company Name
Mike Medved replied to timtrader's topic in Bug Reporting - Public
Will be in next beta. -
UNABLE TO CHANGE THE BACKGROUND COLOR OF THE OVAL SHAPE
Mike Medved replied to mastertrader's topic in Support
Was screwed up at some point. Fixed will be in next beta release. -
UNABLE TO CHANGE THE BACKGROUND COLOR OF THE OVAL SHAPE
Mike Medved replied to mastertrader's topic in Support
Put your cursor on the line of the oval. Right click. In the parameter popup that shows, check the "Fill Color" checkbox, change the color and opacity. -
Text-to-speech is coming - for Alert notifications
Mike Medved replied to Mike Medved's question in Feature Requests
Well the most common placeholder really is [DESC] which I would need to generate using bogus data.. I will look at it. -
Text-to-speech is coming - for Alert notifications
Mike Medved replied to Mike Medved's question in Feature Requests
Since the entered text contains place holders that need to be inserted, and I would need to generate bogus data in order to do that, I just decided to put a phrase in, since the point there is to test the voice and speed... Overlaps: if not checked, the spoken phrases will be sequential. That is, if two alerts are triggered very close to each other, the speech from the two will not overlap. I will put in a ( ? ) in there to explain it. -
Adjustment of Trailing Stop on DOM Not Working Properly at Times
Mike Medved replied to Doug Hayman's topic in Support
Yippee. -
Adjustment of Trailing Stop on DOM Not Working Properly at Times
Mike Medved replied to Doug Hayman's topic in Support
Doug, check, it should be working in current beta. -
How to reference a candle with timestamp
Mike Medved replied to BlueCollarDayTrading's topic in Support
Well, was the 9am candle Green? Because if it was, then it would show green band. Export your paintbar and send it to us support@medvedtrader.com -
How to reference a candle with timestamp
Mike Medved replied to BlueCollarDayTrading's topic in Support
Ah ok. I misunderstood. Boolean Green9AMCandle; DateTime PrevTimeStamp; public void MainCalculation() { var Cutoff = TradingDay.SessionStart.AddMinutes(-30); if (Timestamp >= Cutoff && PrevTimeStamp<=Cutoff) { Green9AMCandle = Open>Close; } PrevTimeStamp = Timestamp; if (Green9AMCandle) { ... do something here... } } -
How to reference a candle with timestamp
Mike Medved replied to BlueCollarDayTrading's topic in Support
"How can I check if a candle close is greater than a candle open at 9am EST" - the "candle close" in that statement - is that at 9am or is it current? If current - then this code: (make sure you run it with extended hours turned on) Double At30MinBeforeSessionStart=0; // Open of first candle that shows up at 30 minutes or less before session start DateTime PrevTimeStamp; public void MainCalculation() { var Cutoff = TradingDay.SessionStart.AddMinutes(-30); if (Timestamp >= Cutoff && PrevTimeStamp<Cutoff) { At30MinBeforeSessionStart= Open; } PrevTimeStamp = Timestamp; // this checks if current Close is greater than the Open at 9am if (Timestamp >= TradingDay.SessionStart && Close > At30MinBeforeSessionStart) // checks if in regular session AND close > open-at-9am { ... do something here... } } -
How to reference a candle with timestamp
Mike Medved replied to BlueCollarDayTrading's topic in Support
It can be done pretty easily - but not directly. The thing is, the paintbar/scan always runs through ALL the candles it has before it starts chugging on incoming data with the last candle only. So look at this. Note that I am doing the PrevTimestamp thing just to make sure it records the first candle at after 10 minutes after session start - in case there is no candle exactly at 10 min after session start. Modify it to change the time you're checking. Double At10MinAfterSessionStart=0; // Close of first candle 10 minutes after session start or after DateTime PrevTimeStamp; public void MainCalculation() { var Cutoff = TradingDay.SessionStart.AddMinutes(10); if (Timestamp >= Cutoff && PrevTimeStamp<Cutoff) { At10MinAfterSessionStart = Close; } PrevTimeStamp = Timestamp; }