Jump to content

luxinterior

⭐ V.I.P.
  • Posts

    43
  • Joined

  • Last visited

Posts posted by luxinterior

  1. Here you go, fellas. This is a 7z archive with all the Ichimoku and advanced price action course materials:

     

    [/color]http://www.4shared.com/archive/4P5Ev3oNba/Chris_Capre_Courses.html[color=#333333]

     

    Thanks for the link! Which broker do you use for options and can you recommend any good courses? I read what you said in another post about Forex being a money sucker and I totally agree. :)

     

    L

  2. Thanx for the reply, but that only means that it will be plotted on a separate window and not on the main price chart window.

     

    You said you wanted it in the main chart and that's what '#property indicator_chart_window' does.

     

    I played with it for a bit and fixed the code. It doesn't actually make sense to put it in the main chart as the values don't relate to price.

     

    Sounds like you've got it sorted out know so I guess you're set.

     

    Lux

  3. What does LTP stand for?

     

    Put this together quickly based on your above formula but not sure what it's supposed to be showing.

     

    //+------------------------------------------------------------------+
    //|                                                   #krishna79.mq4 |
    //|                      
    //+------------------------------------------------------------------+
    
    
    /*
      Yesterday close = 4921 (A)
      Current price (LTP) = 4863 (B)
    
      1. Percentage = ((B-A)/B)*100
    
      2. Price difference = B - A
    */
    
    #property indicator_chart_window
    //+------------------------------------------------------------------+
    //| Custom indicator initialization function                         |
    //+------------------------------------------------------------------+
    int init()
     {
    //---- indicators
    //----
      return(0);
     }
    //+------------------------------------------------------------------+
    //| Custom indicator deinitialization function                       |
    //+------------------------------------------------------------------+
    int deinit()
     {
    //----
      
    //----
      return(0);
     }
    //+------------------------------------------------------------------+
    //| Custom indicator iteration function                              |
    //+------------------------------------------------------------------+
    int start()
     {
      
    //----
      static double dYesterdaysClose;
      
      // check for new day 
      if(dYesterdaysClose == 0 || NewDay()){
         dYesterdaysClose = iClose(Symbol(),PERIOD_D1,1);
      }
      
      Comment(DoubleToStr(((dYesterdaysClose-Bid)/Bid)*100,2));
      
    //----
      return(0);
     }
    //+------------------------------------------------------------------+
    
    bool NewDay(){
    static datetime LastTime = 0;
    
    if (iTime(Symbol(),PERIOD_D1,0) != LastTime) {
    	LastTime = iTime(Symbol(),PERIOD_D1,0) ;		
    	return (true);
    } else
    	return (false);
    }
    

     

    Lux

  4. Without having the source code you're some what limited and even if you have a decompiled version the variable names are usually messed up which makes things hard (though not impossible). Adding BE code would just require you to place a 'CheckBE' function in the logical flow of the code. Of course you'd need to write your own function or you can simply clone/rip/steal one from the millions of EA's that use them.

     

    Another alternative for those who don't have the source is to just have another chart of the same pair running with your own EA that uses the same magic numbers and looks to check BE. Depending on how the real EA is coded you may be able to do it ok or find you have massive problems.

     

    Probably not the 'cut and paste' simple answer you were looking for but hopefully it's food for thought and will give you some ideas to solve your problem.

     

    Good luck

     

    L

×
×
  • Create New...