PRC Bycov trend

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #171740 quote
    gerard66
    Participant
    New

    Bonjour

    je debute  en programmation et je n arrive pas a construire un robot qui acheterait si le PRC Bykov trend est a 1 et qui vendrait a -1

    les chiffres ne sont pas reconnus dans le programme

    pouvez me donner une methode ou m envoyer la bonne programmation

    merci

    Bykov-trend.png Bykov-trend.png
    #171755 quote
    Nicolas
    Keymaster
    Master

    En faisant un CALL de l’indicateur, et en supposant que le nom de la variable qui contient les informations 1 et -1 s’appelle “signal”, voilà ce que ça devrait donner :

     

    if signal=1 and signal[1]<>1 then 
     buy 1 contract at market 
    endif 
    
    if signal=-1 and signal[1]<>-1 then 
     sellshort 1 contract at market 
    endif

    Dans cet exemple on vérifier que la valeur de “signal” à la bougie précédente est différente de la valeur qu’il a sur la bougie courante (soit il vient de passer à 1 ou -1).

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

PRC Bycov trend


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
gerard66 @gerard66 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by Nicolas
4 years, 9 months ago.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 06/14/2021
Status: Active
Attachments: 1 files
Logo Logo
Loading...