fxDreema

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

    Custom Indicator - Color dependent operations

    Questions & Answers
    5
    27
    4616
    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.
    • A
      ad last edited by

      Hi, i'm Andrea and i'm new in this forum.
      I bought fxDreema for one month to test a custom indicator but i have some problems (i have only the "ex4" file of this indicator).
      I read some topics that show how open/close operations depending on the indicator's color (on the value of the right buffer) but i didn't solve the problem.

      I'll try to explain better below.
      The custom indicator is a single line with 3 different colors (red, green, yellow) and i can see 3 buffer in the relative data window:
      the first buffer = current price
      If the line is green the current price is shown also in the second buffer (buy signal)
      If the line is red the current price is shown also in the third buffer (sell signal)
      I didn't see any buffer's value for the yellow color but yellow means lateral phase: the signal could change (for example from red to green) or it may return the same color BUT when the line becomes yellow the current price is shown in the buffer opposite to the previous one: for example if the line turn from green to yellow the current price is shown in the second buffer (green line) and then to the third buffer (yellow line). So this is the problem: the yellow line could mean current price shown also in the second buffer OR in the third.

      I would open a buy/sell trade as soon as the signal changes from yellow to green/red.

      To solve the problem i tried different way:
      1)Indicator Appear
      2)Condition (right buffer) > value zero
      But no way...the EA open trade also when the line is yellow (i think because the color line changes from green/red to yellow) and not after the line is changed from yellow to green/red. Sometimes the EA just doesn't open positions.

      Thanks in adavance to those who can help me.

      X 1 Reply Last reply Reply Quote 0
      • X
        Xfire @ad last edited by

        @ad Hi.
        please share your project and indicator
        some options are here for sharing

        IN GOD WE TRUST

        1 Reply Last reply Reply Quote 0
        • A
          ad last edited by

          Hi @Xfire

          i attach some pics for clarity.
          Appear block
          0_1586248002289_Appear method - Builder.png
          0_1586248008855_Appear method.png

          Condition block
          0_1586248019124_Condition method - Builder.png
          0_1586248026186_Condition method.png

          If i use a Condition block the EA works as below:

          1. open position as soon as the color is visible
          2. when TP or SL occurred, close the relative position
          3. once the position is closed, at the same time, if the condition is verified open a new position...if not wait the condition is verified to open a new position
            Buy and sell positions are independent.
            Sometimes the EA opens position also when the line is yellow (because in this case the buffer value change), but it's not may target.

          So i think the appear block is the right method but sometimes, even in this way, the EA open position at wrong time.

          Thank you for support

          X 1 Reply Last reply Reply Quote 0
          • X
            Xfire @ad last edited by Xfire

            @ad put Candle ID 1 try this.
            how you config your indicator in the custom indicator?
            if your buffer value = TEMP you should use "Indicator is visible" block , you cant use condition block

            IN GOD WE TRUST

            1 Reply Last reply Reply Quote 0
            • A
              ad last edited by

              @Xfire
              i tried before using Candle ID 1.
              I can't config the costum indicator, i have only the "ex4" file.
              Unfortunately there s no the buffer for yellow line (or if any i can't see it).

              I tried also considering the indicator as an object to compare the color value but no way: i saw in other topics the indicator must have a text to use object block.

              I would like to use the graphics value of indicator, without using buffer value, but i don't know if it's possible

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

                Unless the buffers ara available to fxDreema, no change in the indicator will be identifiable by the EA, I'm afraid. You will have to create them as described here:

                https://fxdreema.com/forum/topic/4208/tutorial-06-my-indicators-in-fxdreema

                (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
                • A
                  ad last edited by

                  @l-andorrà
                  Thank you for your answer.
                  I solved part of the problem, but I still don't understand why the EA open positions only sometimes....i mean EA should open position each time the condition is verified.
                  In my case each time the line appear green/red in the 2 previous candles (continuously) then EA should open position.

                  I attach some pics, i tried with and without "AND" operator bit nothing changed.

                  0_1586437688837_and operator.png

                  0_1586437726754_without and operator.png

                  0_1586437769016_missing position.png

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    ambrogio @ad last edited by

                    @ad you are using "indicator appear" on candle 2 and "indicator appear" on candle 1concurrently, it's illogic

                    1 Reply Last reply Reply Quote 0
                    • A
                      ad last edited by

                      @ambrogio the EA should open a buy/sell position each time the condition is verified.
                      The condition is the continuity of color in the two candles preceding the opening one: so, for example, if the buffer 1 of the costum indicator appear in candle 2 and in candle 1, then open buy position.
                      How could i apply this condition in EA?
                      Thank you

                      X A 2 Replies Last reply Reply Quote 0
                      • X
                        Xfire @ad last edited by

                        @ad Please take a screenshot from custom indicator page. i want to see your indicator config

                        IN GOD WE TRUST

                        1 Reply Last reply Reply Quote 0
                        • A
                          ad last edited by

                          @Xfire

                          0_1586444540826_custome indicator config.png

                          X 1 Reply Last reply Reply Quote 0
                          • X
                            Xfire @ad last edited by Xfire

                            @ad ok. it is incorrect please see this link for creating a correct config

                            https://fxdreema.com/forum/topic/9105/tutorial-working-with-ex4-ex5-indicator-file/6

                            IN GOD WE TRUST

                            A 1 Reply Last reply Reply Quote 0
                            • A
                              ad last edited by

                              @Xfire

                              0_1586444995651_custome indicator config.png

                              1 Reply Last reply Reply Quote 0
                              • A
                                ambrogio @ad last edited by

                                @ad Please, upload the indicator

                                1 Reply Last reply Reply Quote 0
                                • A
                                  ad @Xfire last edited by

                                  @xfire

                                  I didn't see any difference from your post. (i didn't put the name of the color but i think it's not important).
                                  However I deleted and re-uploaded the indicator but nothing changed.
                                  I started the strategy tester again and it opened/closed only 3 order in 3 days while it should open 7 order in the same period.

                                  0_1586447490816_img.png

                                  I'm trying to understand what @ambrogio wrote...my condition is multiple, the same buffer of two consecutive candles must appear and maybe i made a mistake to the condition.

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

                                    Could you please share your project and the indicator?

                                    (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
                                    • X
                                      Xfire @ad last edited by

                                      @ad ok then your problem is solved

                                      IN GOD WE TRUST

                                      1 Reply Last reply Reply Quote 0
                                      • A
                                        ad last edited by

                                        The problem was the model of the strategy tester, not on EA: if you choose the faster model (only opened price) the EA does not verifie well the conditions all time.
                                        So i chose the model "each tick", it's slower but more precise.
                                        i tried also another stategy, using custom variables, and everything it's ok.

                                        Now i'm devoloping a more efficient strategy for TP with trailing stop and/or close trade with condition....if i have a problems i'll open a new topic.

                                        Thank you all @Xfire , @l-andorrà ,@ambrogio for your suppport

                                        X 1 Reply Last reply Reply Quote 0
                                        • X
                                          Xfire @ad last edited by

                                          @ad it is normal you should always use tick for the test. and it is default

                                          IN GOD WE TRUST

                                          1 Reply Last reply Reply Quote 0
                                          • A
                                            ad last edited by

                                            Unfortunately it happened again, even if i used tick for test: the EA didn't open all the right positions.

                                            This is my project (is the one that comes closest to my objective):
                                            https://fxdreema.com/shared/9UR13kz6d

                                            And this is the indicator (i have only *.ex4 file):
                                            0_1586527196308_AbcIndex.ex4

                                            I tested for example from 01/04/2020 to 06/04/2020 (day/month/year): the EA should open buy position in candle 0 each time the buffer 1 appear in candle 2 and in candle 1. For the same reason should open sell position in candle 0 each time the buffer 2 appear in candle 2 and in candle 1.
                                            The EA sometimes forget to open position and sometimes open position in wrong candle (i'm sure i made some mistakes but...in which part of the project?)
                                            0_1586529778181_example test.png

                                            Any suggestions? Thanks for your time.

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

                                            Online Users

                                            J
                                            G
                                            P
                                            M
                                            M

                                            27
                                            Online

                                            146.7k
                                            Users

                                            22.4k
                                            Topics

                                            122.6k
                                            Posts

                                            Powered by NodeBB Forums | Contributors