Popular Rule Based Model

Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #68351 quote
    DespairDespair
    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
    odinodin
    Participant
    Veteran

    Can you Code the Parameter Into my system ?

    #68518 quote
    odinodin
    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
    
    screen1-1.jpg screen1-1.jpg
    #69403 quote
    ANDYANDY
    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
    ANDYANDY
    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.
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

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 ANDYANDY
8 years, 5 months ago.

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