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~
The current price is “Close” or “Close[0]”. Unless a candlestick is closed, its close is always the current price.
thanked this post
Thanks alot.
It makes sense after knowing that:)
ramaParticipant
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.
@rama
Yes, because ProOrder code are only read one time at Close.