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 - 181 through 195 (of 308 total)
  • #11461

    ATR is used here only as a component of the calculation of the dynamic step grid. It’s not a part of any trading decision as you may know. We need to know how fast is the market to calculate the steps, the ATR is the best indicator for this purpose.

    About your idea of an ADX matrix,  since multi timeframe is still not available, the best we could do would be to use multiple of periods to determine longer timeframe trends. A new thread about this would be great 👌

    #11641

    Nicolas, cfta and the many other contributors, this is one helluva good system – many thanks to all.

    I have been testing the latest code from cfta with the ROUND removed as per Nicolas suggestion but without the other changes.  So I ran cfta and Nicolas’ full code, one after the other on the same chart with an interesting result.  I have attached the results.

    The difference was that the code from cfta stopped automatically with a higher profit, while Nicolas’ code did not stop until the close of the markets.  I did not synchronise the settings, which probably explains it.  However, I find that with a lot of tests of cfta’s code, the trades are closed at a loss, either because the stop is too late and the market has turned, or the stop doesn’t activate at all.  I have attached the various results.

    I am afraid my PRT coding skills are near zero.  However I have attempted to unravel the code to understand how it works, but to no avail.   It seems that it is important to start the code at the right time, and hope that there is a long trend ahead.  Shorter trends are the problem.  Perhaps a stop driven by an indicator such as the Coppock in combination with the MACD.

    I find the at a reasonably reliable entry is also indicated by these to two in conjunction.  I posted a scanner some time ago using them in conjunction with the Stochastic.  I have traded live with these and had reasonable success: about 50% win rate but a profit ratio of 3:1.  I feel that the current code under discussion, driven by these could produce better results.

    It would be ideal if this could be further developed into an AutoTrader.

    #11645

    Gentlemen,  After further research, I have found that the removal of the code “pipsize” from the following instruction make a huge difference to the out come of a test over the same instrument and the same time period, using cfta’s code.

    “// case SELL – add orders on the same trend
    if shortonmarket and tradeprice(1)-close>=gridstep*pipsize then
    SELLSHORT amount LOT AT MARKET
    endif”

    I have attached the two results.  Would love to know what is happening.

    #11674

    Thanks Mike for your investigation and research about this method.

    I’m not gonna make a long answer to your interesting messages, cause I’m currently on leave 🙂

    About the “pipsize”, it’s needed to convert the gridstep variable to the current instrument and to be compatible with any other ones with the same code. For AUDUSD, gridstep=10 means that new order will be launched each 0.0010 price difference between previous order and the current price or 10.0 points for the DAX/GER30 for example.

    1 user thanked author for this post.
    #11702

    Welcome to the thread Mike!

    Thanks for your testing and sharing your ideas, the current version of the system indeed requires a very high accuracy of timing when to start the system and one or two additional filters may prove very useful, I tried your screener a few months ago but couldn’t make it work for me, probably due to some mistake I did but I like it and will be happy to look into incoporating it into the system.

    I’m currently trying different settings for the dynamic step grid which will hopefully improve the profits by taking very few entries when the market is ranging or is lacking the strenght to take off in either direction with max grid step at 50 but I might go even higher and then stack them up when the price is trending. Also keep in mind that that we can adjust the exit not only by the risk percent and RR at which the BB exit kicks in but also the MAfloatingprofit (line 43 in the code I posted on the previos page), if stops are premature increase the value or decrease it if stops are to early. Sometimes I exit manually instead if I sense a turnaround in the market, the BB exit is supposed to act primarily as a break even savior or to let a strong move play out all the way until it turns when not able to monitor the market.

    Keep on testing I look forward to hearing more from you Mike 🙂

    1 user thanked author for this post.
    #11703

    Nicholas, I will investigate further.  Enjoy your holiday.

    Cfta, many thanks for your encouragement.  I will put together some code and test it along that idea.

    #11800

    cfta et al, the answer to the stop loss may be to use the optimiser to establish a “ball-park” and then run it live on a strong entry signal.   For example, I found that the optimal parameters for risk % and risk/reward were both 5 for the FTSE on a 5 minute chart.  The test resulted in a 27% gain over 3 days before it stopped out.  The results are attached.

    Next step will be to run it forward under ProOrder starting with a strong entry signal.  I will try the confluence of the COI, MACD and STO as per the screener I posted earlier.

    #11805

    Hi Mike. I like you ‘ball-park’ comment. Here is a though for the entire system…why not run a range across the parameters instead of forcing all the reliance onto a single number per parameter…

    #11855

    Great stuff Mike, any setup which is able to reach 27 % profit during a normal market move in a matter of days is terrific. I would say that optimal risk % and RR % differs from one asset to another and is likely to change with volatility and market sentiment but it is still good to have a default value to start from.

    Which settings did you use for minStep and maxStep and also which ATR periods. Please post the top 15 lines of the code to make it easier to follow since I expect we will post a handful of different settings going forward. I suppose you traded full lots on that 10k account?

    This week I have been focusing on optimizing the ATR periods for the grid step, mainly for intraday trades being able to grab 3-5 % in a matter of hours when timing the start right, also looking into how the mentioned ADX matrix indicator can be developed.

    #12230

    Hi cfta,

    I haven’t been changing the minStep and maxStep from your settings.  I have been mainly working on optimising the rr, rp and STD, being the main inputs into the stop loss.  However I have hit the wall as I can’t get the system to go past one trade.  I would like to incorporate my Trend Chaser system into yours so that it could be set up as a ProOrder automatic trading system.  I have attached the code I have been testing without much success.  Perhaps you can see the problem.

    As you will see, the TC works well but when I run the same code with money management, it is quite the opposite.

    Your work is very interesting.  I suppose that if you are trading manually, the ADX might provide an excellent entry point.

     

    #12235

    Mike, you have to remove the

    at lines 42 and 46, otherwise, after the first trade, you will not get any new trade because the strategy profit has increase or decrease from 0.

    1 user thanked author for this post.
    #12270

    Nicolas, cfta and others following this thread, I have combined the money management of this idea with my three indicator entry idea I posted as Trend Chaser 2.0.  I have now started a new Library post, subject to Nicolas’ review, “Trend Chaser 3.0 with Money Management”.  I hope this will start a flow of ideas for the further development of cfta’s original idea into an automatic system.

    I am driven by the fact that all the market action happens on the other side of the planet while I sleep in Australia.

    *edit by Nicolas: http://www.prorealcode.com/prorealtime-trading-strategies/trend-chaser-3-0-money-management/

    3 users thanked author for this post.
    #12344

    Mike and fellows, very interesting progress indeed! I love the idea of the Trend Chaser, just the sort of thing we need to take it to the next level 🙂

    I’m currently in the process of moving to a new home which is why I have been very active here recently and I won’t be for the next week but then I can hopefully get back on the testing and developing. As for the ADX matrix I will give everyone a brief preview. The idea originates from a Metatrader indicator which measures five ADX values, 7, 14, 21, 42 and 144 with one set of each on m1, m5, m15, h1, h4, d1, w1, in my opion the d1 and w1 and excessive and since PRT doesn’t support multiple timeframes yet we need multiply the values accordingly to get the right values. Given that we run the indicator on a m1 chart we want for instance for the m15 five values of 105, 210, 315, 630 and 2160. The matrix displays four colors, dark blue for strong up trend, light blue for weak uptrend, light red for weak downtrend and dark red for strong downtrend. When all values show either dark red or dark blue we usually have a great trade coming up if entering shortly after the colors changing. Basically we need 25 ADX values combined in one indicator and then display it in a logical manner… Any ideas?

    #12350

    cfta, this is a great idea!  The issue may be automating the entry, but I’m afraid my PRT skills are virtually nil.  However, I am happy to test any code you may produce.

    Good luck with your move.

    #13769

    Hey fellows,

    So after weeks of hassles with boxes I’m set in a new home and returning to living a normal life with some awesome trading developement. I have not made any notable progress on how to create the above mentioned ADX indicator though I have been testing Mike’s Trend Chaser and it seems very well suited for this system.

    My focus has been on optimizing the periods to run it on low TFs for higher entry accuracy, such as on the 10 second TF, but still catching larger moves by setting the Coppock Curve which is the major trend indicator to match a higher TF, such as H1, by multiplying each value by 360, and adapt the MACD to M15 by multiplying the values by 90 and set the Stochastic to match M5. This great set of filters can possible be enhanced by a single ADX to measure the strenght of the move in order to stay out of weak ranging moves.

    How is everyone else doing with the system? In particular when it comes to setting profitable values for the dynamic step grid and ATR values?

    More updates to come later this week…

Viewing 15 posts - 181 through 195 (of 308 total)

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