bollingerup < bollinger down

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #199159 quote
    romanelli4romanelli4
    Participant
    Average

    buongiorno

    dovrei codificare quanto in foto:

    If bollinger up diventa minore di bollinger down (precedenti)  Then

    il trend diventa short

    fino a quando si verifica la condizione opposta

    ed allora il trend diventa long

     

    Ho scritto qui perchè non trovo la solita finestra dove scrivere i codici

    Grazie mille

    Max

    bb.png bb.png
    #199203 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Ecco il codice:

    BollUP = Average[20](close)+std[20](close)
    BollDN = Average[20](close)-std[20](close)
    Trend  = 0                //1=trend rialzista,  -1=trend ribassista
    FOR i = 0 TO BarIndex - 1
       IF BollDN > BollUP[i] THEN
          Trend = 1
          break
       ENDIF
       IF BollUP < BollDN[i] THEN
          Trend = -1
          break
       ENDIF
    NEXT

    quando Trend=1 il trend è RIALZISTA, quando Trend=-1 il trend è RIBASSISTA.

    #199220 quote
    romanelli4romanelli4
    Participant
    Average

    grazie mille

    ci lavoro su

    max

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

bollingerup < bollinger down


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
romanelli4 @romanelli4 Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by romanelli4romanelli4
4 years, 1 month ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 08/17/2022
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...