Indicatore restituisce n/d

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #186447 quote
    daniele87tsdaniele87ts
    Participant
    New

    Buongiorno a tutti, sto provando a creare un indicatore idealmente simile all’OBV, ma che utilizza come dato di partenza il force index.
    Ho provato a codificarlo nei seguenti modi, ma mi restituisce sempre un valore indeterminato (n/d) e non riesco a capire il motivo.

    Metodo1(con e senza “once efisum = 0”):

    once efisum = 0
    efisum = efisum + forceindex(close)
    return efisum

    Metodo2:

    return summation[barindex+1](forceindex(close))

    Grazie, Daniele

    #186462 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Prova a usare questo:

    return summation[max(1,barindex)](forceindex(close))
    #186494 quote
    daniele87tsdaniele87ts
    Participant
    New

    Funziona, grazie mille!

Viewing 3 posts - 1 through 3 (of 3 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

Indicatore restituisce n/d


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by daniele87tsdaniele87ts
4 years, 7 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 01/24/2022
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...