is it possible to declare a history in icustom()

 

i know it is not possible to use barshift of -1 in icustom()

the indicator always counts in the future.

however when empty Value of slopeup = empty Value of slopedown i would like to have it 1 bar into the history and add the buy or sell or close order.

otherwise my buy and sell and close orders are always to late.

thanks.

Reason: