Indicator time period range?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #29023 quote
    robdav
    Participant
    Veteran

    Is there any way to have a condition use a time period range on an indicator without having to code each condition individually?

    As an example, if you wanted to check a moving average crossover but instead of just using one period crossing over another period you could specify a range so 1-10 cross over 20-30?

    Thanks

    Rob

    #29123 quote
    Nicolas
    Keymaster
    Master

    Interesting way of checking multiple indicators’ periods conditions at the same time! You can use a FOR/NEXT loop in order to increment the moving average periods and to check their crosses.

    But I think you’ll get a lot of positive results while doing this. The main problem is that you’ll need to break the loop in order to have the result, and you’ll get only one, the first one (incrementing loop) or the last one (decrementing loop), because we can’t build data array in ProBuilder, you always need to know in advance how much variables you’ll need and it’s of course impossible 🙂

    robdav thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Indicator time period range?


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
robdav @robdav Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
8 years, 11 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 03/18/2017
Status: Active
Attachments: No files
Logo Logo
Loading...