Position Indicator

Forums ProRealTime English forum ProBuilder support Position Indicator

Viewing 12 posts - 1 through 12 (of 12 total)
  • #154421

    Hello! I need help building an indicator.

    I have an algo that can take three positions at different levels. The indicator should show how many positions it has taken.
    I am sending a picture of what the indicator should look like.
    Also sends a simple code we can start from.
    The idea is to be able to use this indicator for another algo that will hedge this position. I can make the indicator so that it shows the positions but not that it goes down to zero when algo closes the position

     

    #154424
    • Always use the ‘Insert PRT Code’ button when putting code in your posts to make it easier for others to read.
    • Do not double post. Ask your question only once and only in one forum. All double posts will be deleted anyway so posting the same question multiple times will just be wasting your own time and will not get you an answer any quicker. Double posting just creates confusion in the forums

     

    1 user thanked author for this post.
    #154426

    Sorry. That was not the intention. I messed up.

    Now I see the insert code button 🙂

    #154433

     

    #154545

    Crillezz – Do not try to bump your own topic by quoting yourself. Can you imagine what a mess the forums would be if everyone did this?

    If you have not received a reply it is most likely because either other forum members don’t know the answer or other forum members don’t understand what you want.

    The forums are quieter at the weekends when markets are closed and people are away from their desks so some patience helps.

    I have deleted your post.

    #154598

    What a mess. I have tried to delete it but I can´t.

    The more I try to arrange, the more wrong it becomes.

    The first code was incorrect. So I tried to change it. I don´t find the edit button.

    I’ve never had that problem before

    #154604

    You have five minutes to edit your posts – after that time has passed the edit button is no longer available and only moderators can edit or delete your posts for you. If it is the first post in a topic then only Nicolas can delete it and that action deletes the entire topic.

    1 user thanked author for this post.
    #156108

    Can someone help me with that indicator please.

    #156376

    I assume that your line 17 should read -150.

    There you go:

     

    1 user thanked author for this post.
    #157942

    Thanks Roberto. Just what I was looking for. But I have a problem. When I have to do the same thing but with a short position, it increases the position when it is profitable. It should only increase the position in case of loss. And it never reaches floating profit. I do not manage to change the code in the opposite direction

    #157943

     

    #157952

    Lines 40 and 45 should read:

    Just after line 58 (before line 59), insert:

    and at line 63 you should reference floatingprofit1.

     

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

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