End Of Day – YEN M15 Strategy

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

Viewing 15 posts - 16 through 30 (of 96 total)
  • #212213

    I think you know all that it takes a 67% increase on our capital to recover the 40% drop, Even if the strategy with 40% draw down and positive it’s still a shame to lose the 40% you had won

    #212215

    The next step would be to use stop followers and maybe also to improve the Take profit with this thread

    If you have other ideas or other contributions I’m interested, the goal is to improve the code a bit and especially for me and to improve myself in programming and why not for some beginners and the community

     

     

    #212316

    Let’s go with a first improvement that is not really an improvement, the Hit & Run, as you can see on the original code the setting value of TP and SL is :

    with this value we are from 100K to 204K JPY

    but with just reduce the SL from 1 to 0,5% of the trade and increasing the profit from 0,8 to 1% we are from 100K to 245K JPY

    #212326

    Let’s go with the second improvement :
    – I reduced the code and remove some code (maybe stupid condtion for try to ride the position, I will come back to this next time)
    – at this time I use only Long position, because if I’m not wrong it’s not possible to be Long and Short in he same time with the same code (I on’t know if it’s possible to be long and shot in the same time with 2 different algo on the same stoks with IG ?)
    – I add some trule even it’s not perfect for magane the SL

    My question is : Why the algorithm takes me out of position at 9pm ?, You can see on the screenshot the output is represented by a red triangle

    #212329

    it’s not possible to be Long and Short in he same time with the same code

    Above is correct.

    Why the algorithm takes me out of position at 9pm ?, You can see on the screenshot the output is represented by a red triangle?

    How you know the red triangle is a 9pm? You are not using crosshairs on your cursor and the x axis shows 16:00 and 13 and 14?

    Or am I missing something?

     

     

    1 user thanked author for this post.
    #212330

    It does put long and short positions at the same time.
    But be careful, you must have an account with a non-guaranteed stop.

    #212333

    You are right I made a mistake, I had an exit by chance at 9pm and I thought it was an error in my code but indeed I see on the screenshot and on my test right now that I exited around 7:45pm,

    So the problem comes from my management of stops and trailing stops

    #212334

    It does put long and short positions at the same time.

    I don’t undertand what you do mean, it’s possible to be both of Long and Short with the same algorithme or Not  ?

    #212335

    Here I think I have understood Nicolas’ reasoning on the stop follower, it’s not perfect yet but I think it’s already better than the post just before :

     

    We can see that in the position just before the exit was around 140 pips (red frame), while now for the same trade the trailing stop makes us exit with a gain of 509 pips, Of course the code is not perfect, it tends to go the other way

    For the first movement of the StopLoss to the breakeven with the variable Points2BE, I voluntarily left the number 140 in order to let the position breathe, On the other hand, if you have any other ideas or proposals on this point, I’d be happy to hear them.

    We should also not forget the disastrous performance at the beginning of the backtest 😅

    #212400

    Hi

    some one can tell me how to draw my newSL Variable in my graphic price pls ?, I add this line but as you can see the graphic is on a frame alone, but I want to draw if with candles price together :

     

    even my variable going from 0 to a big value, that is not a problem now, but if you also have a solution for this ?

    #212403

    Instruction GRAPHONPRICE

    https://www.prorealcode.com/documentation/graphonprice/

    1 user thanked author for this post.
    #212408

    @JC_Bywan
    tks you, I will read it in the end of day and come back with a solution for my problem 😄, maybe if I find a solution for the 0 value 😅

    #212418

    I found this solution for draw the traling stop (tks you @JC_Bywan), but how to don’t draw it when we don’t have a trade open :

    I also tryed this but not working :

    #212423

    Try …

     

    1 user thanked author for this post.
    #212424

    but how to don’t draw it when we don’t have a trade open :

     

     

    Note that really “don’t draw” does not exist. Here you see the exit from this morning (in the coffee-spoiling topic 😉 )  and it is depicted by the green line. So this line changes position because I tell it to, but when the position is exited I stop drawing that green line (and more). Now this line keeps on drawing automatically, but while this seems strange, it is even convenient. See 2nd screenshot. You can easily see where this green line was in action, and can zoom in to it when you want. In my case these are the trailing stop exits (the darker green line). Just learn a bit to utilize this feature. You will see it is quite handy.

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

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