Distance entre prix et moyennes

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #63361 quote
    Jacquet 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
    Nicolas
    Keymaster
    Master

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

Distance entre prix et moyennes


Support ProOrder

New Reply
Summary

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

Topic Details
Forum: Support ProOrder
Language: French
Started: 02/21/2018
Status: Active
Attachments: No files
Logo Logo
Loading...