Strategia di chiusura basata su nuovi minimi e massimi

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #236719 quote
    Alessandro Furlani
    Participant
    Average

    Vorrei includere in un mio ProOrder una strategia di chiusura basata sul raggiungimento di nuovi minimi  massimi. Ho visto che PRT me li calcola automaticamente e vorrei usare quelli come riferimento, come faccio ? Mi potete dare un esempio di codice ?

    #236726 quote
    robertogozzi
    Moderator
    Master

    ProOrder ti indica con HIGH e LOW i massimi ed i minimi, davi verificare tu se questi sono superiori o inferiori ai precedenti.

    Esempio:

    HH = highest[50](high[1])
    LL = lowest[50](low[1])
    IF (close > HH) OR (close < LL) THEN
       SELL AT MARKET
       EXITSHORT AT MARKET
    ENDIF
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Strategia di chiusura basata su nuovi minimi e massimi


ProOrder: Trading Automatico & Backtesting

New Reply
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
1 year, 6 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 08/26/2024
Status: Active
Attachments: No files
Logo Logo
Loading...