Trading System % achieved

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #35561 quote
    Henry
    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.

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
Logo Logo
Loading...