Massimo e minimo candela iniziale

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #191925 quote
    xPepx71@xPepx71@
    Participant
    New

    Innanzitutto chiedo scusa perchè immagino che la domanda sia stata già posta varie volte, ma non trovo la risposta.

    Aperta una posizione long , vorrei aggiungere un comando di vendita se il prezzo scende 3 punti sotto il minimo della candela iniziale. Al contrario per lo short . Grazie per l’aiuto.

    #192003 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Eccolo:

    MieCondizioniLong  = close CROSSES OVER  average[100,0](close) AND Not LongOnMarket
    MieCondizioniShort = close CROSSES UNDER average[100,0](close) AND Not ShortOnMarket
    IF MieCondizioniLong  THEN
    BUY 1 CONTRACT AT MARKET
    Uscita = low - 3*PipSize
    SELL AT Uscita STOP
    ENDIF
    IF MieCondizioniShort THEN
    SELLSHORT 1 CONTRACT AT MARKET
    Uscita = high + 3*PipSize
    EXITSHORT AT Uscita STOP
    ENDIF
    IF LongOnMarket THEN
    SELL AT Uscita STOP
    ENDIF
    IF ShortOnMarket THEN
    EXITSHORT AT Uscita STOP
    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

Massimo e minimo candela iniziale


ProOrder: Trading Automatico & Backtesting

New Reply
Author
author-avatar
xPepx71@ @peppe71 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzirobertogozzi
4 years, 5 months ago.

Topic Details
Forum: ProOrder: Trading Automatico & Backtesting
Language: Italian
Started: 04/19/2022
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...