Function POW not working in screener

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #196484 quote
    jrh_han
    Participant
    New

    Enclosed my code – works well as indicator, but using it for screening purposes it always leads to an error message “Syntax Error line 13, sign 18”. This is the function POW.

    Whats wrong?

    timeframe (daily)
    
    ONCE firstclose = 0
    
    if barindex = 0 then
    firstclose = DClose(0)
    endif
    
    rendite = Close[1]/firstclose - 1
    
    if (barindex > 0) then
    pot = 365 / barindex
    perannorendite = POW(1+rendite,pot) - 1
    endif
    
    timeframe(default)
    
    perannorendite = Round(perannorendite *100)
    
    criterium = Volume > 100000 and DClose(1) > 1
    
    SCREENER[criterium] (perannorendite AS "PAR%")

    Thx in advance

    Roger

    #196497 quote
    robertogozzi
    Moderator
    Master

    You can replace POW with this code while PRT are coding corrections https://www.prorealcode.com/topic/erreur-sur-fonction-pow/#post-196272

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

Function POW not working in screener


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
jrh_han @jrh_han Participant
Summary

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

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 06/30/2022
Status: Active
Attachments: No files
Logo Logo
Loading...