Jump to content
Medved Trader Forums

Doug Hayman

Members
  • Posts

    293
  • Joined

  • Last visited

  • Days Won

    5

Posts posted by Doug Hayman

  1. I was wondering if this can somehow be accomplished in C# Advanced Paintbars:

    A couple of preliminary items:

    1) I am using Renko Bars (4 points) for futures;

    2) I am doing this as part of my back testing  efforts;

    Renko bars get timestamped (TimeStamp) when the Renko bar is created.  In my back testing logic, I want to close any simulated trade, say within 15 minutes of market close.

    So, as an example, let's say a trade fires off, and my last Renko Bar has a TimeStamp of 15:24:25.  16:00:00 comes around (15 minutes of market close), and I'm still in that same Renko bar.   I cannot check the TimeStamp of the Renko Bar to see if we're at 4:00 PM, since the TimeStamp associated with that bar is 15:24:25.  I tried creating a variable of type "DateTime CurTime", but I get the following error on declaration, "96, 16    CS0103    Possible security violation".   Not sure that would have given me the desired result anyway, as it might provide current system time (that is, the time when I run the back test), as opposed to the current time with the Bar.

    Is there any way that I can check the system time, while within the Renko Bar, via logic?  

    Thank you in advance.

     

  2. Jerry, sorry forgot to post, due to busy weekend with family.   It is now working again via Email to me.   The SMS text-to-Emails from last week all came in late Friday night, as if they were queued up.  And I tested one yesterday (Sat morn), and it came in, in real-time.   Could it be that your SMS-to-Email server/service was down last week?

  3. Jerry, I'm in need of sending SMS text messages to myself when I away from my computer.  I had this working in the past, where I had C# code in my paintbar fire off when a new bar was created:

     

             if (Close > Open)
             {
                 TriggerAlert("NewCandle2", "Up: " + Close.ToString() + " Time: " + Timestamp.AddMinutes(-240).ToString());
             }
             else
             {
                 TriggerAlert("NewCandle2", "Down: " + Close.ToString() + " Time: " + Timestamp.AddMinutes(-240).ToString());
             }            

    
    
    

    This alert (NewCandle2) is enabled for this paintbar, and I have SMS enabled with my cell telephone #.   Recall I have Verizon as my carrier, and due to Verizon issue, SMS didn't work.   However, you created and Email Entry for me for my drop-down (which still exists), that allowed me to send text to myself thru Email, while Verizon was selected as the carrier.

    This all worked awhile back, but is no longer working.   Has something changed in MT that would prohibit this from working?

    Thanks in advance.

  4. Hey guys,

    Just downloaded latest Beta with Hot Key functionality, and can already see this will be a winner!

    In fairly quiescent ES markets, I like creating Stop Orders with Trailing Stops.  Since most brokers (definitely IB) don't support Stop/TrailingStop conditional order types, I created Hot Keys for submitting desired Trails (one for Buy; one for Sell), which is way better than having to manually enter Trails after order executes.

    Next Up:  Figuring out how to generate Buy/Sell Trails dynamically, based on direction of current Order Type.

    After That:  Devising Hot Keys to Scale out of multi-contract positions.

    Thanks for this!

  5. Hi Mike,

    Just curious when the ETA for release will be on this?

    I mentioned one thing I'm interested earlier in this thread (multiple contracts with defined scale outs).

    Here's another simpler one I'm interested in.  Since IB (and prob most brokers) don't support OCA/OTA Stop Orders with an opposing Trail Stop leg, I would like to do the following:

    1) Simple AUTO DOM order that will allow me to buy/sell a Limit/Stop order at a price of interest;

    2) Once trade executes, availability of a defined hot key that will execute a Trail $/Trail % Stop order calculated as an offset to my entry price;

    Will that be achievable?    Thank you.

  6. FYI, I tried an AUTO->OCA trade today (MES Long with 3.25 point trailing stop).  As price moved up beyond 3.25 gain, the Trailing Stop didn't move up at all with it.  All of a sudden it, the Trailing Stop jumped 5 points, and then trailed appropriately.   This happened three times today.

    I check the resources of my laptop to make sure CPU and Memory wasn't pegged at 100% or something, but I had plenty of available resources.

    Could this be IB misbehaving again?

  7. I can login from my main PC OK to MT, but am unable to login from my laptop (keeps prompting me for username/password).  Weird since, both machines are on my home network.

    I notice that website MedvedTrader.com is inaccessible currently via the Web, and I get a TimeOut when trying to ping it.

    Thanks.

×
×
  • Create New...