Comment baser mon take profit sur une moyen mobile

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #152348 quote
    chelmax
    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
    turame
    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.

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

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