Trading System % achieved

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #35561 quote
    HenryHenry
    Participant
    Average

    A request that was addressed to ProRealTime:

    How to purchase only if the following day (i.e. the day when the purchase is done) the price is > +0,5% of the close of the previous day. Basically, I want that once the conditions are matched, the following day when the system does the purchase enters only if the price achieves a certain % relating to the close of the previous day (i.e. the day where the conditions are matched), otherwise the purchase shall not be executed.

    Suggestion for an anwser:

    X=0.5
    
    c1=close > dclose(1)+(dclose(1)*X/100)
    
    if not onmarket and c1 then
    buy 1 share at market
    endif
Viewing 1 post (of 1 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

Trading System % achieved


ProOrder: Automated Strategies & Backtesting

New Reply
Author
author-avatar
Henry @henry Participant
Summary

This topic contains 1 voice and has 0 replies.

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