How to remove excess shapes from chart?

my code is printing more than one shape but i want to print only first shape

this is my pictorial representation

PriceChart

http://www.amibroker.com/f?exrem

I tried exrem but its not working, because i have only one array and that I need to plot shape on first candle.

You should really try harder.
If I give you response it is correct.
Always.

So, if it does not work for you, you are doing something wrong.

Really, don't expect people to write codes for you to mindlessly copy-paste. That is not correct way. If you want to TRADE you have to UNDERSTAND what the code is doing. This is not black box. You are supposed to learn what the code is doing and understand it. For that you need to follow advice given How do I debug my formula? Trading code-based signals without understanding code is costly endeavor.

And as to this particular "problem", that you have "one array", if you spent one minute thinking instead of replying immediately you would quickly find out that you could simply write

Buy = ExRem( Buy, 0 ); // remove ALL signals from buy EXCEPT very first one

BTW: I haven't seen "Thank you" in your response.

1 Like

@Tomasz I apologize my mistake and thanks for your quick response . Next time I will keep in mind.