Comment baser mon take profit sur une moyen mobile

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #152348 quote
    chelmaxchelmax
    Participant
    Junior

    Bonsoir,

    Je voudrais savoir quelle code mettre pour base mon take profit sur ma moyen mobile 20 car ma stratégie ce base sur les bande bollinger ??

    #152375 quote
    turameturame
    Participant
    Master

    Bonjour,

    Voici la partie de code à intégrer :

    // A intégrer en début de code
    sup = BollingerUp[20](close)
    inf = BollingerDown[20](close)
    
    // A intégrer en fin de code
    If longonmarket then
    sell 1 contract at sup limit
    endif
    
    If shortonmarket then
    exitshort 1 contract at inf limit
    endif
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

Comment baser mon take profit sur une moyen mobile


ProOrder : Trading Automatique & Backtests

New Reply
Author
author-avatar
chelmax @chelmax Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by turameturame
5 years, 12 months ago.

Topic Details
Forum: ProOrder : Trading Automatique & Backtests
Language: French
Started: 12/01/2020
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...