How to compare next signal price to previous signal price

Forums ProRealTime English forum ProOrder support How to compare next signal price to previous signal price

Viewing 4 posts - 1 through 4 (of 4 total)
  • #174899

    In the attached chart for manual trading  i applied buy and sell conditions , but got the highest loss at where the buy signal was at 1.38 and sell signal at 1.36.

    Now i want to limit or eliminate the losses by programming in which next signal price will be checked and compare with previous signal price to confirm its favourability before proceeding.

    In effect i want to be able to compare 1.36 at sell  to 1.38 at buy, if sell > buy proceed else wait till condition if favourable.

    Thanks in advance.

     

     

     

    #174920

    Post your topic in the correct forum:
    _ ProRealTime Platform Support: only platform related issues.
    _ ProOrder: only strategy topics.
    _ ProBuilder: only indicator topics.
    _ ProScreener: only screener topics
    _ General Discussion: any other topics.
    _ Welcome New Members: for new forum members to introduce themselves.

    The basic rules are highlighted in yellow, below. I moved it from ProBuilder.

    You could use a trailing stop with breakeven to deal with retracements.

    If you mean that you want to enter only on the second signal when TWO consecutive signals show, you can easily check THE current signal + the signal on the PRIOR candle. If they are equal then enter.

     

     

     

     

    #174946

    @robertogozzi

    Many thanks for the information.

    Based on your recommendation i have set trailing stop which have improved the results significantly.

    But i have tried to use different timeframes  with different Time periods in the past but unfortunately the setup for historical time periods are inactive, meaning am not able to backtest for time periods in last year or 2 years ago as shown in the attached screenshot , are you able to help me rectify this?.

    For your 2nd recommendation “enter only on the second signal when TWO consecutive signals show, you can easily check THE current signal + the signal on the PRIOR candle. If they are equal then enter.” are you please able to provide sample code or a clue as to how i write this code.

    Regards.

     

     

    #174948

    You can use one of these two versions:

Viewing 4 posts - 1 through 4 (of 4 total)

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