visual indicator on price (with array ?)

Forums ProRealTime English forum ProBuilder support visual indicator on price (with array ?)

Viewing 3 posts - 1 through 3 (of 3 total)
  • #181980

    Hi,

    Does someone may help me to improve my indicator ?

    I developed a simple visual indicator on price that is working fine (for my personal use) : see attached picture and code.

    Basically, it’s just to visualize a winning or losing position : In when a buying condition is fulfilled and exiting position if Stop Loss (red rectangle) or TakeProfit (green rectangle) are achieved.

    I would like now to upgrade this visual indicator to allow multiple entry points. : i.e. being able to ‘open’ a new position even if the previous one is not closed (and then exiting to the corresponding exit points on SL or TP).

    I guess, it is necessary to use variable arrays but I cannot code it. Especially, I do know how to affect to the value of current bar array the value of the previous bar array : I tested $test[i] = $test[i][1] but it doesn’t work.

    Thank for your replies.

    P.S. : I’ve read previous posts on arrays but did not find a clue to help me.

     

     

    #182122

    If I got what you mean, you would like to ADD (accumulate) another position whn already On Market if condIN is true again, right?

    But do you want to keep the same target and the same stop loss already set for the previous position?

     

     

    #182164

    Hi robertogozzi,

    Yes I want to ADD (accumulate) another position when already On Market if condIN is true again.

    But for the new position, I want to have a new SL and TP defined with the new entry condition.

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

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