Current Price

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #13539 quote
    MarcoChiang
    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
    Nicolas
    Keymaster
    Master

    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
    MarcoChiang
    Participant
    New

    Thanks alot.

    It makes sense after knowing that:)

    #38056 quote
    rama
    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
    Nicolas
    Keymaster
    Master

    @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.

Current Price


ProOrder: Automated Strategies & Backtesting

New Reply
Author
Summary

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

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