Can't boot into recovery or fastboot and not going to EDL completely (Redmi Note 4)
Alecxs helped me with the solution so I am posting the solution that worked for me.



Install MIUI 9.6.8.0 fastboot ROM (it works with this only) and extract it to C drive.
Run MI flash tool and select the extracted folder.
Now boot the phone to EDL Mode and immediately click refresh and then click flash.
Because if you are even 2-3 seconds late then process fails.
Wait for flashing to complete and then the phone will reboot.
If it doesn't reboot then just check (press them a little bit) all the connectors on motherboards of phone (display, fingerprint and battery) and then connect to charger. Battery icon will appear and now you can power ON the phone.


BOOTING TO EDL MODE


  Don't remove battery. Not required.


To boot to EDL we need to short JTAG pins that are present on right side of fingerprint connector. (And not the 1st and 4th test points shown in many videos on internet).
And while shorting it insert the usb cable immediately. 
You will see red led light blinking.
Phone will be shown as COM4 (probably).


  For more information search google with test points for Redmi Note 4
  
  You will be forced to update to MIUI 11.0.2.0 because you will face
  various bugs like
  
  
  mi cloud won't sync
  fingerprint won't work
  


OTHER THINGS TO KEEP IN MIND


If you decide to update to MIUI 11.0.2.0 then don't install RedWolf or ** OrangeFox** recovery because when you enable OTA updates in them and flash MIUI 11 rom you will get *ERROR 7 * message and and when you reboot you phone will stuck on MI logo.
When stuck on MI logo then don't try flashing rom again using Mi Flash Tool by booting to Fastboot mode (if you can boot to it) because you will get System flashing error.


FIX FOR STUCK ON MI LOGO


  Requirements
  
  
  unlocked bootloader
  adb and fastboot tools
  fastboot extracted rom (can be MIUI 11)
  


If you are stuck there then don't worry. Try if you can boot to Fastboot Mode (Vol - with power key). If not then try recovery mode or repeat EDL method. If yes then read ahead.

If you can then install adb and fastboot tools in your PC. And paste all images folder files of MIUI 11 fastboot rom to adb folder.
Now type the following:

Check if phone is accepted by 

fastboot devices


Now flash system.img by

fastboot flash system system.img


After completion flash boot.img by

fastboot flash boot boot.img


After completion flash recovery.img

fastboot flash recovery recovery.img


After completion flash cache.img

fastboot flash cache cache.img



  If you want to completely erase user data and make the device a newly
  bought then type

fastboot erase userdata

  
  After completion type

fastboot flash userdata userdata.img



Flashing is completed

Now just type fastboot reboot. Phone will boot properly now.


  If you are using MIUI 9 or 10 rom to fix stuck on mi logo then when
  the flashing is done you will face numerous bugs in rom like
  
  
  mi cloud won't sync
  fingerprint won't work properly