Popular Rule Based Model

Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #68351 quote
    Despair
    Blocked
    Master

    You will need one parameter where you enter your initial balance since you can’t check your account balance with PRT. Then you update this variable after every closed trade with help of the strategyprofit.

    #68407 quote
    odin
    Participant
    Veteran

    Can you Code the Parameter Into my system ?

    #68518 quote
    odin
    Participant
    Veteran

    here is my code, with reinvestment.

    // Festlegen der Code-Parameter
    DEFPARAM CumulateOrders = False // Kumulieren von Positionen deaktiviert
    capital = 100000 + strategyprofit
    n = capital / close
    // orginial 200 day sma
    c1 = average[40](close)
    // the 3 % up band
    c2 = c1*1.03
    // the 3 % low band
    c3 = c1*0.97
    // the original 38 day sma
    c4 = Average[8](close)
    
    // Bedingungen zum Einstieg in Long-Positionen
    
    IF c4 > c2 THEN
    BUY n shares AT MARKET
    ENDIF
    
    // Bedingungen zum Ausstieg von Long-Positionen
    IF c4 < c3 THEN
    SELL AT MARKET
    ENDIF
    
    #69403 quote
    ANDY
    Participant
    Average
    Is it possible to create a screnner when the long conditions of the Trading System  or when the indicator conditions?
    thank you
    #69404 quote
    ANDY
    Participant
    Average

    It is possible ro create a screnner when the conditions of the Trading Sistem or the indicator ?

    thank you

Viewing 5 posts - 16 through 20 (of 20 total)
  • You must be logged in to reply to this topic.

Popular Rule Based Model


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
odin @odin Participant
Summary

This topic contains 19 replies,
has 6 voices, and was last updated by ANDY
7 years, 9 months ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 04/12/2018
Status: Active
Attachments: 4 files
Logo Logo
Loading...