Grid orders with one combined stop loss and limit, can it be done?

Forums ProRealTime English forum ProOrder support Grid orders with one combined stop loss and limit, can it be done?

Viewing 15 posts - 196 through 210 (of 308 total)
  • #13930

    Hi traders,

    I have spent the last few days playing around with Mike’s Trend Chaser and made a couple of changes, first I removed the Stochastic since it fairly often doesn’t enter the trigger zone even if the price makes a nice move, instead it stradles the oversold or overbought area and we miss out when it doesn’t retrace properly.

    I replaced it with CCI which is more direct with condition to enter when the indicator crosses the zero line. As an additional filter to avoid small ranging moves I added a single ADX to only enter when the price is trending, the value should be higher than 23 and the current bar should be higher than the previous one.

    The below code is intended to be run on M1 TF with and the Coppock Curve and MACD values set to equal M15, the CCI to equal M1 and the ADX matches M1.

    The backtest for this evening’s move on the DAX looks promising 🙂 However I have not done much testing yet so I’m not sure if the code works as intended…

    Nicolas, what is the best way to add more ADX values in the code which equals higher timeframes? Does it make sense to insert a new line on line 8;

    AA2 = ADX [70]

    and on line 38 and 39;

    c8 = (AA2 > AA2[1])
    c9 = (AA2 > 23)

    In order to have a conidtion for the M5 (14) ADX to be above 23 and rising?

    1 user thanked author for this post.
    #13947

    Excellent work, cfta!  A most impressive integration and result.  Many thanks for the alterations you have suggested to Trend Chaser.  I am now looking forward to testing them.

    #13953

    @cfta

    Yes, just like you did for the other indicators periods, you can try to play with multiplication to set a slower ADX on the 1 minute timeframe. I saw customers strategies doing well by calculating those higher TF periods just like this.

    Until we do not have the MTF support, that’s how we have to do.

    So the purpose of your actual development is to create a fully automated strategy with the money management concept we all have developed here?

    About the lines 49 and 53 and their conditions testing (with highest ..), I still don’t have understand well what Mike had in mind when he wrote this 🙂 Maybe you could explain it Mike?

    #13960

    @Nicolas and @cfta,

    Extraordinarily, this coding was an amateurish attempt to the define the highest low Coppock beneath zero as the entry point for a long trade (in company with the other indicators).  I was advised by a number of contributors that it didn’t make any sense so I tried a number of different variations to achieve this, but none back tested as well as this peculiar code.  It is particularly strange that it also works well for short trades.

    I would appreciate it, Nicolas, if you could explain what is going on with this freak of a mistake.

    #13974

    @Mike

    In these 2 lines you are testing if your conditions (from c1 to c7 for a long order, for example)  were true (set to “1”) in the last 7 periods. Because it is surely the case of any of these 7 conditions in the last 7 bars, that’s the reason why it does not have much sense 🙂

     

    #13988

    c1 to c7 evaluate to true (1) or false (0). It is testing for at least a “true” ( =1 ) condition for c1 to c7 in any of the last 7 period to go long. If you increase the number of period, you will end up with more trades, less if you reduce. This together with grid is really extraordinary strategy indeed.

    #13993

    @sylvess

    That’s right but is this a good idea? Since that is not what Mike was thinking about to initiate the first trade of the cycle. Seems like randomness to me. No offense here to Mike 😉

    On an other hand, testing all conditions met in the same candlestick instead of in the last 7 ones would mean poor trades quantity.

    #14000

    @nicolas

    Think not entirely random as we are running on M1 tf – 7 conditions to be true within 7 minutes. Running on higher tf produce poor result as expected. Tested live on demo account yesterday on Dax and Hang Seng, 2 entries each with 1 win and 1 loss but net profitable. From the test, can see that Grid order is definitely a winning strategy for high profit low loss. Time permit, will test using Supertrend for entry.

     

    #14007

    @sylvess

    Yes you are right, if we can catch the beginning of a higher timeframe trend while possibly put orders on market on small TF with tight stoploss and then let me them run while adding more orders with the grid, it could possibly be a high profit strategy.

    #14066

    Great to see the thread coming to life again, I appreciate your feedback 🙂

    @ Nicolas, no my primary goal is not to have a fully automatic strategy, rather I still watch the H4 and H1 charts waiting for a good setup and start the system to catch a good entry rather than monitoring the market to pick the starting point manually. Of course it can be used fully automated but I think it is too risky leaving it unsupervised for than a few hours given news and global events which cause irratic price movement. I also intend to split the new code in two version, one for long and another for short since sometimes I don’t want an entry in either direction.

    Regarding line 49 and 53 I didn’t really have any idea of their function, I thought it was a necessary piece of code to check if all conditions were met at the close of the most recent candle, I still have a lot to learn about coding. Perhaps we should remove those lines?

    Friday’s testing turned out good with a 5 % gain on DAX, about 1.5 going down in the morning and then 3.5 going up after lunch but stopped out before the late afternoon/evening move since I havn’t thought about increasing the period for the BB exit which would make sense on M1.

    #14072

    About the Friday move of the DAX, and the result made, unfortunately, no one can ever know in advance it would occur. Of course, anticipating economic news can be an advantage with  the strategy. The auto grid step is also something great for the strategy, particularly in that kind of highly directional market move.

    Recently, a customer came to me with an idea: putting pending orders on market, to anticipate breakout of a congestion zone… well, something very often asked, sounds like an ordinary job for me.. But, the main idea behind this simple strategy were to continuously put pending orders on the same price if the stoploss occurred (10 pips in this case). My customer just tell me, that it is preferably to loss something like .. 5 trades of 10 points and to let the market taking its trend, instead of just say .. “well ok, I’m done, lost too much”. The concept is always almost the same: cut the loss quickly and let the profit run, that’s what this guy do and it seems that he is doing well with his trading.

    The truth is ..  that there is no truth. Everyone can take advantage of the market, in the way it is the more suitable to him.

    So, maybe it can be fully automated, in a way suitable for someone in particular, but even not for everyone.

    #14342

    Well about las Friday’s move of the DAX it could have been anticipated by those paying close enough attention to the market since it was a large drop on Thursday (when there is a single major move for a whole day, it often retraces to some extent the following day but that’s not the point) due to the Deutsche Bank fines which dragged down the entire index big time but on Friday the US department of justice gave in a bit to the pressure from the EU saying they were considering reducing the fine by about 70 % since the fine may have been exaggerated.

    Anyway the system is great for news trading, my favourite way is to catch a move and build some profit a day or 4-8 hours before the release in the direction I think the move is most likely to occur and reach BE before the release and either not lose anything or have the potential for a huge gain, besides that I usually wait a while after news for the market to settle.

    @ Nicolas &/ Mike, I’m testing and making progress but please remind me how I need to adjust the code for the system not to start a new cycle efter being stopped out, thanks 🙂

    #14354

    @Nicolas, thanks for your explanation of how this code works.  I have found in testing that it produces more quality trades, and am continuing to use it.

    However, ideally, I would like to be able to only select trades where the Coppock is making higher lows below zero for a long, and lower highs for a short above zero.  I have not been able to code this and would appreciate your help, please.

    #14358

    @cfta

    You must retrieve the condition I made at the beginning of the project about the strategyprofit test (the first trade don’t go if the strategyprofit is not equal to 0).


    @Mike

    So if you want to test a piercing of the highest high or lowest low of the Coppock curve, we must determine first the lookback period for these values to be stored.

    #14359

    @Nicolas, I think we could make the look-back period a variable and optimise it for each instrument and time frame.

    The trick is to find the lower high (and its converse).  This is the thing I can’t code.  Thus if the Coppock makes a high (above zero), then how do I determine whether the next high is lower than the last one?  That is the point (with recent coincidence of the MACD and the stochastic), that I would like ProOrder to take a short.

Viewing 15 posts - 196 through 210 (of 308 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login