Confirmation of Trend using Neural Networks (by kind permission of Leo)

Forums ProRealTime English forum ProOrder support Confirmation of Trend using Neural Networks (by kind permission of Leo)

Viewing 15 posts - 1 through 15 (of 38 total)
  • #78955

    TOPIC SPLITTED FROM “Neural Networks programming” discussionhttps://www.prorealcode.com/topic/neural-networks-programming-with-prorealtime/ to discuss the strategy made by GraHal about Leo’s classifier code snippet.

    which function do you use for the output neurons?

    how did GraHal use the code to trigger trades in this case?

    I’m far from expert at coding, so I couldn’t understand your code fully, but I do like experimenting so … (rightly or wrongly?) I did below to trigger the trades! 🙂

    System is doing good so far on Fwd Test  … current trade at £128 profit and past trades results attached

    Edit / PS

    Bear in mind results are on 5 min TF, so maybe the good results so far are a fluke and a misuse of the code intention??

     

     

    Strategy using the neural network made by Leo starts from this post:

    https://www.prorealcode.com/topic/long-only-trading-with-trend-confirmation-on-5-minutes-timeframe/page/3/#post-79578

    1 user thanked author for this post.
    #78960

    in the Leo’s code of the “classifier”, classifier = 1 if the price has moved favorably enough to cover a risk reward ratio of 2 since a lowest low of X periods. So in your strategy you only making a bet for that movement to continue and with a simple trend filter with a SMA 60 periods.

     

    1 user thanked author for this post.
    #78967

    Here’s the latest version v1.1!  Rock on Leo … keep em coming!!!  🙂

    Almost  4 x Profit by adding an exit filter! I had to double check to make sure I had Tick by Tick selected!!! 🙂

     

    #78974

    You might want to add something to vary the spread depending on the time of day as your 1.5 is never available in the DJI.

    Screenshot_9-3

    #78979

    Almost  4 x Profit by adding an exit filter! I had to double check to make sure I had Tick by Tick selected!!!

    Above assertion of mine is wrong … it is slightly less profit than without the exit filter.

    Anybody feel free to add a more effective exit??

    #78982

    GraHal, despite the fact that your strategy seems nice, I feel that it is now off topic and has nothing to deal with neural network anymore 🙂 Can I split the topic into a new one starting from this post  ?

    I’ll add backlink in each of the topic to loose no one in the process.

    #78985

    Can I split the topic into a new one starting from this post  ?

    Yes sure … no problem Nicolas.
    Cheers

     

    #79005

    I made an indicator from the code you are using to trigger the trades:

     

    3 users thanked author for this post.
    #79028
    Leo

    Wow! I have no words to describe how astonish I am. I”m very glad as well that my work so far has been so useful.

    Sharing is power, indeed.

     

    2 users thanked author for this post.
    #79118

    Mods / Nicolas (if you agree?) please change title of this topic to …

    Confirmation of Trend using Neural Networks (by kind permission of Leo)

    All credit to Leo, here is version 2.0 with Shorts also!

    Anybody feel free to improve and post your code on this Thread.

    DJI 5 min TF, Lot size = 2, 100k bars

     

     

    #79122
    Leo

    Hi GraHal,

    the credits is yours!

    you are using a part of a neural network, far away yet to an adgorithm that learn and modify by itself.

    I am glad you find a useful Spin-off

    #79126

    Leo is right, there’s nothing about neural network in this code 🙂 Anyway, you’ve made a great job with the short version, what about the spread used? I must say that I’m surprised with the results obtain with that simple signals!

    1 user thanked author for this post.
    #79131

    Can’t wait until it’s a fully grown up Neural Net! 🙂

    Spread = 2, yes thinking about it 4 – 6 may be be more realistic (24 hour strategy) so knock 400 – 800 or so off the profit shown above.

    Mods / Nicolas (if you agree?) please change title of this topic to …
    Confirmation of Trend using Neural Networks (by kind permission of Leo)

    I was trying to give Leo the credit due, but also as strategies in this Topic are now Long AND  Short and may <> 5 min TF.

    How about … mmm, can’t think! naah leave as is! 🙂

    All suggestions for Topic title and improvements to codes gratefully received.

    1 user thanked author for this post.
    avatar Leo
    #79132

    I’m not testing this one myself at the moment but it would be interesting to see how it performs on the SP500. It is heavily correlated to the DJI but the spread is more stable through out the day. £5 minimum stake size but that is all relative to the average price movement.

    Screenshot_10-3

    1 user thanked author for this post.
    #79173

    I know it’s only early days and it could all change, but I had to post the latest results from V1.0 … hoping it may encourage readers to experiment (as I did) and share your versions of this code running on the DJI and / or other instruments.

    1 user thanked author for this post.
    avatar Leo
Viewing 15 posts - 1 through 15 (of 38 total)

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