Current Price

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #13539 quote
    MarcoChiangMarcoChiang
    Participant
    New

    Hi, I’m a beginner using prorealtime backtesting system.

    Is there any code that indicates to current price.

    Like if I want to sell when the market price reach 100, what should I put into the code?

    Thanks~

    #13541 quote
    NicolasNicolas
    Keymaster
    Legend

    The current price is “Close” or “Close[0]”. Unless a candlestick is closed, its close is always the current price.

    thanked this post
    #13545 quote
    MarcoChiangMarcoChiang
    Participant
    New

    Thanks alot.

    It makes sense after knowing that:)

    #38056 quote
    ramarama
    Participant
    Senior

    It tried in my code

    x=3

    if close <= close then

    sell close -x stop

    endif

     

    my expectation was if price is going down, sell at current price -3 irrespective where the price is

    however the system is waiting till the current bar is closed.

    #38066 quote
    NicolasNicolas
    Keymaster
    Legend

    @rama

    Yes, because ProOrder code are only read one time at Close.

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

Current Price


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

This topic contains 4 replies,
has 3 voices, and was last updated by NicolasNicolas
9 years, 3 months ago.

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