New indicator giving the profit

Forums ProRealTime English forum ProBuilder support New indicator giving the profit

Viewing 2 posts - 1 through 2 (of 2 total)
  • #12272

    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.

    #12284

    Your topic was moved to english forum by administrator.

    If you want to speak english, please use the english forums instead. Thank you.


    Hi, a similar indicator has already been coded by RicLg, you can find it in the french forum here:

    http://www.prorealcode.com/topic/coding-gainspertes-indicator-need-help/

    If I remember correctly it were working correctly in its last version you can find at the end of the thread. Maybe you’ll need to add your time conditions though.

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

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