Aggiunta di indicazione

Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #74097 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    C’è sempre il problema dello sfalzamento dovuto al ricalcolo su candele passate. NON è possibile stampare l’istogramma esattamente dove c’è la freccia, viene sfalzato di alcune candele.

    Se ti va bene lo stesso, eccolo:

    DEFPARAM CalculateOnLastBars = 1000
     
    //computation of the radius to draw ellipses
     
    //radius=average[200](range)/4
     
    //if golong=1 then
     
    //golong=0
     
    //endif
     
    //formula to compute short term swing points
     
    if (high>alto[1]) and not (high<high[1] and low>low[1]) then
     
    alto=high
     
    basso=low
     
    markup=barindex
     
    markhigh=high
     
    endif
     
    if (low<basso[1]) and not (high<high[1] and low>low[1]) then
     
    alto=high
     
    basso=low
     
    markdown=barindex
     
    marklow=low
     
    endif
     
    x = 0
    if alto<alto[1] and trend=1 then
     
    trend=0
     
    //drawarrowdown(markup,markhigh)
     
    mediummarkup=shortmarkup
     
    shortmarkup=markup
     
    longmarkhigh=mediummarkhigh
     
    mediummarkhigh=shortmarkhigh
     
    shortmarkhigh=markhigh
     
    //intermediate high swing points
     
    if longmarkhigh<mediummarkhigh and mediummarkhigh>shortmarkhigh then
     
    //DRAWELLIPSE(mediummarkup-1, mediummarkhigh-radius, mediummarkup+1, mediummarkhigh+radius)
     
    drawarrowdown(mediummarkup,markhigh+10)
    x = -1
     
    endif
     
    endif
     
     
    if basso>basso[1] and trend=0 then
     
    trend=1
     
    //drawarrowup(markdown,marklow)
     
    mediummarkdown=shortmarkdown
     
    shortmarkdown=markdown
     
    longmarklow=mediummarklow
     
    mediummarklow=shortmarklow
     
    shortmarklow=marklow
     
    //intermediate low swing points
     
    if longmarklow>mediummarklow and mediummarklow<shortmarklow then
     
    //DRAWELLIPSE(mediummarkdown-1, mediummarklow-radius, mediummarkdown+1, mediummarklow+radius)
    x = 1
     
    drawarrowup(mediummarkdown,marklow-10)
    //drawcandle(open,high,low,close)
    return x,0
    #74648 quote
    GiancoGianco
    Participant
    Senior

    Si Hai ragione , effettivamente c’è un problema importante sul ritardo di calcolo , mi trovo sui 30 tick che ritarda di 8 candele

    #75156 quote
    GiancoGianco
    Participant
    Senior

    Roberto mi da un errore di sintassi : Linea 95 carattere 1 , completa la sintassi

    #75165 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Scusami, mancano 2 ENDIF da inserire tra le righe 94 e 95 (la 95 diventerà 97)

       endif
    endif
    #76277 quote
    GiancoGianco
    Participant
    Senior

    grazie , va benissimo

Viewing 5 posts - 16 through 20 (of 20 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

Aggiunta di indicazione


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
Gianco @gianco Participant
Summary

This topic contains 19 replies,
has 2 voices, and was last updated by GiancoGianco
8 years, 2 months ago.

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 06/19/2018
Status: Active
Attachments: 3 files
ProRealCode ProRealCode
Loading...