creating some conditions for my automated trading strategy

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

    Can someone show me how to write these conditions please?

    10 day ROC > 0

    today’s ROC >  highest high value of ROC in the previous 10 periods.

    time stamp > 5pm

    profit stop at 30 points

    stop loss at 30 points

     

    Thanks a lot.

    #47180 quote
    NicolasNicolas
    Keymaster
    Legend

    This is the code for this specific strategy:

    defparam cumulateorders=false
    
    mroc=ROC[10](close)
    
    if mroc>0 and mroc>highest[10](mroc)[1] and time>=050000 then 
     buy 1 contract at market
    endif
    
    set stop ploss 30
    set target pprofit 30
    #47234 quote
    Real ProReal Pro
    Participant
    Average

    Thanks for helping Nicolas.

    Is pprofit different to profit?

    #47256 quote
    Real ProReal Pro
    Participant
    Average

    I found it.

    p = point, as opposed to %, $ or trailing.

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

creating some conditions for my automated trading strategy


ProOrder: Automated Strategies & Backtesting

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

This topic contains 3 replies,
has 2 voices, and was last updated by Real ProReal Pro
9 years ago.

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