fxDreema

    • Register
    • Login
    • Search
    • Back to the main page
    • Categories
    • Recent
    • Tags
    • Popular
    • Search

    Compilation errors when using indicators with Multi Time Frame.

    Bug Reports
    4
    9
    823
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      PhiLykia last edited by

      Hello, lately I have been encountering compilation errors when I use indicators containing Multi Time Frame.

      If any buffer is fed with MTF, this error is received:
      'c' is not a class, struct or union. '........' - some operator expected

      And this is getting really annoying.

      1 Reply Last reply Reply Quote 0
      • l'andorrà
        l'andorrà last edited by

        Is that happening on MT5 projects, maybe? The admin is touching the code there very often.

        (English) I will try to help everyone in these fxDreema forums. But if you want to learn how to use the platform in depth or more quickly, I can help you with my introductory fxDreema course in English at https://www.theandorraninvestor.eu.

        (Català) Miraré d’ajudar tothom en aquests fòrums d’fxDreema. Tanmateix, si vols aprendre a fer servir la plataforma amb més profunditat o més de pressa, t’hi puc ajudar amb el meu curs d’introducció a fxDeema en català a https://www.theandorraninvestor.eu/ca.

        (Español) Intentaré ayudar a todo el mundo en estos foros de fxDreema. Sin embargo, si quieres aprender a usar la plataforma en profundidad o más deprisa, te puedo ayudar con mi curso de introducción a fxDreema en español en https://www.theandorraninvestor.eu/es.

        1 Reply Last reply Reply Quote 0
        • P
          PhiLykia last edited by

          Thank you for your interest @l'andorrà

          When I use special Price Type, Time Frame and/or Moving Average within the indicator, we cannot use the standard ENUM_APPLIED_PRICE, ENUM_TIMEFRAMES or ENUM_MA_METHOD commands.

          When I add it as custom indicator in Fxdreema, this problem occurs with variable definitions and it does not allow to create .ex5.

          I can use it as Custom MQL, but in this case I'm stuck on the number of blocks. 😞

          It would be great if Mr. @fxDreema intervened in this situation. tsk.

          roar 1 Reply Last reply Reply Quote 0
          • roar
            roar @PhiLykia last edited by roar

            @PhiLykia does the custom indicator have variable names such as "c" or "v"? Those may create the bug. You could try renaming the variables of your indicator.

            I do agree these kinds of bugs should be fixed rather than finding such workarounds.

            Need small help? Tag me in your post
            Need big help? https://www.fiverr.com/big_algo/automate-your-winning-strategy-in-mql4-or-mql5

            1 Reply Last reply Reply Quote 1
            • P
              PhiLykia last edited by

              Hello, It is positive that updates are made to the application and that it continues to be developed. I am sure that the stable operation of the application is very important for all of us. It is undesirable for an EA that is currently working to not be working after development. We are ready to provide testing support in this regard, if necessary.

              Among the indicators, Moving Avg, Price Type, Time Frames, etc. are included in the standard library. It is important that we also use the special parts we coded.

              This is a problem for me if I am going to update the code that I have compiled in FxDreema on the IDE. I hope the developers resolve this quickly or suggest alternative solutions.

              image.png

              1 Reply Last reply Reply Quote 1
              • P
                PhiLykia last edited by

                @fxDreema Problems continue, especially in compiling multi-time frame indicators. Can you provide an explanation or solution suggestion on this issue?

                Example of the problem: In codes containing MTF, it is necessary to define this as a variable to call the data of the time frame. But since we cannot use this variable, we cannot work with these indicators.

                #define _mtfCall iCustom(_Symbol,timeFrame,getIndicatorName(),0,inpx,inpy)

                1 Reply Last reply Reply Quote 1
                • jstap
                  jstap last edited by

                  Some indicators will show errors, but most work depending on how they are added.

                  Learn fxDreema Without the Wait!

                  My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                  The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                  Don’t miss out

                  Click here➡️ https://mybook.to/fxDreema to get your copy today!

                  Enjoy! 😊

                  1 Reply Last reply Reply Quote 0
                  • P
                    PhiLykia last edited by

                    Hi @jstap,
                    Thanks for your interest. The problem is not being able to update or design a new one using the indicators we were actively working with before. In other words, we are no longer able to use the service we received.

                    Although we provide support to identify the problem, it is sad that there is a lack of interest.

                    We need to work with time frame variables, especially in MTF indicators, you know. In this case, instead of using the ENUM_TIMEFRAMES structure, we need to give the variable a different name and switch to its standard structure (with the code block below) at the last stage.

                    ENUM_TIMEFRAMES timeFrameGet(int period)
                    {
                    int _shift=(period<0?MathAbs(period):0);
                    if(_shift>0 || period==PERIOD_CURRENT) period=_Period;
                    int i; for(i=0;i<ArraySize(X);i++) if(period==Y[i]) break;

                    return(X[(int)MathMin(i+_shift,ArraySize(Y)-1)]);
                    

                    }

                    Again in the same example, at the beginning of the code;

                    _tf = inpTimeFrame;
                    ENUM_TIMEFRAMES timeframe;

                    draw_begin = inpPeriod; // initial PLOT_DRAW_BEGIN value
                    

                    //---
                    timeframe=_Period;
                    if(_tf<=timeframe)_tf=timeframe;// if the TF is less than or is equal to the current one, set it to PERIOD_CURRENT
                    pf=(int)MathFloor(_tf/timeframe);// calculate coefficient for

                    I can't do this part with "input ENUM_TIMEFRAMES = PERIOD_MX".

                    I'm not sure if I explained it.

                    You may ask, if you can do these things and compile them in the code editor, why use fxDreema?

                    For me, there is only one reason: time. I can do it much faster with fxDreema.

                    1 Reply Last reply Reply Quote 1
                    • jstap
                      jstap last edited by

                      When it comes to indicators all you can do is insert the way it is in the inputs. show a picture of your inputs and one of how it is inserted on FX.

                      Learn fxDreema Without the Wait!

                      My comprehensive book, available on Amazon, is packed with examples and invaluable insights to help you fast-track your learning journey.

                      The paperback and hardback editions include MT4 & MT5 QR codes for easy access to all prebuilt projects and robots, including my latest gold trading robot!

                      Don’t miss out

                      Click here➡️ https://mybook.to/fxDreema to get your copy today!

                      Enjoy! 😊

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • First post
                        Last post

                      Online Users

                      M
                      M
                      R

                      14
                      Online

                      146.7k
                      Users

                      22.4k
                      Topics

                      122.6k
                      Posts

                      Powered by NodeBB Forums | Contributors