fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. kketzal
    3. Posts
    K
    • Profile
    • Following 0
    • Followers 0
    • Topics 9
    • Posts 29
    • Best 0
    • Controversial 0
    • Groups 0

    Posts made by kketzal

    • RE: Import fxDreema Satellite Functions in Custom Blocks

      Hi there!

      Is there any way to import fxDreema satellite functions (_candles, _fResults, etc... ) in my custom blocks??

      Thanks!

      posted in Questions & Answers
      K
      kketzal
    • RE: Custom Loop for Testing Moving Averages

      OK. Sorry. It's solved.
      Yes, I'm using a custom block....the problem was a "indicator Rise/Fail" block...it was with "pass once per bar" parameter selected....that was the problem.

      Thanks!

      posted in Questions & Answers
      K
      kketzal
    • RE: Custom Loop for Testing Moving Averages

      Hi, there!

      I'm trying to do a Custom Loop to check an array of Moving Averages e.g.: (62,100,200,800).
      I want to do a loop for check every MA under certain conditions, so, I need the program flow pass 'N' times ('N' = number of MA in array) I'm using a FOR loop, but the program only test the 62 MA... only test the first element of the array (62)...
      I have seen source code of some FxDreema blocks that do similiar work, and they use FOR loop....

      Can you help me? Any Ideas?
      Thanks in advance.

      posted in Questions & Answers
      K
      kketzal
    • RE: To check if a certain trade is in breakeven...

      Yes, I'm using "BreakEven Point (each trade)" block when the profit is 2:1 (profit = 2 * SL) in all trades.

      I want to open new trades in the same PAIR and the same Timeframe only when the previous trade is in BE.
      It's possible to check if StopLoss Price level is over (or under in SELLs) open price level or anything similar to that???

      Any ideas?

      Thanks in advance.

      posted in Questions & Answers
      K
      kketzal
    • RE: To check if a certain trade is in breakeven...

      Hi there:

      How can I check if a certain trade is in BreakEven??

      Thanks in advance.

      posted in Questions & Answers
      K
      kketzal
    • RE: Closing Pending Orders after 'N' bars

      Ok!

      Thank you so much! ๐Ÿ™‚

      posted in Questions & Answers
      K
      kketzal
    • RE: Closing Pending Orders after 'N' bars

      Yes, I saw it. But, how it works??
      I need to know exact time??? (e.g: close pending order at 22:30:00)
      Or can I use N minutes or N hours to close pending order?? (e.g: close pending order at 115 minutes from open time).

      I want to close pending orders after N candles, e.g:

      TIMEFRAME: 15M
      Number of candles to close pending order: 5 candles

      15 minutes X 5 candles = 75 minutes...

      Can I set 75 minutes in the specified field in my pending orders??
      Or I need to calculate the exact closing clock time?? e.g:

      pending order put on the chart at 13:30:00 GMT + 75 minutes = 14:45:00 GMT....

      Thanks in advance.

      posted in Questions & Answers
      K
      kketzal
    • RE: Closing Pending Orders after 'N' bars

      Hi, there!

      I was thinking about how to close pending orders (order not open yet, only pending orders waiting price level hits the open price) after 'n' bars...in his current timeframe and current pair...
      it's possible?? I want to close pending orders if they aren't open after 'n' bars or candles...

      Thanks in advance.

      posted in Questions & Answers
      K
      kketzal
    • RE: Block Titles Don't Stick

      My actions are "changing block title text"... ๐Ÿ™‚
      ...I'm trying to reproduce problems in a small new project, but no luck... Maybe it's a problem in big projects.... ๐Ÿ˜

      I'll try to detect the problem in future projects....

      Thanks

      posted in Bug Reports
      K
      kketzal
    • RE: Block Titles Don't Stick

      mmmm...can you check CONDITION BLOCK??? I think this block is the most problematic...
      I have a hundred (more or less) of blocks in my projects...is it problematic??? OR it's a local version problem???

      Thanks.

      posted in Bug Reports
      K
      kketzal
    • RE: Block Titles Don't Stick

      mmm...Saving block title works in a random way... I think.
      Sometimes you can save new block title text, and sometimes the old title reappears... sometimes the new block title text is saved... I'm using the "click in block again" method to save block title...
      It's very frustrating... ๐Ÿ˜

      posted in Bug Reports
      K
      kketzal
    • RE: FEATURE REQUEST: "Save As..." option

      Hi there!

      It's possible to add a "Save As..." option to save a project with other name???

      I'd like to make a Project ("Project A"), and if I want to add or delete some modifications and then save as: "Project A v1.1", for example...

      Is this possible now?? How???

      Thanks in advance.

      posted in Questions & Answers
      K
      kketzal
    • RE: #include <somelibrary.mqh> doesn't work on Library Studio

      I don't know... ๐Ÿ™‚

      Other problem with #includes....if I have 2 Fxdreema blocks importing MQL4 Standard Library files in the fxdreema "Global Variables, Includes" area, only one MQH file is imported in Fxdreema generated code...

      Fxdreema Block 1 (block put in OnTick fxdreema area):

      
      #include <Arrays\ArrayString&#46;mqh>
      
      

      Fxdreema Block 2 (block put in OnInit fxdreema area):

      
      #include <Controls\Dialog&#46;mqh>
      
      

      Only the second one is included on fxdreema MQL4 generated code.

      posted in Bug Reports
      K
      kketzal
    • RE: #include <somelibrary.mqh> doesn't work on Library Studio

      Hi:

      I think that "undeclared identifier" MetaEditor error can be solved rewriting variables "tt, ask, bid" declaration, like this:

      error_metaeditor.jpg

      Putting the variables declaration out of the IF code block:

      error_metaeditor2.jpg

      I don't know if you can get side effects in this change.... ๐Ÿ˜, but no compiler errors are shown.

      ......
      error_metaeditor.jpg
      error_metaeditor2.jpg

      posted in Bug Reports
      K
      kketzal
    • RE: #include <somelibrary.mqh> doesn't work on Library Studio

      mmmm the second file "MiVentana.mqh" isn't being uploaded....I try again with code marker:

      
      //+------------------------------------------------------------------+
      //|                                                    MiVentana&#46;mqh |
      //|                        Copyright 2014, MetaQuotes Software Corp&#46; |
      //|                                              http://www&#46;mql5&#46;com |
      //+------------------------------------------------------------------+
      #property copyright "Copyright 2014, MetaQuotes Software Corp&#46;"
      #property link      "http&#58;//www&#46;mql5&#46;com"
      #property version   "1&#46;00"
      #property strict
      
      #include <Controls\Dialog&#46;mqh>
      // #include <Controls\Panel&#46;mqh>
      #include <Controls\ComboBox&#46;mqh>
      #include <Controls\Label&#46;mqh>
      
      #define X_START 0
      #define Y_START 0
      #define X_SIZE 280
      #define Y_SIZE 300
      
      //+------------------------------------------------------------------+
      //|                                                                  |
      //+------------------------------------------------------------------+
      class MiVentana &#58; public CAppDialog
        {
      private&#58;
      
         CComboBox         m_combo_box;
           //--- labels
         CLabel            m_label;
         
         //--- current value of the array type from the combo box
         int               m_combo_box_value;
        
      public&#58;
         MiVentana();
         ~MiVentana();
         virtual bool      Create(const long chart,const string name,const int subwin,const int x1,const int y1,const int x2,const int y2); 
         //--- handler of chart events
         virtual bool      OnEvent(const int id,const long &lparam,const double &dparam,const string &sparam);
         
        
         
      protected&#58;
         //--- create labels
         // bool              CreateLabel(CLabel &lbl,const string name,const int x,const int y,const string str,const int font_size,const int clr);  
         virtual bool              CreateComboBox(void);  
         virtual void              OnChangeComboBox(void);
        };
        
      //+------------------------------------------------------------------+
      //| Handling events                                                  |
      //+------------------------------------------------------------------+
      EVENT_MAP_BEGIN(MiVentana)
      /*
      ON_EVENT(ON_CLICK,m_button_add,OnClickButtonAdd)
      ON_EVENT(ON_CLICK,m_button_free,OnClickButtonFree)
      */
      ON_EVENT(ON_CHANGE,m_combo_box,OnChangeComboBox)
      EVENT_MAP_END(CAppDialog)
      //+------------------------------------------------------------------+
      //|                                                                  |
      //+------------------------------------------------------------------+
      MiVentana&#58;&#58;MiVentana()
        {
        }
      //+------------------------------------------------------------------+
      //|                                                                  |
      //+------------------------------------------------------------------+
      MiVentana&#58;&#58;~MiVentana()
        {
        }
      //+------------------------------------------------------------------+
      bool MiVentana&#58;&#58;Create(const long chart,const string name,const int subwin,const int x1,const int y1,const int x2,const int y2)
        {
      //--- calling the method of the parent class
         if(!CAppDialog&#58;&#58;Create(chart,name,subwin,x1,y1,x2,y2))  
            return(false);
            
           //--- create labels
         // if(!CreateLabel(m_label,"Estrategias",X_START+10,Y_START+5,str_physical,12,clrBlack))
         //    return(false);
       
      //--- create control elements
         if(!CreateComboBox())
            return(false);
            
      //--- success
         return(true);
        }
        
        
        //+------------------------------------------------------------------+
      //| Create a combo box                           |
      //+------------------------------------------------------------------+
      bool MiVentana&#58;&#58;CreateComboBox(void)
        {
      //--- create the combo box
        if(!m_combo_box&#46;Create(m_chart_id,"type_combobox",m_subwin,X_START+100,Y_START+110,X_START+200,Y_START+230)) 
        {
            Alert("problema creando el combo");
            Alert(IntegerToString(GetLastError()));
            return(false);
         }
           
      //--- add elements to the combo box
         if(!m_combo_box&#46;ItemAdd("PiratePips",0))
         {
          Alert("problema creando el primer item del combo");
          return(false);
          }
            
         if(!m_combo_box&#46;ItemAdd("PiratePips with ATR Projectios",1))
         {
            Alert("problema creando el segundo item del combo");
            return(false);
          }
       
      //--- store the current combo box element
         m_combo_box_value=0;
      //--- add the combo box to control elements
       
         if(!Add(m_combo_box))
         {
            Alert("problema aรฑadiendo el combo a la ventana");
            return(false);
            
            }
           
      //--- successful execution
         return(true);
        }
        
        //+------------------------------------------------------------------+
      //| Handler of the combo box change event                            |
      //+------------------------------------------------------------------+
      void MiVentana&#58;&#58;OnChangeComboBox(void)
        {
      //--- check if the array's type has changed
         if(m_combo_box&#46;Value()!=m_combo_box_value)
           {      
            //--- work with another array type
            m_combo_box_value=(int)m_combo_box&#46;Value(); 
            
           }
           
        }
      
      
      posted in Bug Reports
      K
      kketzal
    • RE: #include <somelibrary.mqh> doesn't work on Library Studio

      Attached 2 MQL4 Files, the last one, and the include file that i think it's doing fxdreema code errors.

      Thanks.

      ......
      PirateAlarm.mq4

      posted in Bug Reports
      K
      kketzal
    • RE: #include <somelibrary.mqh> doesn't work on Library Studio

      Ok. With MetaEditor I can compile, so It's not a critical bug.

      I have another error with fxdreema code generated. It's only when I #include a custom class that work with graphical components (Dialog.mqh, ComboBox.mqh, etc...). This is the error in the fxdreema code:

      ......
      error_metaeditor.png

      posted in Bug Reports
      K
      kketzal
    • RE: #include <somelibrary.mqh> doesn't work on Library Studio

      The same errors are shown with a new fxdreema project with no blocks... ๐Ÿ˜ฎ

      thanks.

      posted in Bug Reports
      K
      kketzal
    • RE: #include <somelibrary.mqh> doesn't work on Library Studio

      Ok. MQL4 file attached.

      ......
      PirateAlarm.mq4

      posted in Bug Reports
      K
      kketzal
    • RE: #include <somelibrary.mqh> doesn't work on Library Studio

      __I don't remember why I decided to add " = 0;" to global variables that does not have value, but I think now with the new MQL4 there will not be a problem for those variables to not have value.
      Reuploaded again with this thing fixed.
      [/quote:3peifwp5]

      Thanks!

      __
      More details about the last error? Maybe some link to a file to be included does not exists?
      Does MetaEditor reports the same errors?[/quote:3peifwp5]

      In MetaEditor works fine. I test 2 EA and same errors are shown. I change to other computer and I think the error is about "Program Files/MetaTrader" or anything in that way.... This error is with new rebuilds uploaded, maybe. ๐Ÿ˜

      ......
      error_fxdreema.jpg

      posted in Bug Reports
      K
      kketzal
    • 1
    • 2
    • 1 / 2