Indicatore DrawDown sempre nullo…

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

    Ciao a tutti.

    Qualcuno saprebbe dirmi perché questo semplice indicatore creato da me, con lo scopo di visualizzare il massimo DrawDown, mi restituisce sempre zero? Grazie

    Massimo=0
    If close > Massimo THEN 
    Massimo=close 
    endif
    if close < Massimo then
    DrawDown = (close-Massimo)/MASSIMO*100
    ELSE 
    DrawDown = 0
    ENDIF 
    return DrawDown
    #216903 quote
    GuidozGuidoz
    Participant
    New

    Trovato…la prima riga “Massimo=0” non serve

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

Indicatore DrawDown sempre nullo…


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
Guidoz @guidoz Participant
Summary

This topic contains 1 reply,
has 1 voice, and was last updated by GuidozGuidoz
3 years, 2 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 06/27/2023
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...