Candle > Candle(1)

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #217731 quote
    axmichi
    Participant
    Senior

    Hallo,

     

    ich möchte gern einen Indikator, der mir im Chart die Kerzen mit einer senkrechten Linie markiert, deren Spanne vom Open zum close größer ist als die spannen der drei vorherigen Kerzen Close [1] und close[2] und close [3]

    Mir geht es darum, das ich die großen kerzen im chart besser sehe!!

    Vielen Dank!

    #217789 quote
    robertogozzi
    Moderator
    Master

    Los geht’s

    Body = abs(close - open)
    Cond = (Body = highest[4](Body))
    IF Cond THEN
       DrawVline(BarIndex) coloured("Fuchsia",255)   //0 bis 255, wobei 0=unsichtbar ist
    ENDIF
    RETURN
    #217807 quote
    axmichi
    Participant
    Senior

    Danke schön !!

    #217819 quote
    axmichi
    Participant
    Senior

    kurze Frage

     

    warum wird  hier kein Trade ausgeführt ?

    DEFPARAM CumulateOrders = False // Kumulieren von Positionen deaktiviert

    Body = abs(close – open)
    Cond = (Body = highest[10](Body))
    IF cond THEN
    BUY 1 SHARES AT MARKET
    ENDIF

     

    IF (Barindex – Tradeindex) > 2 THEN //close all positions after 2 bars
    SELL AT MARKET //No matter if LONG or…
    //… SHORT ones
    ENDIF

    #217837 quote
    robertogozzi
    Moderator
    Master

    Ersetzen Sie Zeile 11 durch:

    IF onmarket AND (Barindex - Tradeindex) > 2 THEN //close all positions after 2 bars

    denn wenn Not OnMarket, ist (Barindex – Tradeindex) immer > 2 und Positionen werden nie eröffnet.

    #217862 quote
    axmichi
    Participant
    Senior

    ah danke!!

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

Candle > Candle(1)


ProBuilder: Indikatoren & Custom Tools

New Reply
Author
author-avatar
axmichi @axmichi Participant
Summary

This topic contains 5 replies,
has 2 voices, and was last updated by axmichi
2 years, 8 months ago.

Topic Details
Forum: ProBuilder: Indikatoren & Custom Tools
Language: German
Started: 07/17/2023
Status: Active
Attachments: No files
Logo Logo
Loading...