sell at limit

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10048 quote
    AleXAleX
    Participant
    Senior

    Forse è una domanda banale ma non riesco a trovare soluzione.

    Voglio che se sono long, l’uscita venga fissata al minimo della barra precedente il che mi fa sia da stop che da take profit, e che questa uscita si aggiorni ad ogni barra successiva.

    Ho provato con questo:

    if longonmarket then
     sell 1 contract at low[1] limit
    endif

     

    Ma non funziona affatto come pensavo e le uscite sembrano quasi casuali. Qualcuno sa aiutarmi?

    Grazie

    #10051 quote
    NicolasNicolas
    Keymaster
    Legend

    Se vuoi vendere il tuo ordine BUY al di sotto del prezzo effettivo, è necessario utilizzare un ordine STOP e non un LIMIT uno:

    if longonmarket then
     sell at low[1] 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

sell at limit


ProBuilder: Indicatori & Strumenti Personalizzati

New Reply
Author
author-avatar
AleX @bidolia Participant
Summary

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

Topic Details
Forum: ProBuilder: Indicatori & Strumenti Personalizzati
Language: Italian
Started: 06/30/2016
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...