Candle > Candle(1)

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #217731 quote
    axmichiaxmichi
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    axmichiaxmichi
    Participant
    Senior

    Danke schön !!

    #217819 quote
    axmichiaxmichi
    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
    robertogozzirobertogozzi
    Moderator
    Legend

    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
    axmichiaxmichi
    Participant
    Senior

    ah danke!!

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

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

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 axmichiaxmichi
3 years, 2 months ago.

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