StrategyProfit value return to zero

Viewing 15 posts - 1 through 15 (of 26 total)
  • Author
    Posts
  • #62597 quote
    BC
    Participant
    Master

    If I temporary stop my live Algo from ProOrder Auto Trading, (not delete,  StrategyProfit value is $7,000 before stop) and re-start it a moment later.

    The value of StrategyProfit value return to zero or still $7,000?

    PositionSize = 1
    Once Size = PositionSize
    Once Capital = (5000*Size)
    Equity = Capital + StrategyProfit
    
    
    // Position size calculation
    if equity<=Capital then
    PositionSize = Size*1
    endif
    if equity>=Capital*2  then
    PositionSize = Size*2
    endif
    if equity>=Capital*3  then
    PositionSize = Size*3
    endif

     

    ?

    #62599 quote
    Juan Salas
    Participant
    Master

    Hi Bin,

    If you stop the program (not delete), the strategy profit will be kept in the memory of ProrealOrder, until you START it again, then you should see your 7.000$ again in the general profit. When you STOP the program it is like you put it in stand-by, rather than stop it.

    A different case is if you DELETE it from Prorealorder to change something in the code, then when you upload it again, even if you didnt change anything, it will be treat it as a completely new one and will start from 0$.

    #62600 quote
    Juan Salas
    Participant
    Master

    Sorry, I misunderstood. Disregard my answer. You were talking about the code itself.

    #62601 quote
    Henrik
    Participant
    Veteran

    Hi!

    I think it is the same. You have to copy paste code and start a New one to reset strategyprofit.

    regards

    Henrik

    #62672 quote
    BC
    Participant
    Master

    Thanks all, then may be my coding problem, I found the position size drop from 2 to 1.

    #62675 quote
    BC
    Participant
    Master

    Hi Nicolas

    Please help me move this post to platform support, and hope Prorealtime helpdesk can verify my case, because I found my code is correct, backtest also 2 positions when strategyprofit was over $7,000.

    THX

    #62711 quote
    Nicolas
    Keymaster
    Master

    So you have stopped your strategy and after a relaunch your position size has dropped to 1? (the default position size according to your code?).

    #62792 quote
    BC
    Participant
    Master

    Hi Nicolas

    Yes

    #62823 quote
    Nicolas
    Keymaster
    Master

    Ok, so the strategyprofit has been resetted to zero. What does the running strategies of the ProOrder window shows about the current profit of this specific one?

    #62832 quote
    BC
    Participant
    Master

    Hi Nicolas

    Screen cap attached.

    IMG_9743.jpg IMG_9743.jpg
    #63122 quote
    Henrik
    Participant
    Veteran

    Hi!

    Had the same problem this weekend.

    Stopped 3 strategies on friday, started then again on sunday. Profits still appear in proorder Window but less positions then supposed  are taken. Strange thing is that one of them took 1,5 contracts instead of 1 (if SP=0).

     

    Regard

    Henrik

    #63140 quote
    BC
    Participant
    Master

    Hi Henrik

    Yes, this problem never happen before, that mean our money management coding related to “StrategyProfit” command are out of order now.

    Bin

    #63147 quote
    Henrik
    Participant
    Veteran

    Lets see if SP need a sell close to recalculate? Aka what happens next open of positions?

    H

    #63254 quote
    Nicolas
    Keymaster
    Master

    Well, I’m not aware of this problem. You should send a debug console to get help from PRT at this point..

    #63340 quote
    BC
    Participant
    Master

    Hi Nicolas

    Sorry to bother you, how to send a debug request to PRT?

Viewing 15 posts - 1 through 15 (of 26 total)
  • You must be logged in to reply to this topic.

StrategyProfit value return to zero


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
BC @robin_chan Participant
Summary

This topic contains 25 replies,
has 5 voices, and was last updated by Despair
8 years ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 02/13/2018
Status: Active
Attachments: 3 files
Logo Logo
Loading...