End Of Day – YEN M15 Strategy

Forums ProRealTime English forum ProOrder support End Of Day – YEN M15 Strategy

Viewing 6 posts - 91 through 96 (of 96 total)
  • #214064

    Well, normally you code a strategy where you have the feeling that it generates stable profits over a long period of time. So… correct me… I thought that was your goal?

     

    1 user thanked author for this post.
    #214101

    I start this topic to discuss this strategy and understand it and why not improve it and at the same time learn to program

    that is the goal of this thread : learn to program , I think that if you have a good command of programming and consequently good money management rules and a precise management of inputs and outputs (or at least understand why you are executing favourably or unfavourably) you can then transform a losing strategy into a winning strategy

    As far as winning or not winning strategies are concerned, I think there are plenty of them on the Internet, but how can you test them if you don’t master programming properly, and as GraHal says, you can sometimes end up with good strategies by making mistakes

    I hope I have answered your question

    #214299

    hello

    I’m going to go back to version 21 and remove the functions with the IntraDayBarIndex and replace them with the Time functions, I think it will make my head hurt less while I improve the code a bit,

    Also I’ll remove the DST issue temporarily until I find a good solution

    And to include some money management ideas that we will call idea B that you can find on this thread

    #214331

    Nothing exceptional but I will use the time function TIME instead of the INTRADAYBARINDEX function for my indicator Tokyo Box v3 and also my strategy :

    #214602

    Hi everyone, I hope you are well,

    Here is as promised a version 21, it is not exceptional and you will see that on my code there is a lot of redundancy I know it is not the top but for me it suits me for the moment and it allows me not to make mistakes, we will see later to improve the code

    I would like to thank all the people who responded and helped me directly or indirectly (@phoentzs , @GraHal , @Nicolas , @PeterSt , @robertogozzi , …. 😊)

    In this code and so I hope it works well anyway I checked several times and it seems to be OK, it’s to calculate the losses generated by the losing trades between 8:05am until 8:05am the next day, so I can count my daily losses and for example put a condition :
    – stop buying for the day if I exceed 10€ of loss (C6)
    – stop buying for the week if I exceed 40€ of loss (C7)

    The next step will be to calculate the losses per month and stop buying if we lose more than 100€.

    The other steps will be to calculate the real gain and the latent gain in order to reallocate a part each week for the next week if we are in the positive to allow ourselves to lose more while protecting our realized gains 😊

    #214630

    I forgot to set a variable to 0, sorry

    I just finished what I wanted to do for the monthly losses, next step I will try to count the gains to make some variables dynamic and not static anymore

    I know that the code is a bit long and it can be optimised but for that you need experience

    2 users thanked author for this post.
Viewing 6 posts - 91 through 96 (of 96 total)

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