Function POW not working in screener

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #196484 quote
    jrh_hanjrh_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
    robertogozzirobertogozzi
    Moderator
    Legend

    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.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 robertogozzirobertogozzi
4 years, 2 months ago.

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