fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    1. Home
    2. Abade69
    3. Posts
    • Profile
    • Following 0
    • Followers 3
    • Topics 33
    • Posts 125
    • Best 10
    • Controversial 1
    • Groups 0

    Posts made by Abade69

    • Help With Fibonacci

      How can i use "candle crosses" condition with fibonacci retracement levels?

      I found this example:

      https://fxdreema.com/shared/tprHFn18e

      But ain't working. And when i try to use the built-in "object on chart: Level value" Nothing happens 😕

      0_1486007995725_upload-d7b3bcbf-c7aa-47c5-9731-a9d4ca9fa9a5

      Also noticed my desktop version of Fxdreema doesn't include an option to save formula results in variables (instead of putting them into results, then modify variable). Like this:

      0_1486008117698_upload-df43c462-44f5-4098-8345-e071493834f3

      Instead i got this:

      0_1486008162275_upload-cd7b9a6f-1bb7-44b6-873a-4c7db32af511

      posted in Questions & Answers
      Abade69
      Abade69
    • RE: Why are all of my constants and variables treated as "empty"?

      Nevermind, i have to define them with blocks too 😆 Edit: Just realized i have to use "value" instead of "terminal variables" for the thing i want to do.

      posted in Questions & Answers
      Abade69
      Abade69
    • RE: Why are all of my constants and variables treated as "empty"?

      I could use them before, but now it seems i can't. All the values are set to 21474836, it doesn't matter how i define and configure them.

      posted in Questions & Answers
      Abade69
      Abade69
    • RE: Help with Custom MQL4 code

      Is there any other way to loop that code with FxDreema? (or any way to change time frames with the existent blocks). I really don't wanna use autokey macros. Also, the block builder has bugs: Everytime i try to click something it minimizes itself, it saved my first block and can use it, but not the second one (for some reason).

      posted in Questions & Answers
      Abade69
      Abade69
    • RE: Help with Custom MQL4 code

      I want to use the following code inside an EA:

      //+------------------------------------------------------------------+
      //|                                                 ChangeTF-All.mq4 |
      //|                                         Copyright © 2010, zznbrm |
      //+------------------------------------------------------------------+
      #property copyright "Copyright © 2010, zznbrm"
      #property show_inputs
      
      #import "user32.dll"
         int      PostMessageA(int hWnd,int Msg,int wParam,int lParam);
         int      GetWindow(int hWnd,int uCmd);
         int      GetParent(int hWnd);
      #import
      
      #define GW_HWNDFIRST 0
      #define GW_HWNDNEXT  2
      #define WM_COMMAND   0x0111
      
      extern int eintTF = PERIOD_W1;
                         
      int start()
      {      
         bool blnContinue = true;   
         int intParent = GetParent( WindowHandle( Symbol(), Period() ) );   
         int intChild = GetWindow( intParent, GW_HWNDFIRST );  
         int intCmd; 
         
         switch( eintTF )
         {
            case PERIOD_M1:   intCmd = 33137;  break;
            case PERIOD_M5:   intCmd = 33138;  break;
            case PERIOD_M15:  intCmd = 33139;  break;
            case PERIOD_M30:  intCmd = 33140;  break;
            case PERIOD_H1:   intCmd = 35400;  break;
            case PERIOD_H4:   intCmd = 33136;  break;
            case PERIOD_D1:   intCmd = 33134;  break;
            case PERIOD_W1:   intCmd = 33141;  break;
            case PERIOD_MN1:  intCmd = 33334;  break;
         }
         
         if ( intChild > 0 )   
         {
            if ( intChild != intParent )   PostMessageA( intChild, WM_COMMAND, intCmd, 0 );
         }
         else      blnContinue = false;   
         
         while( blnContinue )
         {
            intChild = GetWindow( intChild, GW_HWNDNEXT );   
         
            if ( intChild > 0 )   
            { 
               if ( intChild != intParent )   PostMessageA( intChild, WM_COMMAND, intCmd, 0 );
            }
            else   blnContinue = false;   
         }
         
         // Now do the current window
         PostMessageA( intParent, WM_COMMAND, intCmd, 0 );
      }
      

      But then i get this:

      https://s14.postimg.org/ncix94fst/Error.png

      What should i change to make it work?

      posted in Questions & Answers
      Abade69
      Abade69
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 7
    • 7 / 7