Strategyprofit on fixed tp

Forums ProRealTime English forum ProOrder support Strategyprofit on fixed tp

Viewing 15 posts - 1 through 15 (of 32 total)
  • #207000

    Strategyprofit again

    Maybe the question is already answered and someone can answer me with a link to it?

    Question is.

    Every trade I win should increase my capital in 1%.
    If I lose a trade, the next trade should increase my capital by a total of 2%. If I lose the next trade, the next trade should increase my capital by a total of 3%, and so on until I win a trade. If this is the 4th trade that wins, I then have 104% capital and this should then be set to 100% capital and game starts again.
    So far so good and for the cracks here certainly no problem.

    But now, how does it look if I work with a fixed TakeProfit from trade with 1.5% and only with a time stop?
    Here now the quite simple strategy in which the Strategy-Proft problem could be integrated.

    pls can anyone help?
    see attached the itf-file

    #207093

    What is the starting Capital you want to use for 1 lot?

     

    1 user thanked author for this post.
    #207438

    Well, hi, Roberto.

    Currently, unfortunately, I do not have so much time for PRT. I am sorry that I can only answer today. So here let´s go.

    Starting Capital = 10.000

    One addition/change perhaps still.

    Since the TakeProfit is not reached every time because of the TimeStop, this would have to be taken into account.

    Means therefore

    If a trade is won with 50 points after time stop ,
    New Startcapital= 10.050 = 100.5%
    This NewCapital is then set to 100% for the further calculations
    NewStartcapital = 10,050 = 100%
    (Starting Capital = 10.000 = 100%
    Gain after TimeStop = +50 pointsize
    New Startcapital = 10.050 = 100%)

    If a trade is lost, the next trade should reach the target of 1.5% calculated from the all-time high of the starting capital.
    Therefore, the correct stake size must be calculated in order to achieve the take profit of the StartingCapital of 1.5% + all-time high from Starting Capital when the take profit of the trade is reached.

    Example
    oldStartCapital = 10.000
    Profit trade = +50 points
    newStartCapital = 10.050
    next Trade = Losstrade =-100 points
    newStartCapital= 9.950

    Calculate the postionsize if reach the TakeProfit of the trade = 1.5% of the price = reach the TakeProfit of the all time high of the starting capital (= 10,050 ) +1% of the starting capital.
    the target new starting capital would be 10.050 + 10.050*0,01 = 10.150,5

    It is complicated. Do you understand what I mean?

    #207439

    If it’s unclear, please write back, we can do it piece by piece

    #207785

    There you go:

    I couldn’t fully understand the 1.5% and the all-time highest capital requirements, so I did not add them. Can you explain better with some examples?

     

     

    2 users thanked author for this post.
    #207824

    Hello Roberto.

    Thank you very much for your work.
    I would also like to take this opportunity to say a big thank you for standing by me and helping me so many times. Thank you!

    Once again for understanding. I try to express myself better.

    It should apply in general to all strategies and be examined on the example of the late-noon-trade.

    We have a time-based stop. This means we do not always reach the specified StopLoss and TargetProfit.
    Nevertheless, we have SL and TP.

    Let’s program the FinanceMangement, piece by piece.

    We start from the initial capital of 10,000 euros.

    Step 1
    We win a trade.
    Now the (new) starting capital should be = 10.000 Euro + the profit from the last trade.

    Simple?
    Send it back as a code.

    oki?

    1 user thanked author for this post.
    #208673

    I am attaching the new version according to yourlast request.

     

    2 users thanked author for this post.
    #209148

     

     

    #209311

    I put your algo live. One trade so far, one winner but unfortunately no further trades although one appears every day in the backtest ??? It makes me doubt that there are live problems ??

    #209536

    I could not yet deal with Roberto’s changes, so many things are also to do. A big thanks to Roberto who works tirelessly like a machine.

    The original trade approach runs live with me. ordersize halfpoint for control purposes. No problems. The same almost like in demo.

    1 user thanked author for this post.
    #209952

    Hello Roberto
    or maybe someone else can help.

    I have simplified the code and changed onetime. Because it is not about maximization. He looks like this now.

    The intended calculation of the order size seems clearer now.

    If the last trade was won, the order size = 1.

    If the last trade was lost, the order size should be calculated in such a way,
    that the TakeProfit of the trade = 1.5% and when this TakeProfit is reached, the new Eqitity should be Equitiy[1] + Capitalincr*pipsize.

    Can the code be created for this?

    1 user thanked author for this post.
    #210157

    hello Roberto
    do you already have a plan for John’s problem, would also be very interested to find out how it works????

    #210282

    Actually I don’t know what to do, I can’t find any calculation method when a trade is lost. How can 1.5% TP be reached if the trade was lost?

     

     

    2 users thanked author for this post.
    #210298

    How can 1.5% TP be reached if the trade was lost?

    For the next trade to come.

    #210306

    My problem was that there was only one trade and nothing happened for weeks (several trades were displayed in the backtest for the period), I closed it yesterday at PRT and immediately restarted it and today there was another trade that was still there is running, I’m curious what happens and if it starts trading again ??

Viewing 15 posts - 1 through 15 (of 32 total)

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