Useless error message

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #4810 quote
    Free2Trade
    Participant
    Junior

    Can anyone explain what this message actually means.  I’m calling an indicator for its current value from a screener (0, 1 or -1).  Then I want to list which securities have an indicator value of 1 or -1.

    I appreciate it is not always possible to return a line number but a better description with examples of what would produce this error would be helpful.

    Proscreener-msg.jpg Proscreener-msg.jpg
    #4815 quote
    Nicolas
    Keymaster
    Master

    ProScreener don’t allow lookback in the past for more of 254 bars.

    I already made some kind of walk around of this limitation in the Spanish forum, let me look for it.

    #4816 quote
    Nicolas
    Keymaster
    Master

    If you are looking about Highest or Lowest values in the past than more 254 bars, this code will certainly help you :

    once previousbar = 0
    once hh = 0
    once ll = low
    
    if(barindex>previousbar) then
     previousbar=barindex
     hh=MAX(hh[1],high)
     ll=MIN(ll[1],low)
    endif
    
    RETURN hh,ll

     

    This is an indicator to store the Highest and Lowest values from the beginning of your chart. In a screener you should call “hh” and “ll” to make conditionnal test for what you are looking for.

    historical-previous-high-and-low.png historical-previous-high-and-low.png
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Useless error message


Platform Support: Charts, Data & Broker Setup

New Reply
Author
author-avatar
Free2Trade @free2trade Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Nicolas
9 years, 10 months ago.

Topic Details
Forum: Platform Support: Charts, Data & Broker Setup
Language: English
Started: 04/04/2016
Status: Active
Attachments: No files
Logo Logo
Loading...