PRC Bycov trend

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #171740 quote
    gerard66gerard66
    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
    NicolasNicolas
    Keymaster
    Legend

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

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 NicolasNicolas
5 years, 3 months ago.

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