## Comment on Code your Technical Analysis strategy

I don’t have the Logic for the previous question but here is another strategy.. Could you please let me know if this can be coded.

Step 1:

Buy 1 share at current market price (ex: buy 1 at 100.00)

If 4 points gain then close position if not go to step 2

Step 2:

if 2 points loss then buy 2 more shares at 98.00, this step continues whenever there is a 2 points loss and the order quantity doubles for every level it goes down (ex: buy 2 at 98, buy 4 at 96, buy 8 at 94..)

Exit:

Close all the positions whenever the point goes up 4 points from the last bought level (letâ€™s say the current price is 96 then it has to close all positions if the point reaches 100), and continue to step 1.

Thanks,