Convert from ThinkScript to Pine Script (Elliott Wave Indicator)

Job ID: 33009971

Budget: $30 – $250 USD

Convert around 1000 lines of code from a single indicator (based on Elliott Waves) from ThinkScript to Pine Script. Functions within code are very similar (totaling around 500 lines of 1000) so should be relatively easy to reproduce. Utilizes ThinkScript's 'fold' (likely hardest part to convert) and indexing (which varies from Pine Script). The result should produce the same output in Pine Script as seen in the example image.
Related categories: Pine Script