Bollinger richtig programmieren

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #182192 quote
    teddy58
    Participant
    Average

    Hallo zusammen, ich habe Probleme bei ProOrder (automatische Ausführung) die Bollinger Bänder richtig zu programmieren. Bei mir steht nur Bollinger +, Bollinger-, Bollinger Band Width zur Verfügung. Wie lautet der Code beispielsweise für Bollinger 25 mit Width 1.5 ? Es soll eine Position ausgeführt werden, wenn close die Bollinger Bänder 25 bei Width 1.5 unterschreitet.

    #182203 quote
    robertogozzi
    Moderator
    Master

    Dies ist der Code, um das Bollinger-Band zu definieren, ändern Sie es nach Belieben:

    BBp        = 25                                //25   periods
    BBd        = 1.5                               //1.5  deviation
    BBavg      = average[BBp,0](close)             //BB mean (middle line)
    BollTOP    = BBavg + ((std[BBp](close)) * BBd) //BB Upper Band
    BollBOTTOM = BBavg - ((std[BBp](close)) * BBd) //BB Lower Band
    teddy58 thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Bollinger richtig programmieren


ProOrder: Automatischer Handel & Backtesting

New Reply
Author
author-avatar
teddy58 @teddy58 Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by robertogozzi
4 years, 2 months ago.

Topic Details
Forum: ProOrder: Automatischer Handel & Backtesting
Language: German
Started: 11/24/2021
Status: Active
Attachments: No files
Logo Logo
Loading...