Neural networks programming with prorealtime

Forums ProRealTime English forum ProBuilder support Neural networks programming with prorealtime

Viewing 15 posts - 46 through 60 (of 127 total)
  • #79593
    Leo

    Hi all here is my last version.

    It store the last 5 inputs data and improve the algorithm over this information, we prioritise more the most recent data.

     

    1 user thanked author for this post.
    #79595

    Test 100K should be taking ages or ?

    Yes it was taking ages, but I was doing other tasks so – for once – I didn’t mind!

    I wasn’t optimising any variables / hyperparameters  in your code … just my TB and SL.  During the running of 7000 combinations over 100k bars it was if the neural network was self-learning and auto-changing values within your code to give higher overall profit than if I had simply input the optimised value of TP and SL and then pressed Probacktest my System to give a one combination result.

    Maybe I will try the same exercise again tomorrow and post results to prove I am not deluded!? 🙂

    #79615

    I just realised why I might have been confusing you Leo! 🙂

    My two most recent posts above were while I was optimising my Strategy / System (not your Indicator).

    I should have posted on my Systems Topic (I will in future to save confusion).

    If a Mod / Nicolas wants to move – mine #79577, Leos answer,   #79591 and mine #79595 – to my Systems Topic below then feel free?  And then delete this post?

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

    #80054
    Leo

    Hi all,

    Here another version of the neural network, I improved a bit the back propagation loop.

    I also change the inputs ( it can be what ever you want as long as ETA is calibrated)

     

    #80200

    P1=200 //FOR CURVE AS INPUT

    Leo, should Line 8 be …

     

    #80206

    My two most recent posts above were while I was optimising my Strategy / System (not your Indicator).

    Here is an example with screen shots. I feel like I’m losing my grip ! ha

    If I optimise P1 and P2 then the top result (values 38 and 100) is Leo 18.

    If I then insert values 38 and 100 into my System I get result Leo 19.

    Anybody any suggestions or comments, esp Leo?

    Edit / PS

    Don’t worry just yet … I may have the reason, more later! 🙂

    #80211

    I’ve got into the habit of naming my variables A+ Line number,  so for Line 8 (Line 11 in my System) I used …

     

    But there is also an A11 in Leo’s code and so I was making P2 = A11 (by mistake) but it produced great results!! 🙂

    Leo’s Neural Network code is beyond me, but I will try and explore what is going on re my blunder! 🙂

    Also I will set my corrupted System going on Demo Forward Test and report results over on my own Topic using Leo’s Neural Network code.

    So in summary … a storm in a tea cup, but I may have unearthed something interesting?

     

    #80219
    Leo

    I read you fisrt code and I were thinking on that, then my daugther finally slept againg (4:33 am) and cotinue reading.

    You take one weight A11 and reset it every time with a value 38. Do not feel disappointed, I do not know either what effect take it that particular neuron and propagate to the others. I can imagine the effect was like drinking alcohol to that neuron. Haha

    1 user thanked author for this post.
    #81619
    Leo

    Awesome Video about the Math of neural networks. It is what I am coding here.

    https://youtu.be/N4gDikiec8E

     

    #81637

    Leo

    There is software published by Google allowing Deep Learning . “Tensorflow”

    In the following presentation , you will find interesting topics

    https://youtu.be/vq2nnJ4g6N0

    In the mean time I made already a list of additional data that  be included in the system:

    Ret : daily return of the asset
    HV : realized volatility for the past 5 sessions
    M5 Momentum 5
    M10 Momentum 10
    VIX9d or formally VXST 9-day volatility index of the S&P 500 (= market sentiment short term)
    VIX of S&P 500   (= market sentiment long term)
    VVIX  (= market sentiment momentum)
    MO month of the year (seasonality)
    DAY day of the week (seasonality)

     

    #81642
    Leo

    Hi didi059,

    there are other libraries for machine learning like sciki-learn but we need to learn another language of programming and  other interface with the brocker. So far I do not know how to implement for implement those libraries. We know from the beginning that prorealtime is not the right language for artificial intelligent.

    Those indicator sound good, I keep them in mind.

    #81685

    Hi Leo,

    Any idea of I should do to make it universaly work with stocks?

    Best,

    Chris

    #81723
    Leo

    Hi, Actually is already universal, If it is working that the issue 🙂

    From line 106 to 123 you add your indicators or variable and the output is a prediction of going long or short base on those variable you choose

    Actuallly in an strategy, those variables ca be in other time frames

    2 users thanked author for this post.
    #82157

    Hi,

    thanks for the code.

    If I’m not wrong you use “if barindex > xxxx then” to create a learning period.

    Do you think that if I replace BARINDEX by “DEFPARAM PRELOADBARS = xxx” it could allow to create a learning period a start to trade immediately?

    1 user thanked author for this post.
    #82757
    Leo

    Yes you are right.

    I use that for show it as an indicator. Defparam bars are also used for learning process.

    I would let “if barindex > xxxx then” feature inside because there are so much values involve that better have time for load everything.

Viewing 15 posts - 46 through 60 (of 127 total)

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