Clôture de position LONG ou SHORT

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #31643 quote
    CarlCarl
    Participant
    Average

    Ci-dessous une demande qui a été envoyée à ProRealTime :

    Bonjour,
    je souhaite programmer un ordre de clôture de ma position (long ou court),en fonction d’un jour ou d’une heure que je choisie, selon le pas de temps (journalier, 4h..) à mon système automatisé.
    Merci d’avance

    Et une proposition de réponse :

    Pour fermer toutes les positions longue short à une date donnée (ici le 1ère janvier 2017).

    if date=20170101 then
    sell at market
    exitshort at market
    endif

     

    Pour fermer toutes les positions a un heure définie (ici à 15h00)

    if time=150000 then
    sell at market
    exitshort at market
    endif
Viewing 1 post (of 1 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

Clôture de position LONG ou SHORT


ProBuilder : Indicateurs & Outils Personnalisés

New Reply
Author
author-avatar
Carl @carl Participant
Summary

This topic contains 1 voice and has 0 replies.

Topic Details
Forum: ProBuilder : Indicateurs & Outils Personnalisés
Language: French
Started: 04/10/2017
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...