Stopping program and strategyprofit calcs

Forums ProRealTime English forum ProOrder support Stopping program and strategyprofit calcs

Viewing 6 posts - 1 through 6 (of 6 total)
  • #171623

    I calculate trading amounts using oldprofits and strategyprofit so

    mystrategyprofit=strategyprofit+oldprofit where oldprofit will be an amount if I make an amendment and re-upload amended program so that I retain the program profit for calculations.

    I recently stopped a program and just restarted. Calculation of mystrategyprofit should have changed as strategyprofit shoul dhave been retained I thought.

    So since it didnt calculate the right amount to trade, I’m wondering whether it retains strategyprofit when stopped in its calculations, or whether I need to amend my oldprofit figure, I don’t think  I have had to do this in the past, so just wondeing if the strategyprofit should be retained or not if I stop it and just restart it again from the proorder autotrading window without amendments, which is sometimes equired.

     

    #171629

    As far as I can see when I stop a strategy, then restart it without removing it from autotrading, strategyprofit is retained.

    Since your Oldprofit is hard coded into the code, the strategy should resume trading without affecting your calculations.

     

    #171681

    Hi, that’s what I thought, it certainly retains overall P/L in whats shown, however my code increments amount traded so that the risk is in line with profit growth or losses, so I was keeping an eye to see if it lost or won on the next trade but it didnt increment itself, I stopped it as sometimes the strategies need a reboot, at least historically, but it didnt use the correct amount of risk for the trade and it’s a new program so should have incremented from its startup trading value as I ensure profit growth on new programs then have the code increment the profits accordingly after certain thresholds initially and then by a small amount each trade either increased or decreased accordingly.

    So I’m going to see if it increases on next trade as I rebooted it again, if not increasing the amount I’m going to have to assume that it will require re-initialisation with the current overall profits as oldprofit in the code and archive the current one to closed programs.

     

    1 user thanked author for this post.
    #171682

    Let us know how you get on please.

    #171689

    Will do

    #171749

    So for the 2nd day running it retained the startup amount for trading and I restarted it again beforehand to be sure.

    So my conclusion from that is that the programs appear to record overal profit, but the computer sees strategyprofit only from the commencement of each startup and not from onset of the program if stopped, so likely its retained in memory whilst running differently to the program overall profit.

    This will mean I will have to migrate the program profit and add it to oldprofit if the program is stopped for any reason.

    This program was left on before and made the correct increment but lost the trade, so jumped back to prior amount to trade before the increment threshold, so was working properly, however since stopped it doesn’t seem to have retained the program profit in the calculations so each time it is stopped it will need to have migrated figures and start afresh, it effects the quit value as well, so a migration to oldproit it is if the program is stopped and a fresh amendment re-uploaded.

     

    I’m not aware of a code that involves programprofit.. but I’ll check I guess

    1 user thanked author for this post.
Viewing 6 posts - 1 through 6 (of 6 total)

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