Neural networks programming with prorealtime

Forums ProRealTime English forum ProBuilder support Neural networks programming with prorealtime

Viewing 15 posts - 16 through 30 (of 127 total)
  • #79003

    Discussion about the trading strategy made by GraHal from the classifier code can be found by following this link: Long only trading with trend confirmation on 5 minutes timeframe

    1 user thanked author for this post.
    #79072
    Leo

    Hi all here is the complete classifier.

    Now that I completed it,  I realised that the clasiffier can be whatever you want for example using fractals and a loop for store the positions of the points. Or whatever method to detects the exactly change of tendency.

     

     

    2 users thanked author for this post.
    #79073

    can be found by following this link:

    The link comes up with 404 not found for me yesterday and today.

    Hey thank you so much for sharing your latest @Leo … this is new exciting work!

    Cheers

     

    #79135
    Leo

    Hi all,

    I write the main structure of the neural network.

    Still a lot work in process… for example to figure out the initial values for the weights and bias. I add a photo with the scheme

     

    #79140

    For the weights, I would suggest using the percentage of a similarity, as a coefficient. Like the way I did in this previous version: https://www.prorealcode.com/topic/neural-networks-programming-with-prorealtime/#post-78789

    #79150
    Leo

    For the weights, I would suggest using the percentage of a similarity, as a coefficient. Like the way I did in this previous version: https://www.prorealcode.com/topic/neural-networks-programming-with-prorealtime/#post-78789

    but we need 4*6+6+2*6+2 = 44 initial values   :s

     

    I still reading and learning about this topic

    #79152

    You are referring to this kind of line: F1=a11*input1+a12*input2+a13*input3+a14*input4+Fbias1 , right?

    I assume that a11 … a14 are different weights to give more or less importance to each of your input. That’s how weights are used in neural network, such as perceptron for instance. There is no one way to determine how weights are calculated or initiated.

    Like I said in my previous post you can set them as a statistical percentage of good value. So, let’s assume that all your inputs (from input1 to input4) are boolean variables (0=false, 1=true). For example, if your input1 is a value that gives better accuracy in your previous trades results (and you’ll have to make a study for this.. like the way I did in my example  ), you can weight the input like this:

    input1 was true for 53% when a classifierlong occurred so  a11=0.53

    F1 = 0.53*1+a12*input2+a13*input3+a14*input4+Fbias1

    This is a rough idea of how you can temper an input.

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

    Thanks Nicolas,

    Yes indeed, so far I read is a lot of try and error for the initial values, some others said with experience, one can get a good initial values. the actual values will are achieve during the learning process of the neural network.

    Talking about the learning process…

    Imagine that we build our Neural Network with success.

    How do we do the learning process?

    Is the fuction: DEFPARAM PreLoadBars = 50000 ?

    it means that 50k candles are loaded and the code is run through all of those candles? that will be great for the learning process.

    #79185

    Preloadbars is only used in ProBacktest and the maximum value you can preload is 10.000 bars.

    While it is not the case for indicator, maximum bars loaded is the value shown in the ‘units’ dropdown list.

     

    #79194
    Leo

    Sorry Nicolas, I could not fully understand the concept of PreLoadBars = 10000.

    At the moment of activating the strategy , it means that the program is run 10000 units of time before barindex=1?

    I would like to understand correct because the Neuronal Network should learn before taking decisions for trading, otherwise we have to “wait” many “barindex” before actually buy or sell… that can be a pin in the neck using this methodology of trading.

    another way is to back test using the function Graph and “try” to export-import all the 44 values as initial values for a quicker learning process…

    puff… what if are eager to create a bigger Neural Network with hundreds for weights !!!?

    I put a lot of hope in that “preloadbar ” fuction. Am I right? or naive?

    #79195
    Leo

    Hi all,

    I complete the calculus the partial derivates for the learning process of the neuronal network. I will really appreciate if someone can confirm or correct them if I miss something.

     

    #79197
    Leo

    Now every  time there is a new input generated by the Classifier, every weight or bias can be improve ( the neural network learns) by using the equation I attached (epsilon is a small value that can be a variable to be optimised in the walk forward testing) .

    It will be great if some of you can help me with this project.

    In fact, now that I finished the back-propagation algorithm,   it is very near already for create an indicator for prediction using Neural Network

    All I do, is to apply what I learn in here:

    http://neuralnetworksanddeeplearning.com/

    #79200

    At the moment of activating the strategy , it means that the program is run 10000 units of time before barindex=1?

    Just try if a variable had incremented on the first bar:

    if a >=10.000 on the first bar of the backtest, then the code been read and executed 10 thousands times (I have a very bad feeling about this! 🙂 )

     

    #79206

    It will be great if some of you can help me with this project.

    I only wish I could Leo and I feel sad that only Nicolas is helping you, but you also need folks with more time than Nicolas can spare.

    Your work is ground breaking as far as most of us are concerned. I did read the reference you posted and broadly understood, but it’s the coding I struggle with.

    Tomorrow I will see if I can contact @Maz as he is a capable member who sticks in my mind as one who similarly tried to move forward with complex collaborative projects on here.

     

    #79209
    Leo

    it works!

    that means it will learn 10000 bars that is a very good news, cause we do not have to wait until it learns

Viewing 15 posts - 16 through 30 (of 127 total)

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