Distance entre prix et moyennes

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #63361 quote
    Jacquet ChristopheJacquet Christophe
    Participant
    Average

    bonjour, j’ai essayer d’en cree un bots qui prendrais une position achat au moment où la distance entre le prix d’achat et la moyene exponentiel 100 ai une différence de 135 points.

     

    jai commencer à écrire ceci mais il ne prend pas en compte la distance.

    a=close
    
    b=ExponentialAverage[100](close)
    
    Indicator1=Min(a,b)
    
    c1=indicator1>=135
    
    if C1 then
    
    Buy 1 contractant market
    
    endif
    
    set target pprofit 50
    #63388 quote
    NicolasNicolas
    Keymaster
    Legend

    La distance doit être adapté à la taille du point pour l’instrument. Si un point vaut 0.1, il faut l’adapter automatiquement comme ceci:

    a=close
    
    b=ExponentialAverage[100](close)
    
    Indicator1=a-b
    
    c1=indicator1>=135*pointsize
    
    if C1 then
    
    Buy 1 contract at market
    
    endif
    
    set target pprofit 50

    De plus, l’instruction MIN indiquera la valeur la plus faible entre les deux comparées, hors ici on cherche une différence, j’ai donc fait une simple soustraction pour “indicator1”

    #64084 quote
    Jacquet ChristopheJacquet Christophe
    Participant
    Average

    Merci cela fonctionne nickel comme cela

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

Distance entre prix et moyennes


ProOrder : Trading Automatique & Backtests

New Reply
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Jacquet ChristopheJacquet Christophe
8 years, 8 months ago.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 02/21/2018
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...