Current Price

Viewing 5 posts - 1 through 5 (of 5 total)
  • #13539

    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

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

    1 user thanked author for this post.
    #13545

    Thanks alot.

    It makes sense after knowing that:)

    #38056

    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

    @rama

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

Viewing 5 posts - 1 through 5 (of 5 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login