Announcement

Collapse
No announcement yet.

Multiple Timeframe with False Bars

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Multiple Timeframe with False Bars

    Hello All

    I have searched and with not luck have I been able to find examples of the following:

    Does anyone know if it is possible to create an EFS the can check for this condition:

    - if there is an upper false bar on the 1 min chart, at the same time when there is an upper false bar on a 2 min chart, at the same time when there is an upper false bar on a 3 min chart.
    (All within one EFS)

    Or any other timeframes for that matter.

    Thanks for anyone who takes the time to read or responds to my question

    Royce

  • #2
    This can be done, but it requires a bit of work. If you want to try to do it all in one EFS, then I would setup the price variables needed to find your "upper false bar". I'm assuming you need all the OHLC values - right??

    PHP Code:
    //=========  Global Variables
    //  Place at top, outside main().
     
    var v1mPrice = new array();
     var 
    v2mPrice = new array();
     var 
    v3mPrice = new array();
    //  End Global Variables



    function fGetPriceData() {
     var 
    x;
     
    v1mPrice = new array();
     
    v2mPrice = new array();
     
    v3mPrice = new array();


     for (
    x=0x>-4;x--) {  //  only getting last three bars of data
    //=====================================
    // setup 1 minute data
       
    var v1mOpen open(x, (""+getSymbol()+",1"));
       var 
    v1mHigh high(x, (""+getSymbol()+",1"));
       var 
    v1mLow low(x, (""+getSymbol()+",1"));
       var 
    v1mClose close(x, (""+getSymbol()+",1"));
       var 
    Price_OBJ = new Object;
          
    Price_OBJ.Open v1mOpen;
          
    Price_OBJ.High v1mHigh;
          
    Price_OBJ.Low v1mLow;
          
    Price_OBJ.Close v1mClose;
        
    //  place price data into array
         
    v1mPrice.push(Price_OBJ);

    //=====================================
    // setup 2 minute data
       
    v1mOpen open(x, (""+getSymbol()+",2"));
       
    v1mHigh high(x, (""+getSymbol()+",2"));
       
    v1mLow low(x, (""+getSymbol()+",2"));
       
    v1mClose close(x, (""+getSymbol()+",2"));
       var 
    Price_OBJ = new Object;
          
    Price_OBJ.Open v1mOpen;
          
    Price_OBJ.High v1mHigh;
          
    Price_OBJ.Low v1mLow;
          
    Price_OBJ.Close v1mClose;
        
    //  place price data into array
         
    v2mPrice.push(Price_OBJ);

    //=====================================
    // setup 3 minute data
       
    v1mOpen open(x, (""+getSymbol()+",3"));
       
    v1mHigh high(x, (""+getSymbol()+",3"));
       
    v1mLow low(x, (""+getSymbol()+",3"));
       
    v1mClose close(x, (""+getSymbol()+",3"));
       var 
    Price_OBJ = new Object;
          
    Price_OBJ.Open v1mOpen;
          
    Price_OBJ.High v1mHigh;
          
    Price_OBJ.Low v1mLow;
          
    Price_OBJ.Close v1mClose;
        
    //  place price data into array
         
    v3mPrice.push(Price_OBJ);
     }

    With the function above, you can now call and populate the arrays at any time in your efs for your 1, 2 and 3 minute data.

    Now all you have to do is write your conditions for the "false upper bar"...

    PHP Code:
      
    //======================================
    //  Find Price Patterns
      
    if ((v1mPrice[0].High v2mPrice[0].High) && 
          (
    v1mPrice[0].Low v2mPrice[0].Low) &&
          (
    v1mPrice[0].Close v2mPrice[0].CLose) ) {
    //.....   fire pattern

    Let me know if this helps??
    Last edited by Doji3333; 01-16-2008, 01:44 PM.
    Brad Matheny
    eSignal Solution Provider since 2000

    Comment


    • #3
      WOW

      Thank you so much for providing this information, I will be working on it this weekend. I am sure I will have a lot of questions, (which I will post).

      Thanks again

      Comment

      Working...
      X