How to compare next signal price to previous signal price

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #174899 quote
    jkadda
    Participant
    Average

    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.

    BollingerBands_Loss_Prevention.jpg BollingerBands_Loss_Prevention.jpg
    #174920 quote
    robertogozzi
    Moderator
    Master

    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 quote
    jkadda
    Participant
    Average

    @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.

    ProBacktest_TimePeriod.jpg ProBacktest_TimePeriod.jpg
    #174948 quote
    robertogozzi
    Moderator
    Master

    You can use one of these two versions:

    If summation[2](signal) = 2 then
    If signal and signal[1] then
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.

How to compare next signal price to previous signal price


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
jkadda @jkadda Participant
Summary

This topic contains 3 replies,
has 2 voices, and was last updated by robertogozzi
4 years, 6 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 08/08/2021
Status: Active
Attachments: 2 files
Logo Logo
Loading...