Hi.
I’m trying to develop an indicator which can give the profit of a simulated trade. My problem is that this will not be a Backtest, only an indicator. I will start the trades every day at 9:00 at stop at 21:00 (supposed datas) but I cannot use POSITIONPERF because there will be no open trade, only an indication of the profit/loss since 9:00 hours. I only want to know if I have profit or losses (histogram 0/1), but if it can also give the amount would be better.
I tried to work with something like
IF time>090000 THEN
but I don’t know how to save the data of the open price at 9:00 hours. If this could be possible, then I should only calculate the difference of close[0] and open[at 9:00 hours].
How can I calculate this difference between the present close and the open price at a given time/date?
Thanks for your help.