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

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #97126 quote
    Matriciel
    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
    robertogozzi
    Moderator
    Master

    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
    Matriciel
    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.

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 Matriciel
6 years, 10 months ago.

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