On signal, we enter first position with X [url removed, login to view] take profit, P, is not reached and indicator color changes at close of candle, We enter second position with an increment [url removed, login to view] still take profit isnt reached, again we open a third position by incrementing second position by the value F.,If color changes again and 3rd position didnt get to take profit , we open 4th position by incrementing the 3rd positon by the value [url removed, login to view] continue this process until take profit is reached after which we then close all postions.
position 1= X lots
POSITION 2= (X + F)lots
POSITION 3= (X+2F )lots
Until the last positions reaches the stipulated take profils ,P,then all opned positions are closed.
Where X, F and P values can be manipulated in the input tab by the user so it should be stored in extern variable.