Ein Trade pro Tag

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

    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.
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

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 robertogozzirobertogozzi
6 years, 7 months ago.

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