New indicator giving the profit

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #12272 quote
    PerePere
    Participant
    Veteran
    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 quote
    NicolasNicolas
    Keymaster
    Legend

    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)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

New indicator giving the profit


ProBuilder: Indicators & Custom Tools

New Reply
Author
author-avatar
Pere @petrus Participant
Summary

This topic contains 1 reply,
has 2 voices, and was last updated by NicolasNicolas
10 years ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 08/27/2016
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...