MEMORIZZARE HIGH PER SUCCESSIVO INGRESSO

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #216813 quote
    Edisone
    Participant
    Average

    Buonasera,

    al verificarsi della condizione: es. il prezzo incrocia al ribasso un livello, ho la necessità di memorizzare il valore High della candela che ha incrociato il livello per poi una volta che il prezzo incrocia al rialzo il valore High entrare a mercato.

    E’ fattibile ?

    Grazie.

    #216832 quote
    robertogozzi
    Moderator
    Master

    Eccolo:

    ONCE MioLivello = 0
    ONCE Massimo    = 0
    IF Onmarket THEN
       Massimo = 0
    ENDIF
    IF close CROSSES UNDER MioLivello THEN
       Massimo = high                        //salva il valore del MASSIMO
    ENDIF
    IF (Massimo <> 0) AND (close >= Massimo) THEN
       BUY 1 CONTRACT AT MARKET
    ENDIF
    Edisone thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

MEMORIZZARE HIGH PER SUCCESSIVO INGRESSO


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
Edisone @edisone Participant
Summary

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

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