Ein Trade pro Tag

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

    Hallo,

    Wie kann ich denn in einem System festlegen wenn ich nur

    1 Order long per Day

    1 Order short per Day

    ausführen lassen möchte?

    Kann mir jemand die Codezeile dazu schreiben?

    #118933 quote
    robertogozzi
    Moderator
    Master

    Versuche dies:

    DEFPARAM CumulateOrders = false
    ONCE TradeLong  = 1
    ONCE TradeShort = 1
    IF IntraDayBarIndex = 0 THEN
       TradeLong  = 1
       TradeShort = 1
    ENDIF
    LongConditions  = close CROSSES OVER  average[10,0](close)
    ShortConditions = close CROSSES UNDER average[10,0](close)
    IF Not OnMarket AND LongConditions  AND TradeLong  THEN
       BUY 1 Contract AT Market
       TradeLong  = 0
    ENDIF
    IF Not OnMarket AND ShortConditions AND TradeShort THEN
       SELLSHORT 1 Contract AT Market
       TradeShort = 0
    ENDIF
    SET TARGET pPROFIT 60
    SET STOP   pLOSS   20
    phoentzs thanked this post
Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Ein Trade pro Tag


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 robertogozzi
6 years, 1 month ago.

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