fxDreema

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

    once per bar

    Questions & Answers
    2
    11
    2864
    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.
    • Z
      zooslinkis last edited by

      Hey all!
      First steps first...
      Here is my project : https://fxdreema.com/shared/mjZC37sfe
      I am using my own simply made custom indicator... which is on each MA crossover it draws a arrow. All is good and fantastic till block 29 and block 30. I want these blocks to work once per bar... but after I put these blocks under once per bar... they simply not working at all (ok. they work, but on tick event, what I don't want). So I'm asking if anybody can help me?

      P.S. I even tried use them on Timer event. No results.

      Thanks before!!! 🙂

      T 1 Reply Last reply Reply Quote 0
      • T
        trader.philipps @zooslinkis last edited by

        @zooslinkis If it works on per tick base, but not on timer based conditions, it looks like an indicator issue maybe? .. If you may share that as well we might take a look.

        I like to share my knowledge, but expect the others to contribute as well.

        1 Reply Last reply Reply Quote 0
        • Z
          zooslinkis last edited by

          0_1569830682504_krustpunkts.ex4

          T 1 Reply Last reply Reply Quote 0
          • T
            trader.philipps @zooslinkis last edited by

            @zooslinkis The indicator actually no need with fxdreema. You can do so with 1 Condotion block per direction and if you need the arrows a draw arrow block.
            However, in blocks 15 and 27 you refer chart objects. Where do they come from? Do you draw them manually?

            I like to share my knowledge, but expect the others to contribute as well.

            Z 1 Reply Last reply Reply Quote 0
            • Z
              zooslinkis @trader.philipps last edited by

              @trader-philipps i know that i can use condition block, but for me this draw arrow is easier for me to check if all is working properly.
              In block 15 and block 27 these ar 2 horizontal lines. I get these from block 10 and block 11. How you can see there is no SL and TP levels, becouse they work on tick event so I decised to use these 2 separate branches to get SL and TP levels on once per bar option (i'm ignoring bar wicks). So yeah...

              T 1 Reply Last reply Reply Quote 0
              • T
                trader.philipps @zooslinkis last edited by

                @zooslinkis Okay, got you. So you intend always to open 2 orders? It's a bid confusing your project.
                I understand that the upline and downline are calculated when a buy signal (arrow up) occurs.

                From block numbering you let first open buy (4) and sell (5) order and after that calculate the upline (9) and draw the line to the chart (10). After that you do the same for the downline (8, 11).
                If you get a down arrow close all trades from group 1 and 2 ?!?

                So far so good.
                The 15 and 27 blocks I don't really understand. What is Price Level 1 and Price Level 2 of your lines? I'd use a condition block if you intend to do what I think.

                However, as you don't use SL and have moving targets for SL in particular, as it's recalculated probably each bar again, there might be a chance that you miss it when downline moved farer up and for EA there is no cross.
                Further it looks like that for instance if upperline is broken, trade is closed immediately when there is a small pullback to the line. As you work on per tick level, there is a high chance that this will happen as prices moves up and down during a candle usually.

                In short: I'd replace 15 and 27 with a condition block. Think about exits and redraw of downline.

                I like to share my knowledge, but expect the others to contribute as well.

                Z 1 Reply Last reply Reply Quote 0
                • Z
                  zooslinkis @trader.philipps last edited by

                  @trader-philipps so you almost got this all. Ok . I will explain my strategy... The shared link is only buy side of the whole strategy. When there is arrow up, sell and buy order is created and at the same time downline and upline ir drawn.
                  DOWNLINE for buy order is SL, but for sell order is TP
                  UPLINE for sell order is SL and for buy order is TP or SL (modify stops) if price is still going up trade is till open till it's closed by arrow down.
                  If price doesn't moves till up line and downline it's closed by arrow down.
                  Soooo to create that on UPLINE my order is modified and closed, I need to group sell order group 1, buy order is group 2. That's why there is groups in close trades.
                  There is no possible way that these arrows must be redrawn (maybe technical or so), because these lines are only drawn when the condition fulfills (arrow up)... so on each trade they stays constant.
                  "As you work on per tick level, there is a high chance that this will happen as prices moves up and down during a candle usually." This is what I want to avoid doing in on the openings of bars.
                  "What is Price Level 1 and Price Level 2 of your lines?" Amm sorry... It's my fault. I was doing a parameter cheking(maybe there was my fault that ea is not working)so I left this one unchanged... But it really doesn't mater.

                  T 1 Reply Last reply Reply Quote 0
                  • T
                    trader.philipps @zooslinkis last edited by

                    @zooslinkis Okay, understand. So I'd still say change for conditions block. And maybe share a version that is close to what you have right now. It's easier to work with.
                    Besides the blocks 15 and 27 I can't see a reason (yet) why once per par shouldn't work.

                    I like to share my knowledge, but expect the others to contribute as well.

                    Z 1 Reply Last reply Reply Quote 0
                    • Z
                      zooslinkis @trader.philipps last edited by

                      @trader-philipps I figure it out. Thanks a lot!
                      https://fxdreema.com/shared/yoksbjC8
                      Partly as you said i just needed to change to conditions blocks.

                      One more time.... thanks a lot. 🙂

                      T 1 Reply Last reply Reply Quote 0
                      • T
                        trader.philipps @zooslinkis last edited by

                        @zooslinkis Getting better. You might think about a minimum distance between the lines maybe, Just saw this occurance in tester.

                        0_1569866060162_ba3aa25b-c864-4bd9-9c37-bb5d62babb1c-grafik.png

                        It seems like both lines have same price value.

                        I like to share my knowledge, but expect the others to contribute as well.

                        Z 1 Reply Last reply Reply Quote 0
                        • Z
                          zooslinkis @trader.philipps last edited by

                          @trader-philipps yeah... I saw many other faults. But atleast these ar parameter mistakes. I need to adjust distance between lines, stop differences (buy SL must be the same as sell TP and abother way around), and on winning trades for now trailing stop. I think tomorrow night I gonna finish that. I'm planning to add macd, rsi or some other oscilator to pluck out sideway trades. But that will be after one week. I don't have so much time to do this. 🙂

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

                          Online Users

                          K
                          R
                          N
                          W
                          L
                          E
                          N
                          A
                          H
                          H
                          O
                          R
                          S
                          Z
                          J

                          26
                          Online

                          146.7k
                          Users

                          22.4k
                          Topics

                          122.6k
                          Posts

                          Powered by NodeBB Forums | Contributors