CONDENSED CONSOLIDATED STATEMENTS OF OPERATIONS (UNAUDITED) (Parentheticals) - USD ($)  | 
3 Months Ended | 9 Months Ended | ||
|---|---|---|---|---|
Jul. 31, 2018  | 
Jul. 31, 2017  | 
Jul. 31, 2018  | 
Jul. 31, 2017  | 
|
| Research and Development Expense [Member] | ||||
| Non-cash share-based compensation expenses | $ 2,472,489 | $ 64,705 | $ 2,668,315 | $ 213,333 | 
| Selling, General and Administrative Expenses [Member] | ||||
| Non-cash share-based compensation expenses | $ 2,098,793 | $ 416,411 | $ 2,516,652 | $ 719,440 | 
| X | ||||||||||
- Definition Represents the expense recognized during the period arising from equity-based compensation arrangements (for example, shares of stock, unit, stock options or other equity instruments) with employees, directors and certain consultants qualifying for treatment as employees. Reference 1: http://fasb.org/us-gaap/role/ref/legacyRef 
  | 
| X | ||||||||||
- Details 
  | 
| X | ||||||||||
- Details 
  |