fxDreema

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

    ***Important problem :strategy tester***

    Questions & Answers
    2
    12
    3803
    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.
    • M
      mohammad2232 last edited by mohammad2232

      Hello
      How can i make EA base of indicators that when i use strategy tester it isn't show that indicator on chart that it is possible to show my strategy that i don't love any body see my strategy!
      for example when i use stochastic in EA in strategy tester it draw stochastic or when use moving average it draw that on chart
      Thanks so much for your helping ๐Ÿ™‚

      1 Reply Last reply Reply Quote 0
      • M
        miro1360 last edited by

        into on Init section place this:

        0_1505397873595_upload-5448227d-f4be-4045-a25b-f6f4cf157a4c

        Between trading and gambling is a very small gap, be careful.

        1 Reply Last reply Reply Quote 0
        • M
          mohammad2232 last edited by mohammad2232

          @miro1360
          Thank so much , it seems work excellent
          but why when i use this in one EA it affect all of other EA ? what's wrong?!
          Thanks again ๐Ÿ™‚

          1 Reply Last reply Reply Quote 0
          • M
            miro1360 last edited by miro1360

            it have probably effect on whole metatrader (until restart? )
            for EA where you need see indicators, give the same line but with "false" instead of "true":
            HideTestIndicators(false);

            but I am not sure with this, I never used it so you need take experiments ๐Ÿ˜„

            Between trading and gambling is a very small gap, be careful.

            1 Reply Last reply Reply Quote 0
            • M
              mohammad2232 last edited by

              @miro1360
              Thanks again
              Do you know anything for same problem in mt5 ?
              i use Hide (true) in custom mt5 code but not work and has error!
              Thanks

              1 Reply Last reply Reply Quote 0
              • M
                miro1360 last edited by

                in MT5 it is very different working with indicators and they dont support simple function for this, only IndicatorRelease function but there must be done tons of changes in code manually

                Between trading and gambling is a very small gap, be careful.

                1 Reply Last reply Reply Quote 0
                • M
                  mohammad2232 last edited by

                  @miro1360
                  Thanks
                  is it true for example :
                  double value = IndicatorGetValue(iMA(SYMBOL,TIMEFRAME,MAperiod,MAshift,MAmethod,AppliedPrice),0,SHIFT+FXD_MORE_SHIFT);
                  IndicatorRelease(value);
                  ?
                  (when i use moving average i found this in the codes of fxdreema mt5)

                  1 Reply Last reply Reply Quote 0
                  • M
                    miro1360 last edited by

                    to get IndicatorRelease working you need first create indicator state with handle ...

                    this before variables:
                    int MA_handle=INVALID_HANDLE;

                    this in on Init:
                    MA_handle=iMA(Symbol(),0,MA_Period,MA_shift,MA_smooth,PRICE_CLOSE);

                    and finally this in on Deinit:
                    IndicatorRelease(MA_handle);

                    and all this you need create for each indicator ๐Ÿ˜„
                    and maybe it is not working at all ๐Ÿ˜„ ๐Ÿ˜„

                    Between trading and gambling is a very small gap, be careful.

                    1 Reply Last reply Reply Quote 0
                    • M
                      mohammad2232 last edited by

                      @miro1360
                      Thank so much
                      for example:
                      i added
                      MA_handle=iMA(Symbol(),0,1,0,MODE_SMA,PRICE_CLOSE);
                      MA_handle2=iMA(Symbol(),0,2,0,MODE_SMA,PRICE_CLOSE);
                      MA_handle3=iMA(Symbol(),0,3,0,MODE_SMA,PRICE_CLOSE);
                      MA_handle4=iMA(Symbol(),0,4,0,MODE_SMA,PRICE_CLOSE);
                      in oninit
                      and
                      IndicatorRelease(MA_handle);
                      IndicatorRelease(MA_handle2);
                      IndicatorRelease(MA_handle3);
                      IndicatorRelease(MA_handle4);
                      on deinit
                      and
                      int MA_handle=INVALID_HANDLE;
                      int MA_handle2=INVALID_HANDLE;
                      int MA_handle3=INVALID_HANDLE;
                      int MA_handle4=INVALID_HANDLE;
                      before variable
                      but this is not work!
                      is it possible this problem because of fxdreema ima codes ?
                      how can i fix this ?
                      Thanks

                      1 Reply Last reply Reply Quote 0
                      • M
                        miro1360 last edited by miro1360

                        I thought it can working with these handle operations but it is not working - I tested it now (I tested it in correct way with CopyBuffer function and arrays), but without success ...
                        so you need wait or communicate with MQL company if they add HideTestIndicators in MT5

                        but you can do this little trick in on Init:

                        0_1505585532720_upload-648ccf21-fa12-40cf-8581-98af6d4e6777

                        it makes visual mode in MT5 tester functionless and user can test EA only without visual mode option ...

                        Between trading and gambling is a very small gap, be careful.

                        1 Reply Last reply Reply Quote 1
                        • M
                          mohammad2232 last edited by

                          @miro1360
                          Thank you very much
                          I sent request in help desk in MQL5 community and this is answer :
                          "
                          Sorry, such function won't be implemented in MQL5. You can use The IndicatorRelease() function in the Tester

                          "
                          Thanks

                          1 Reply Last reply Reply Quote 0
                          • M
                            miro1360 last edited by

                            standard reply from MQL5 ๐Ÿ˜„ IndicatorRelease() is not working in tester (at least in case as I tested it) ...

                            Between trading and gambling is a very small gap, be careful.

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

                            Online Users

                            M
                            P
                            S
                            A
                            E
                            M
                            F

                            21
                            Online

                            146.6k
                            Users

                            22.4k
                            Topics

                            122.6k
                            Posts

                            Powered by NodeBB Forums | Contributors