How do I get the closing data from a renko box?
How do I get the closing data from a renko box to do a cross with average?
I want to send order after the closing price of renko close below the average or above, but do not know how to get the closing data. How to do?
Hi, Gustavo!
First, you have to consider that the Renko chart building has completely different behavior than classic candle-stick chart. And the meaning of the bar closing is different too. Because it uses price instead time.
To get bar's close price use this function:
https://protrader.org/ptmc-api/netscript/historicaldata/getprice
Also, this link may be helpful:
https://protrader.org/forum/general-discussion/how-to/sending-orders-only-on-next-bar