I would like an indicator corrected by adding a subroutine
I want to add a criteria:
if the past candle open is lower the present price it should return +1 and if the last candle open is higher than the present price it should be -1. If that is not possible than the alternative (I prefer the first alternative) : if the past candle open is lower the present candle open it should return +1 and if the last candle open is higher than the present open it should be -1.
I would like to add to the last candle open a selectable function +/-% Open. Meaning that that is the last candle was for example If the last candle is opening at 1.36377 and closing at 1.36269 and is a down candle the open of that candle will be calculated at
1.3677-1.36269= [url removed, login to view] body size x 25%= [url removed, login to view] + 1.3677=1.3614 is new open calculation . Now if the next opening is lower than that it will generate -1 point if higher +1
If the candle opening is at 1.36560 and the close is 1.36649 so the body of the last candle is 1.36649-1.3656= +0.00089 +25% = 0.0011125= 1.3671 so if the next candle open if higher than [url removed, login to view] will generate +1 if lower -1