Jump to content

tgt123

Members
  • Posts

    238
  • Joined

  • Last visited

Posts posted by tgt123

  1. Ok, now I will make Ocn_NXC in the original form for reference and the improved Ocn_NXCx version with ZH marking.

    Then I will remake NDX and NST together into an improved Ocn_NDXNSTx with a single NMA of both of them (thus 3 lines in total) - as is Jim showing in this video:

     

    Awesome! UDS! Great!! Thank you very much!

     

    Then it will be time for BTX/STX.

     

    If anyone has any suggestion what to change, improve or add, just say so.

     

    EDIT: I've got another idea - wherever an indicator has the SD bands, add an optional middle SD line, as Pat is showing close to the end of this video:

     

     

    Awesome! UDS! Great!! Thank you very much!

  2. monstar: that's strange. Only reason why it wouldn't show anything would be if you attached it to a chart which got less than 40 bars of history. But that's hardly the case (if it was the case you can simply hold "Home" key until it loads more bars and then attach the indi again to the chart).

     

    You can also check the "Experts" tab of the "Terminal" window, there may be some error message shown:

     

    http://articles.mql4.com/c/articles/2009/02/expert.png

     

     

    Anyway, test the indis, guys, as I may make a mistake or overlook something. If there is anything wrong or if it doesn't show exactly the same as the TradeStation version (except the discrepancies due to the different price feed), just shout or something :)

     

    Right now I am at 15:38 in the DVD3 video, Pat is explaining the NMS so that will be the next one I guess. It got me a bit angry, though, because NMS uses a linear regression slope function and in TradeStation that's a built-in function, in Metatrader I will have to reprogram it from the scratch.

     

    This is my first experience with TradeStation, I never even tried it before, and I must say it's incomparable to Metatrader. Metatrader to TradeStation is like Windows to Unix. It's got modern look and feel, it's intuitive and what not, but inside it's just dull. There are only as many functions and features as necessary whereas TradeStation is loaded. If it wasn't for the Metatrader Server's virtual dealer plug-in it would probably never got spreaded out among all those bucketshops, a.k.a. retail forex brokers/dealers/scammers/whatever-you-call-them, and consequently among the traders. Oh, well..

     

    Keep up udc!, thanks again.. Weldone!

  3. Next one is the NMM Ocean Index.

    A slight discrepancy (i.e. a missing SD band's zero cross from below on 3/29) is due to the differences in price feeds, the math is correct.

     

    Original NMM Ocean Index on TradeStation:

    http://img195.imageshack.us/img195/7533/oceanindextradestation.png

     

    NMM Ocean Index on Metatrader:

    http://img853.imageshack.us/img853/438/oceanindexmetatrader.png

     

    Original size screenshots:

    http://img651.imageshack.us/img651/7533/oceanindextradestation.png

    http://img40.imageshack.us/img40/438/oceanindexmetatrader.png

     

    #property indicator_separate_window
    #property indicator_buffers 2
    #property indicator_color1 Magenta
    #property indicator_color2 Silver
    #property indicator_level1 0
    #property indicator_levelcolor Gray
    #property indicator_levelstyle 2
    
    extern int     NMM_LB      = 21;
    extern bool    Show_SD     = true;
    extern int     SD_len      = 30;
    extern double  SD_up       = 2;
    extern double  SD_dn       = 2;
    
    double NMM[];
    double SD[];
    
    int init()
    {
     string nmmname = "NMM_Ocean_Index(" + NMM_LB + ")";
     string sdname = "NMM_Ocean_Index_SD(" + SD_len + ")";
     IndicatorShortName(nmmname);
     IndicatorBuffers(2);
     SetIndexBuffer(0, NMM);
     SetIndexLabel(0, nmmname);
     SetIndexBuffer(1, SD);
     SetIndexLabel(1, sdname);
     return(0);
    }
    
    int start()
    {
     int limit, i, counted_bars = IndicatorCounted();
    
     if(Bars <= NMM_LB) return(0);
     if(counted_bars < 0) counted_bars = 0;
     if(counted_bars > NMM_LB) limit = Bars - counted_bars;
     else                      limit = Bars - NMM_LB - 1;
    
     for(i = limit; i >= 0; i--)
       NMM[i] = (MathLog(Close[i]) - MathLog(Close[i+NMM_LB])) / MathSqrt(NMM_LB) * 1000;
    
     if(Show_SD)
       for(i = limit; i >= 0; i--)
         if(i < Bars - NMM_LB - 1 - SD_len)
           {
           if(NMM[i] == 0)     SD[i] = 0;
           else if(NMM[i] > 0) SD[i] = iBandsOnArray(NMM, 0, SD_len, SD_up, 0, MODE_UPPER, i);
           else if(NMM[i] < 0) SD[i] = iBandsOnArray(NMM, 0, SD_len, SD_dn, 0, MODE_LOWER, i);
           }
    
     return(0);
    }
    

     

    The source code is also available for download here:

    http://pastebin.com/RFFngh9g

     

     

    I take it chronologically as Pat is explaining them in the videos, so the next one will probably be NMR. These are the building blocks for the more advanced Ocean indis so even though these may not be the most useful directly I would have to program them anyway.

     

     

    tgt123: I will get to those as well.

     

    Grain Trader: not sure which ones you mean. In some of earlier posts I described what Ocean indis are in the TradeStation package I shared here.

     

    Very Great udc. Thanks again

  4. for example, you opened in mt4 eur usd 1,min , 5,min , 60min charts .Every opened chart is stored in C:\Program Files\sts\history\STS-Demo folder in hts file extension .If you want to update one minute chart , you should delete EURUSD1.hst from this folder , and restart mt4 and then mt4 created fresh one minute chart .So, now you can use the converter .

    Ok, do you catch the point

     

    there is other way - when you use download from options/history in mt4 , files are stored in C:\Program Files\sts\history\downloads,but I am not sure if the downloaded data in this way will be right , because , I did this way in the past and some bars are missing

     

    thanks ivich, that meant we need to RESTART mt4 to get the chart refresh new data feed on ensign which converted. It would be nice if not need to restart mt4,, Thanks anyway for the coverter

  5. instructions for using converter

     

    file/in dir , locate C:\Program Files\sts\history\STS-Demo, files in hts format ,

    they should pop up on the right part of converter

     

    file/ out dir locate c: ensign .it makes foled like minute ,week , day , month there

     

    file save settings

     

    Every chart opeoend as a window in mt4 makes hts file in C:\Program Files\sts\history\STS-Demo

     

    mark charts you want to convert in the right part of converter

    then convert/list/tree ,press ok on the pop window

     

    that is all

     

    IVICH,

     

    Thank for the converter but it seem we have to restart mt4 every time to get the latest data feed converted from converter into Ensign? If not the chart shown on Ensign "stalled at the moment" we first open the mt4?

×
×
  • Create New...