Pas de position si condition d'achat < achat précédent

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #97126 quote
    MatricielMatriciel
    Participant
    Master

    Bonjour Nicolas, bonjour à tous,

    J’aimerais que mon robot ne prenne pas de position à l’achat si la position d’achat, sur le graphique, à l’instant T est inférieure à la position de l’achat précédent, également sur le graphique.

    IF (tradeindex+conditionachat*pipsize) < (tradeprice+conditionachat*pipsize)[1] THEN
    SELL AT MARKET
    ENDIF

    J’ai codé quelque chose comme ça mais ça ne fonctionne pas.

    Une bonne âme pour m’aider S.V.P ! Merci ! 🙂

    #97131 quote
    robertogozzirobertogozzi
    Moderator
    Legend

    Votre code n'est pas correct: 1. SELL sort d'un commerce long. 2. TRADEINDEX et TRADEPRICE ne peuvent être comparés. S'il vous plaît envoyer le code correct afin que nous puissions aider.

    #97176 quote
    MatricielMatriciel
    Participant
    Master

    Merci Roberto !

    J’abandonne mon idée car elle est mauvaise ! 🙂

    Bonne journée.

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

Pas de position si condition d'achat < achat précédent


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
Matriciel @matriciel Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by MatricielMatriciel
7 years, 6 months ago.

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