Another ATR Trailing Stop trading system

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #123971 quote
    phoentzs
    Participant
    Master

    Hallo,

    Irgendwie komme ich nicht klar.

    Wenn ich den Another ATR Trailing Stop aus der Bibliothek in meinem Code verwenden möchte, wie schreibe ich das?

    Also wie und wo muss ich den Code einfügen?

    Welchen Befehl verwende ich?

    set stop ptrailing…?

    #123972 quote
    Nicolas
    Keymaster
    Master

    Sie können es direkt in Ihr automatisiertes Handelssystem aufrufen und die Überquerung der Linie "Trailing Stop" als Auslöser verwenden:

    defparam cumulateorders=false
    
    ts = CALL "PRC_Another ATR trailing stop"[14, 2, 1]
    
    if close crosses over ts then 
     buy at market 
    endif 
    
    if close crosses under ts then 
     sellshort at market 
    endif 
    
    phoentzs thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Another ATR Trailing Stop trading system


ProOrder: Automatischer Handel & Backtesting

New Reply
Author
author-avatar
phoentzs @phoentzs Participant
Summary

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

Topic Details
Forum: ProOrder: Automatischer Handel & Backtesting
Language: German
Started: 03/30/2020
Status: Active
Attachments: No files
Logo Logo
Loading...