ES/DJIA system.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #48839 quote
    Real ProReal Pro
    Participant
    Average

    Would be interested to see if this ES/DJIA system works over a bigger time frame. It’s designed for 5 min bars.  Can someone with more data please test and show the results?

    cp = 4 //(default)
     
    if high[cp] >= highest[2*cp+1](high) then
    LH = 1
    else
    LH=0
    endif
     
    if low[cp] <= lowest[2*cp+1](low)  then
    LL= -1
    else
    LL=0
    endif
     
    if LH=1 then
    hil = high[cp]
    endif
     
    if LL  = -1 then
    LOL=low[cp]
    endif
     
    z = hil-lol
    zz = close-hil
    x = zz<.1*z
    //return lol coloured(255,0,0) as "Low Fractal",hil coloured(0,255,0) as "High Fractal"
    a = close>hil and close[1]<hil[1]
    
    IF NOT LongOnMarket AND a and x  THEN
    BUY 10 CONTRACTS AT MARKET
    ENDIF
    
    //set the stoploss
    buycond = NOT longonmarket and a and x
    if buycond then
    
    set target profit .9*((z-zz))
    set stop loss  (z-zz)
    endif
    
    if z>60  then
    set target pprofit (z-zz)/2
    endif
    #48841 quote
    InertiaInertia
    Participant
    Master
    #48846 quote
    Real ProReal Pro
    Participant
    Average

    Thanks Inertia.

    Can you try 2 contracts on FTSE and DAX please?

Viewing 3 posts - 1 through 3 (of 3 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

ES/DJIA system.


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Real Pro @real-pro Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by Real ProReal Pro
8 years, 11 months ago.

Topic Details
Forum: ProOrder: Automated Strategies & Backtesting
Language: English
Started: 10/10/2017
Status: Active
Attachments: 4 files
ProRealCode ProRealCode
Loading...