Strategia di chiusura basata su nuovi minimi e massimi

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

    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
    robertogozzirobertogozzi
    Moderator
    Legend

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

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 robertogozzirobertogozzi
2 years ago.

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