Jump to content

ryaz

Members
  • Posts

    133
  • Joined

  • Last visited

Posts posted by ryaz

  1. Re: Terrific Ea Genius with IQ 160

     

    Is the GENIUSv101 version here exactly the same as the one that you originally posted on July 9, please? What is this Bollinger Bands.mq4 doing here for? Is it a standalone EA as well?

    Well v1.01 was a modification I made to the original EA posted here by the thread owner who was banned later on. BBands are for additional logic contained in the EA but not used in this version. I'm not posting newer versions because this was spread in the web and often mistaken for Fx Genius.

    regards

  2. Re: Hodrick Prescott Indicator

     

    ...i try to figure out how this stuff works... pls advise...

    Actually it isn't a real MA like HMA but shows the HPF value at any given bar. The HPF constantly changes to best fit the data and shows the current trend by removing the noise from the data. So it's basically a trend indicator that you can use it in many ways either alone or as a tool to establish trend for other systems or even set limits for entering/exiting, to name a few.

    need help with this....

    Correct "lamda" to "lambda" as mentioned earlier

    regards

  3. Re: Hodrick Prescott Indicator

     

    ...Can any one put alert on this for colour changes? ...

    Just wait because ver 1.02 will have audio and visual aletrs among other (I even consider some type of convergence/divergence equivalent that I'm testing and looks very promising). For now I'd like your opinion on its usefulness compared to low lag MAs or other indies like CoG (for the filter).

    regards

  4. Re: Hodrick Prescott Indicator

     

    Peachy ;)

    Cheers peachess

    Here's ver 1.01 for you with a lot more features, like selectable trend strength, no trend detection, filter bands and selectable price bands (disabled if band=0) and display of the Hodrick Precott filter (disabled if trend=0). The HP filter repaints and it's use resembles Center of Gravity, it is disabled from screen for trend=0. The HPMA and the bands don't repaint except for the last bar where repainting can be turned off by setting repaint=false. Increasing the nobs param will increase execution time, the smoothness is increased as labda increases, and trend change detection tends to be slower as trend param increases.

    [spoiler:1uztao4u]http://stashbox.org/655677/h1.rar

    p.[h1]ryaz[/spoiler:1uztao4u]

    regards

  5. Re: [Help] Anyone who know the Ex4 file struct ?

     

    ...Anyone who know the Ex4 file struct ...

    http://ex4-to-mq4.by.ru/struct_ex4.html

    Offset Type Description

    +000 char[4] 'EX4'0

    +004 int version: 427 or 428

    +008 int header size: 0x17C

    +00C char[80h] copyright

    +08C char[80h] link

    +10C byte[70h] some header data

    +17C byte[] blocks

     

     

    blocks:

    +000 int type

    +004 byte[] content

    ...

     

    type:

    00 - extern

    01 - strings data

    02 - arrays data

    03 - globals

    04 - init strings

    06 - include

    07 - import

    08 - functions

    09 - code

    0A - relocation

    0B - arrays definition

    0C - crypt key

  6. Re: Hedge Trading #1 - EUR & CHF

     

    ...As to the guys point that trading EURSD and USDCHF is similar to trading EURCHF.

    Yes, it's similar, but I also agree with Don that when betting on one pair (EURCHF) it is less safe than trading its components (EURSD and USDCHF) which are only fluctuates between each other with certain level of correlation and drawdown happens when correlation either on its top (if we opened our trades on correlation bottom) or vice versa.

    ...

    Wrong

    Always EURUSD*USDCHF/EURCHF~1, if not there is an arbitrage opportunity

    The decorrelation of EURUSD and USDCHF happens because EURCHF price changes, and vice versa there is larger correlation between EURUSD and USDCHF because EURCHF is less volatile.

    So buy EURUSD-USDCHF is EXACTLY THE SAME thing as buy EURCHF (if you adjust lots), the only difference beeing the spread you pay. The exception is a quite large price movement that affects the proper lot wheighting between pairs.

    if buy EU buy UC sell EC: (EURUSD+spread)*(USDCHF+spread)/EURCHF always >1 for the same broker (unless your broker is a dumbhead)

    if sell EU sell UC buy EC: EURUSD*USDCHF/(EURCHF+spread) always <1 for the same broker (unless your broker is a dumbhead)

    regards

  7. Re: Good Indicator Need small fix

     

    A much smaller and better version

    #property indicator_chart_window
    #property indicator_buffers 4
    #property indicator_color1 Red
    #property indicator_color2 Black
    #property indicator_color3 Blue
    #property indicator_color4 Black
    
    double buf0[];
    double buf1[];
    double buf2[];
    double buf3[];
    extern int Rperiod = 18;
    extern int LSMA_Period = 20;
    int AllBars;
    int bar;
    int r;
    int CBars;
    int Last;
    double rofs;
    double rsum;
    
    int init() {
      IndicatorBuffers(7);
      SetIndexBuffer(0, buf0);
      SetIndexStyle(0, DRAW_LINE, STYLE_SOLID, 1);
      SetIndexBuffer(1, buf1);
      SetIndexStyle(1, DRAW_NONE);
      SetIndexBuffer(2, buf2);
      SetIndexStyle(2, DRAW_LINE, STYLE_SOLID, 1);
      SetIndexBuffer(3, buf3);
      SetIndexStyle(3, DRAW_NONE);
      return (0);
    }
    
    int start() {
      if (Last==0) 
        CBars = Bars - 6 - 2*Rperiod;
      else
        CBars = iBarShift(NULL,0,Last);  
      Last=Time[0];
      rofs = (Rperiod + 1)/3.0;
      for (bar = CBars; bar >= 0; bar--) {
         rsum = 0;
         for (r = Rperiod; r >= 1; r--)
            rsum += (r - rofs) * Close[Rperiod - r + bar];
         buf0[bar] = 6.0 * rsum / (Rperiod * (Rperiod + 1));
         buf1[bar] = buf0[bar + 1] + 2.0 * (buf0[bar] - buf0[bar + 1]) / (LSMA_Period + 1);
         buf2[bar] = buf0[bar];
         buf3[bar] = buf1[bar];
         if (buf0[bar] < buf1[bar]) {
            buf3[bar] = EMPTY_VALUE;
            buf2[bar] = EMPTY_VALUE;
         }
      }
      return (0);
    }
    

    regards

  8. Re: Squelch Those Whipsaws

     

    Yet another version of the squelch filter parametrised and combined with the sinewave indicator

    [spoiler:15s4tfur]http://www.forexsharing.com/347560

    p.[ss]ryaz[/spoiler:15s4tfur]

    The use of it is like a confirmation indi:

    Blue line is above = trend is up (may enter long)

    Red line is above = trend is down (may enter short)

    Grey line appears = no trend (may enter using CT strategy)

    Blue/Red lines converge = trend is about to change

     

    Standalone use suggestion:

    Like any trend indi works better on higher TFs lets say M15 and above

    You may enter trades if no grey line appears

    Enter long > if previous 2nd order swing high is breached

    Enter short > if previous 2nd order swing low is breached

    Stop Loss > on opposite 2nd order swing point

    Take profit > 200% swing high-swing lo difference

    Partial exit> on 50% swing high-swing lo difference

    Exit > when trend is about to change OR you name it

    regards

×
×
  • Create New...