Forums Development Trading made REALLY Simple

This topic has been reported for inappropriate content

Tagged: 

Viewing 25 posts - 376 through 400 (of 456 total)
  • Author
    Posts
  • #11683
    simplex
    Moderator

      Hi Vlan!

      Thanks for v1.4. I finally tested it, works fine on my side.

      Good to have you back! From my point of view, partial close, moving SL to BE, trailing stop, and news are working fine.

      Currently my main concern is that dynamic TP function based on ADX. I coded it according to my understanding of G.’s requirements. At the moment it progresses TP too far, because ADX will turn around too late. What to do about that?

      1. Call ADX in a lower TF instead of current TF?
      2. Pull TP back after ADX is showing its late reversal?
      3. Use a different algo to determine when to progress TP, e.g. CS like CIX or similar one? (Progress TP only while slope of base and quote currency are supporting our trade direction)
      4. … something else?

      Considering that SL will be typically n * ATR(x) off of TP, I would very much prefer to hit a reasonable TP instead of hitting a trailed SL later on.

      I would prefer to solve this issue next, before involving different timeframes, so we can backtest DynTP until we’re satified with its performance.

      s.

      A good trader is a realist who wants to grab a chunk from the body of a trend, leaving top- and bottom-fishing to people on an ego trip. (Dr. Alexander Elder)

      #11684
      simplex
      Moderator

        Good link, thanks for this:

        Here is full list of: order limiations

        It makes sense to review good old resources from time to time.

        We can check this in OnInit() and then correct all prices we use from chart.

        Great code snippet! Is it sufficient to check this only once in OnInit(), or should it better be checked before opening or modifying an actual trade?

        s.

        A good trader is a realist who wants to grab a chunk from the body of a trend, leaving top- and bottom-fishing to people on an ego trip. (Dr. Alexander Elder)

        #11685
        Anonymous

          I think its a good idie to include both MarketInfo(Symbol(), MODE_BID) and iClose(Symbol(), PERIOD_CURRENT, 0) in PrintMarketinfo_Post.mq4

          to compare broker chartprice and actual bid price too see if there is a offset .. RefreshRate() before checking is important.

           

           

          #11686
          Anonymous

            Good link, thanks for this:

            Here is full list of: order limiations

            It makes sense to review good old resources from time to time.

            We can check this in OnInit() and then correct all prices we use from chart.

            Great code snippet! Is it sufficient to check this only once in OnInit(), or should it better be checked before opening or modifying an actual trade? s.

            It’s only important to check once cause it will not change by time , if there is a offset its always going to be there. so check once and save it .. and then add the offset to all chartprices we use to create pending order on

            #11687
            TraderTM
            Participant

              All hi! :-) First I want to thank all who took part in creation of this EA, and in particular Gg53. Thank you that you share with us secrets! :good: I read all subject and started testing, but I had some problems! The first PeakTroughEA version was better than the others. In a year she showed a monthly gain of 30% at the fixed lot, and drowdown in 8%. Version 1.4 at me doesn’t open the order. Then I started trying earlier version 1.3, but even having disconnected additional settings and having chosen the same period and TP and SL it showed results worse than the first version. Why so? maybe who has kept settings for version 1.3-1.4? I could continue optimization further. yours faithfully TM

              I dont think its nesseseary to check scores and to optimize it yet. There is still some stuff left to do/add for it to be ready for this.

               

               

              agree. I have another question, initially the logic was attended by the following – we define the trend on the lower timeframe and looking for next entry point on a smaller timeframe. Version 1.4 makes it so? because I have not found where you could specify what timeframe to expect the trend

              yours faithfully TM

              • This reply was modified 10 years, 2 months ago by TraderTM.
              • This reply was modified 10 years, 2 months ago by TraderTM.

              Ничто не ново под луной:
              Что было, то и будет.
              Я завершаю круг и - вновь
              Готов бежать по кругу...

              #11691
              gg53
              Participant

                Good link, thanks for this:

                Here is full list of: order limiations

                It makes sense to review good old resources from time to time.

                We can check this in OnInit() and then correct all prices we use from chart.

                Great code snippet! Is it sufficient to check this only once in OnInit(), or should it better be checked before opening or modifying an actual trade? s.

                It’s only important to check once cause it will not change by time , if there is a offset its always there. so check once and save it .. and then add the offset to all chartprice we use to create order on

                Agree.

                Check once and use RefreshRates() before each entry (OrderSend(…).

                 

                G.

                 

                #11692
                gg53
                Participant

                  All hi! :-) First I want to thank all who took part in creation of this EA, and in particular Gg53. Thank you that you share with us secrets! :good: I read all subject and started testing, but I had some problems! The first PeakTroughEA version was better than the others. In a year she showed a monthly gain of 30% at the fixed lot, and drowdown in 8%. Version 1.4 at me doesn’t open the order. Then I started trying earlier version 1.3, but even having disconnected additional settings and having chosen the same period and TP and SL it showed results worse than the first version. Why so? maybe who has kept settings for version 1.3-1.4? I could continue optimization further. yours faithfully TM

                  I dont think its nesseseary to check scores and to optimize it yet. There is still some stuff left to do/add for it to be ready for this.

                  agree. I have another question, initially the logic was attended by the following – we define the trend on the lower timeframe and looking for next entry point on a smaller timeframe. Version 1.4 makes it so? because I have not found where you could specify what timeframe to expect the trend

                  yours faithfully TM

                  Wrong.

                  1. ClearMethod is on current TF, consulting Higher TF’s for overall Trend.

                  2. Currency-Strength is on current TF, (optionally consulting LOWER TF for same direction confirmation).

                  3. VolumeOsc (or VZO) is on current TF only.

                   

                  G.

                   

                  #11699
                  simplex
                  Moderator

                    we define the trend on the lower timeframe and looking for next entry point on a smaller timeframe. Version 1.4 makes it so?

                    At the current stage of development it doesn’t really make sense to introduce higher or lower timeframes. If we did, we couldn’t backtest anymore, and backtesting is most valuable when enhancing functions like dynamic SL and TP.

                    From my point of view, it makes sense to introduce higher or lower TF after these functions are working at a satisfactory level of performance. This is not yet the case.

                    s.

                    A good trader is a realist who wants to grab a chunk from the body of a trend, leaving top- and bottom-fishing to people on an ego trip. (Dr. Alexander Elder)

                    #11701
                    gg53
                    Participant

                      we define the trend on the lower timeframe and looking for next entry point on a smaller timeframe. Version 1.4 makes it so?

                      At the current stage of development it doesn’t really make sense to introduce higher or lower timeframes. If we did, we couldn’t backtest anymore, and backtesting is most valuable when enhancing functions like dynamic SL and TP. From my point of view, it makes sense to introduce higher or lower TF after these functions are working at a satisfactory level of performance. This is not yet the case. s.

                      Ok with me, as long as each module/Function is stand-alone and the logic is easily inserted within it, and the return value remains the same.

                       

                      G.

                      #11712
                      gg53
                      Participant

                        Ea Status:

                        Still missing Functions/Modules:

                        1. MySentiment – User Parameter implementation

                        2. Currency-Strength – Issue not yet concluded, which CS indicator to use or its parameters.

                         

                        Finished/Closed issues:

                        ClearMethod (CM) – Use simplex HTF CM histogram

                        VZO – use VZO (or ForexGT’s VolumeOsc) indicator latest version, still need suggestions for stable parameters.

                         

                        G.

                        #11719
                        gg53
                        Participant

                          On EA’s StopLoss:

                          Instead of using just ATR factor for SL, we can use some more “inteligent” approach, such as the Max or Min value between our current ATR and the latest Peak/Trough.

                          Such as:

                          SL = Min(SL_Factor*ATR, iHighest(NULL,0,MODE_HIGH,10,1))

                          This will result in shorter, but logical, SL that will increase the LOt size ands profits – while maintaining Logical SL at latest Peak or Trough.

                           

                          On TrailingStop:

                          Trailing stop can also be modified to be more “inteligent”.:

                          By using the initial SL as a starting, trailing will decrease it’s size in logarithmic manner toward the TakeProfit target, i.e Trailing distance will constantly decrease as we aproach the TP target.

                           

                          G.

                           

                          #11722
                          VlanFx
                          Participant

                            Hi @gg53. Thanks for these ideas.

                            Ea Status: Still missing Functions/Modules: 1. MySentiment – User Parameter implementation

                            Will do.

                            2. Currency-Strength – Issue not yet concluded

                            I need to reread your discussion with simplex about this, I remember you had different views on how to calculate it. Personally, I’m for your approach. If not for anything else, then simply for the fact that you have been using it with this strategy and it has been working for you.

                            On EA’s StopLoss: ….while maintaining Logical SL at latest Peak or Trough

                            What about TP? TP is basically inverted SL. Can the same logic be used for “more intelligent” TP placement? Still using the TP_Factor but adjusting the position by placing it under/above previous troughs/peaks ?

                            V.

                            • This reply was modified 10 years, 2 months ago by VlanFx.
                            #11725
                            LittleCaro
                            Participant

                              Hey guys, sorry to clutter the thread, but i can’t find another thread, you know the one where GG make only 1 pip per trade ?

                              Is it removed from the site ? Can someone point me in the right direction please ?

                              Thanks !

                              #11728
                              simplex
                              Moderator

                                @LittleCaro:

                                i can’t find another thread, you know the one where GG make only 1 pip per trade ?

                                I guess you’re referring to threads @Saver0 started: here and here. I also failed to find it using forum search, but asking Mr. & Mrs. Google showed me the way.

                                s.

                                A good trader is a realist who wants to grab a chunk from the body of a trend, leaving top- and bottom-fishing to people on an ego trip. (Dr. Alexander Elder)

                                #11731
                                simplex
                                Moderator

                                  Trailing stop can also be modified to be more “inteligent”.: By using the initial SL as a starting, trailing will decrease it’s size in logarithmic manner toward the TakeProfit target, i.e Trailing distance will constantly decrease as we aproach the TP target.

                                  What about TP? TP is basically inverted SL. Can the same logic be used for “more intelligent” TP placement? Still using the TP_Factor but adjusting the position by placing it under/above previous troughs/peaks ?

                                  Decreasing only the SL side of our trade will constantly increase the probability that the SL is hit by random price movements, while leaving the probability that TP is hit unchanged. It is clearly preferable to hit TP. So regarding probabilities, it might make sense to decrease TP in a similar manner like SL just to increase the probability that TP is hit.

                                  That Dynamic TP approach I posted earlier tries to ride a swing right to its top / bottom without hitting TP prematurely. I just did not find a recipe to stop or reverse that progression when swing energy subsides. G.’s suggestion, which reminds me of Parabolic SAR a bit, might fit well with that approach by constantly decreasing the size of our SL trail. I think we cannot avoid that a certain number of our trades will be closed prematurely, not exploiting their full profit potential. But a few exceptional trades should do so, while the others should provide a certain number of trades with lower profit factors.

                                  s.

                                  A good trader is a realist who wants to grab a chunk from the body of a trend, leaving top- and bottom-fishing to people on an ego trip. (Dr. Alexander Elder)

                                  #11735
                                  simplex
                                  Moderator

                                    Currency-Strength – Issue not yet concluded, which CS indicator to use or its parameters.

                                    From my side, CIX is on the table. It reflects my current knowledge, and I’m staying open for any suggestion to enhance the base algorithm. Latest WIP version has got minor changes regarding calculation of slope by linear regression.

                                    ClearMethod (CM) – Use simplex HTF CM histogram

                                    The longer I’m working with CLEAR, the more I prefer it displayed as a line on chart instead of a separate histogram. The line will provide a price level which is wiped out by histo visualization. I think that current price being above or below that line can act as a signaling component.

                                    s.

                                    A good trader is a realist who wants to grab a chunk from the body of a trend, leaving top- and bottom-fishing to people on an ego trip. (Dr. Alexander Elder)

                                    #11740
                                    simplex
                                    Moderator

                                      I just came across Chuck LeBeau’s following presentation:

                                      https://community.tradestation.com/discussions/data/20050225165005lebeau.pdf

                                      That one was not written for the forex markets, but Chuck highlights some interesting thoughts regarding our current Trailing Stop vs. Taking Profit discussion.

                                      s.

                                      A good trader is a realist who wants to grab a chunk from the body of a trend, leaving top- and bottom-fishing to people on an ego trip. (Dr. Alexander Elder)

                                      #11743
                                      Lowphat
                                      Participant

                                        some of that stuff reminds me of bband stops and volty stops

                                        atr influenced potential exit trail

                                        • This reply was modified 10 years, 2 months ago by Lowphat. Reason: typo
                                        Attachments:
                                        You must be logged in to view attached files.

                                        “I believe the very best money is made at the market turns. Everyone says you get killed trying to pick tops and bottoms and you make all
                                        your money by playing the trend in the middle. Well for twelve years I have been missing the meat in the middle but I have made a lot of
                                        money at tops and bottoms.”
                                        – Paul Tudor Jones

                                        #11759
                                        Eamonn
                                        Participant

                                          Hi Guys great thread going here.

                                          Just a couple of things that might help or hinder as I’m not a techie.

                                          On the volume oscillator has any one tried a bollinger band in the indicator window( using previous indicator setting) to find the O/bought /   O/sold areas instead of fixed parameters ? and the other thing is does the Daily clear indicator take into account the Sunday candles and if so shouldn’t we ignore it.

                                          I know some platforms have only 5 daily candles but if we want to use it on our trading account could there be an option to ignore Sunday?

                                          Again great work here

                                          Cheers Eamonn.

                                          #11764
                                          gg53
                                          Participant

                                            Hi Guys great thread going here. Just a couple of things that might help or hinder as I’m not a techie. On the volume oscillator has any one tried a bollinger band in the indicator window( using previous indicator setting) to find the O/bought / O/sold areas instead of fixed parameters ? and the other thing is does the Daily clear indicator take into account the Sunday candles and if so shouldn’t we ignore it. I know some platforms have only 5 daily candles but if we want to use it on our trading account could there be an option to ignore Sunday? Again great work here Cheers Eamonn.

                                            In my ForexGT_VolumeOsc the OB/OS are user parameters and adjustable. I’m sure some coder here can do the same for VZO version.

                                            As for the “Ignore Weekend” – we decided to go with simplex ClearMethod version, so maybe he’ll be kind enough to add such option.

                                             

                                            G.

                                            #11774
                                            simplex
                                            Moderator

                                              @Eamonn, @gg53:

                                              As for the “Ignore Weekend” – we decided to go with simplex ClearMethod version, so maybe he’ll be kind enough to add such option.

                                              What should happen if a Sunday bar is detected?

                                              • display nothing?
                                              • display previous value?
                                              • display ‘exception’ colour?
                                              • … ?

                                              s.

                                              A good trader is a realist who wants to grab a chunk from the body of a trend, leaving top- and bottom-fishing to people on an ego trip. (Dr. Alexander Elder)

                                              #11779
                                              Eamonn
                                              Participant

                                                Hi Simplex as I said before I’m not a techie but there is an anomaly with the Sunday candle on the Clear line indicator.

                                                lets get an opinion on whether it should be be added to previous Fridays or  following  Mondays Candle or  ignored

                                                Cheers Eamonn.

                                                #11780
                                                simplex
                                                Moderator

                                                  Hi Eamonn,

                                                  There’s nothing to be added to something. We’re just displaying a bullish or a bearish colour on each bar. The question is: which colour on a Sunday candle?

                                                  s.

                                                  A good trader is a realist who wants to grab a chunk from the body of a trend, leaving top- and bottom-fishing to people on an ego trip. (Dr. Alexander Elder)

                                                  #11788
                                                  gg53
                                                  Participant

                                                    Hi Simplex as I said before I’m not a techie but there is an anomaly with the Sunday candle on the Clear line indicator. lets get an opinion on whether it should be be added to previous Fridays or following Mondays Candle or ignored Cheers Eamonn.

                                                    Eamonn,

                                                    Can you please send an MT4 screenshot/picture that demonstrate such “anomaly” and the potential problem it might cause?

                                                    Thanks.

                                                     

                                                    G.

                                                     

                                                    #11789
                                                    gg53
                                                    Participant

                                                      On Trailing Stop:

                                                      First one is self-explained.

                                                      The second one is a proportional Trailing, maybe suitable to my previous post on that subject, i.e. reduced trailing as approaching TP.

                                                      Formula: ProportionalSL =(CurrentPrice – OrderOpenPrice) x Ratio – Spread

                                                       

                                                      G.

                                                       

                                                      Attachments:
                                                      You must be logged in to view attached files.
                                                    Viewing 25 posts - 376 through 400 (of 456 total)
                                                    • You must be logged in to reply to this topic.
                                                    Scroll to Top