BCParticipant
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
?
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$.
Sorry, I misunderstood. Disregard my answer. You were talking about the code itself.
Hi!
I think it is the same. You have to copy paste code and start a New one to reset strategyprofit.
regards
Henrik
BCParticipant
Master
Thanks all, then may be my coding problem, I found the position size drop from 2 to 1.
BCParticipant
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
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?).
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?
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
BCParticipant
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
Lets see if SP need a sell close to recalculate? Aka what happens next open of positions?
H
Well, I’m not aware of this problem. You should send a debug console to get help from PRT at this point..
BCParticipant
Master
Hi Nicolas
Sorry to bother you, how to send a debug request to PRT?