Prise position à partir indicateur fléché

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #54722 quote
    MatricielMatriciel
    Participant
    Master
    Bonjour Nicolas, J’essaie de coder une prise de position à l’achat ou à la vente à partir de cet indicateur (ci-dessous) mais je n’y arrive pas. J’ai essayé mille choses mais rien n’y fait ! Peux-tu m’aider s’il te plait ?
    IF low < lowest[1](low[1]) THEN
    mintemp = low //minimum temporal
    posmintemp = BARINDEX //postition of minimum temporal
    ENDIF
    
    Achat = (Average[20] crosses over Average[50])
    
    IF Achat THEN
    DRAWARROWUP(posmintemp,mintemp-2) coloured(0,0,0)
    ENDIF
    Merci beaucoup !
    #54727 quote
    MatricielMatriciel
    Participant
    Master
    Je sais que l’on pourrait faire : Mais ce n’est pas ce que je recherche à faire. La condition d’achat n’est qu’un exemple dans ce cas là. Je souhaite déclenché un achat lorsque la flèche apparait sous la courbe du prix.
    If achat then
    buy 1 contract at market
    Endif
    #54734 quote
    NicolasNicolas
    Keymaster
    Legend

    Si tu veux lancer une nouvelle position à l’achat lorsque la flèche apparaît, tu as parfaitement codé ce qu’il fallait faire. J’ai peur de ne pas bien comprendre pourquoi tu penses l’inverse ? 🙂 

    Matriciel thanked this post
    #54746 quote
    MatricielMatriciel
    Participant
    Master

    Oui, tu as raison.

    Je viens de contrôler à nouveau mon indicateur et déclencher un achat à la place de la flèche fonctionne.

    Merci encore pour ta disponibilité.

    Bonne journée.

    DJ

    #54777 quote
    MatricielMatriciel
    Participant
    Master

    Je reviens vers toi.

    J’aimerais stocker en mémoire l’avant dernière “DRAWARROWUP” pour déclencher un achat à la prochaine “DRAWARROWUP“.

    Comment puis-je faire ?

    Merci Nicolas.

    #54779 quote
    NicolasNicolas
    Keymaster
    Legend

    C’est à dire ? Car tu peux stocker ce que tu veux dans une nouvelle variable, je vois pas où est ton problème ?

Viewing 6 posts - 1 through 6 (of 6 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

Prise position à partir indicateur fléché


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
Matriciel @matriciel Participant
Summary

This topic contains 5 replies,
has 2 voices, and was last updated by NicolasNicolas
8 years, 10 months ago.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 12/04/2017
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...