Stop in Abhängigkeit von Indikatorwert zum Kaufzeitpunk

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #65479 quote
    Hico
    Participant
    Average

    Hallo,

    icch würde gerne beim kauf den wer eines indikators als  stopwert in eine Variabe legen. bei  unterschreiten des Werts verkaufen und in einer anderen variablen den neuen kauf unterbinden bis ein anderer Wert wieder überschritten ist. Etwa so:

    indicator1=average [20] (close)
    
    IF (close>indicator1) AND C2=1 THEN
    BUY 1 CONTRACT AT MARKET
    sL=low
    
    enter=high
    
    ENDIF
    
    IF (close<sl) THEN
    SELL AT MARKET
    SL=0
    c2=0
    ENDIF
    
    if close>enter then
    
    c2=1
    
    endif

     

    Denkfehler?

    #65487 quote
    Despair
    Blocked
    Master

    Sieht gar nicht so verkehrt aus. Welches Problem hast du?

    #65910 quote
    Hico
    Participant
    Average

    Typo. thanks for reply!

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

Stop in Abhängigkeit von Indikatorwert zum Kaufzeitpunk


ProOrder: Automatischer Handel & Backtesting

New Reply
Author
author-avatar
Hico @hico Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Hico
7 years, 10 months ago.

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