Neural networks programming with prorealtime

Forums ProRealTime English forum ProBuilder support Neural networks programming with prorealtime

Viewing 15 posts - 61 through 75 (of 127 total)
  • #83980
    Leo

    Hi all,

    Here I add a new classifier that satisfied me: define a very quick movement and only one parameter . When i find the time I update the Neural Network.

    Kind Regards

     

    1 user thanked author for this post.
    #84453
    Leo

    Hi all,

    I am glad to share with you my new version of a neural network.

    I am satisfied (so far) with the performance of the neural network. THE CODE I UPLOAD NOW USES AN OLD VERSION OF THE CLASSIFIER

    Here the changes:

    –> Implementing gradient descent in mini batches for 10values of data

    –> Only 5 epochs per training with constant update of the Learning Rate for faster learning (only 5 because if I incremented to 6 there is an error of infinite loop… I think ProrealCode does not have enough power of press ion to compute a proper gradient descent)

    –> I implement learning process with Momentum in order to increase speed of convergence.

    –>  The Values for the data is an indicator I invent for measure the behaviour  of different Moving Averages.

    –> If you scroll down the graphic of the indicator (values from -1 to -10), you will see how it shows the different values of weights, bias, Cost and Error which I use to evaluate and check the correct functionality of the Neural Network)

    Hope you like it, testing it and sharing your results. I am also glad to hear your opinions.

    Cheers

     

     

     

    6 users thanked author for this post.
    #84477

    Hi Leo,

    I feel like in Sci-Fi with this indicator;-) and it is great;

    thanks a lot for sharing;

    I tried it on stocks but was unable to make it release its prediction! I surely missed smthing (see picture).

    Should we change smthing?

    Can you give us on which asset you were able to have the graph you mentioned in your post?

     

     

    1 user thanked author for this post.
    #84480
    Leo

    Hi.

    Well. First you should know that this is not a universal indicator. Not like, we both see the same stuff if we open it.

    You need to load many bars like 20000bars then you give enough time to the indicator to learn. If you open it with 20k and me with 30k. My indicator has learn more than yours.

    Another parameters is the pips to a metaphirc trade. Now we look for possible trades and learn what has happend in the moment of entry the trade.

    For the prediction you take a value from 0.5 to 0.999 for make where is ypur predicition.

    In any case, There is a lot of work ahead. Thats why I share. Me alone I can not do it as faster I want.

    The neural network itself is working properlly ( with the limitations of prorealtime). That I recheck and recheck. And corrected and redoing stufff and checked it againg. Pufff

     

     

    #84483

    Thank you Leo for your ongoing work and for being so kind to share with us!

    I made a System out of your latest NN Code … equity curve attached over 100k bars with spread = 4.

    I have it on Demo Fwd Test from today … I’ll report back on here after 10 trades.

    #84489

    @Kris75

    100 units is far from sufficient for the machine to has learned something!

    1 user thanked author for this post.
    #84495

    thanks Leo for your precautions and Nicolas for your both answers;

    still blocked here; I get this message; with all TF;

    Best

    #84497

    great Grahal, can you share it too?

    #84499
    Leo

    Kris 75. Take pips per trade higher number because you loaded it in daily time frame.

    1 user thanked author for this post.
    #84502

    thanks Leo; was able to make it work in daily with “trade perpips” = 100 ;

    Hope Grahal will share the straegy so I can backtest it;

    Best

    Chris

    #84504

    Hope Grahal will share the strategy so I can backtest it;

    I will share for sure, but I’d prefer the System to do a few trades first.

    All I did was use output1 as a Long entry and output2 as a Short entry and added TP and SL (rough feel for profit / loss) and optimisation, oh and a simple Filter.

    Am I the only one who has makes Leo’s NN Indicator code into Systems? I have about 5 or 6 versions running in Demo Forward Test?

    This Thread needs to be kept clean for discussion re Leo’s NN Code.

    I have shared a few Systems based on Leo / NN code on my Thread …

    Right full Neural Network now, huge thanks to Leo!

    What we need is cross-fertilisation of ideas as I’m sure there are better ways (than mine) of using Leo’s code to make profitable Systems? Different TF and Markets even? The wider view? Feedback will likely help Leo with his superlative NN coding??

    So there’s a challenge   @Kris75 … you show me yours and I’ll show you mine? 🙂

    I will post the System (based on Leo 1.3.2 code) on the other Thread (link above), after I’ve seen at least one trade open and closed.

    Cheers
    GraHal

     

    #84592
    Leo

    Forgot to tell you there is a line at 196.

    It is about the time for intraday… by daily  bars you should delete it

    #84593
    Leo

    Hi all,

    I posted something interesting here:

    https://www.prorealcode.com/topic/weekly-seasonality-analysis/#post-84588

    What if do something similar for weekly? and then also for daily?

    when 3 predictions are showing the same then we entry in daily or hourly time frame…

    mmm…. sexy…

    2 users thanked author for this post.
    #84703

    Hi Leo,
    Why not use a special type of recurrent neural network called LSTM network?
    A solution to the vanishing gradient problem is to use cells to remember longterm dependencies
    Cordially

    Sources:
    http://colah.github.io/posts/2015-08-Understanding-LSTMs/
    https://github.com/llSourcell/How-to-Predict-Stock-Prices-Easily-Demo

    #84720
    Leo

    How man! sorry for disappoint you.  What I posted here is the first attempt ever  (as far as I know) of creating artificial intelligent using such a basic language like ProBuilder with no array support. It only has  memory for execute  5 epochs per mini batch, I do not even think to make something like a recurrent neural network.

    I only start with a Feed Forward Neural Network! with only 1 hidden layer!!! with only 6 neurons! do you think that my decent gradient is vanishing? really?  I have other problems, but definitely not a vanishing gradient.

    I will be happy if I were able one of those days to increase the number of neurons… maybe you Raspoutine can help us with this endeavour.

     

     

Viewing 15 posts - 61 through 75 (of 127 total)

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