Appeler le repulse lissé

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #232598 quote
    Lurubu
    Participant
    Senior

    Bonjour, il existe dans les indicateurs PRT un “repulse lissé”.

    Or, je voudrais pouvoir l’appeler afin de travailler avec.

    L’instruction CALL n’appelle que le “repulse” simple.

    Quelqu’un a t-il une idée pour l’importer dans un programme ?

    Merci d’avance.

    #232599 quote
    GraHal
    Participant
    Master

    The ‘simplified creation tool’ gives below …

    // Definition of code parameters
    DEFPARAM CumulateOrders = False // Cumulating positions deactivated
    
    // Conditions to enter long positions
    indicator1 = SmoothedRepulse[5](close)
    c1 = (indicator1 >= 0)
    
    IF c1 THEN
    BUY 1 PERPOINT AT MARKET
    ENDIF
    
    // Conditions to exit long positions
    indicator2 = SmoothedRepulse[5](close)
    c2 = (indicator2 < 0)
    
    IF c2 THEN
    SELL AT MARKET
    ENDIF
    #232603 quote
    Lurubu
    Participant
    Senior

    Merci, cela m’aide beaucoup.

    GraHal thanked this post
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Appeler le repulse lissé


Platform Support: Charts, Data & Broker Setup

New Reply
Author
author-avatar
Lurubu @lurubu Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Lurubu
1 year, 9 months ago.

Topic Details
Forum: Platform Support: Charts, Data & Broker Setup
Language: English
Started: 05/13/2024
Status: Active
Attachments: No files
Logo Logo
Loading...