bollingerup < bollinger down

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #199159 quote
    romanelli4
    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

    #199203 quote
    robertogozzi
    Moderator
    Master

    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
    romanelli4
    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.

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 romanelli4
3 years, 5 months ago.

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