Backtest RHS shows false sell signal

Forums ProRealTime English forum ProOrder support Backtest RHS shows false sell signal

Viewing 7 posts - 1 through 7 (of 7 total)
  • #78214

    Hi all,

    I am not sure if I have my thinking wrong or not.

    I have a simple backtest built off an indicator and it shows the black program termination mark on the very last bar (RHS) and a sell (X), whether the indicator

    is in sell or not.

    To me this is a false and misleading signal, and I have to look at the indicators to determine if it hasnt just flagged a real sell or not. I dont why it would do that.

    Any assistance would be greatly appreciated.

    Although the following code uses a CALL, the problem exists on other backtests as well using standard indicators.

    Thanks for any assistance you can provide

    John

    #78218

    To write code, please use the <> “insert PRT code” button, to make code easier to read. Thank you.

    For anyone to be of help, please post the code for the CALLed indicator or modify the code using a standard indicator.

     

    #78220

    Hi Roberto,

    sorry about the code.

    Indicator code is below:

     

    #78241

    It works, as far as I understand what it does, I tested it on a Daily TF on a coulple of stocks as from attached pics. I embedded the indicator in the strategy, but this shouldn’t make any difference. I used GRAPH to debug the strategy:

    Did you set your initial capital large enough to accomodate all losses?

    #78295

    This is a “normal” behavior if you backtest a strategy on a stock you haven’t the real time subscription. Is it the case? 😉

    #78330

    Hi Nicolas and thanks,

    I dont recall it being normal some time ago with the end of day version on other backtests I had. I think I only started seeing it with 10.3 perhaps?

    I wouldnt mind the black stop line signalling the end of run, its the sell signal that is just plain incorrect logic. It should not flag a sell unless the logic says to sell, not the end of program.

    Even if it isnt real time, it shouldnt give misleading signals which are effectively telling you to close out each day. I am trying to use the backtest to work out what I do on the next day, not much use if it constantly tells me every day to close out open positions.

    I dont need real time, since I work the ASX and its not available real time through PRT but I shouldnt expect different behavoiur in the two either.

    Thanks for your help

    John

    #78331

    Thank you Roberto for your effort in setting it up and testing it. The stock I used as an example the capital went up over the period, not down so running out of funds was not an issue.

    As per Nicolas post, It seems realtime works differently to end of day. As I said in response to Nicolas, it would be better with the sell signal not being there.

    End of run line OK, but an end of run shouldnt force a close out of position. I think that is an error.

    Thanks again.

     

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

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