Question: how do I convert this code from easylanguage to python 1 //parameters // FastLimit = ?.5 3 // SlowL?mit=e.es 4 Price-(High+Low)/2 7 if (barindex>5) then
how do I convert this code from easylanguage to python 
1 //parameters // FastLimit = ?.5 3 // SlowL?mit=e.es 4 Price-(High+Low)/2 7 if (barindex>5) then 8 Smooth(4 Price 3*Price[1]2Price[2]Price3]1e 9 Detrender:(.096 2*Smooth +.5769"Smooth[2] 5769"Smooth[4] - .0962*Smooth [6])*(A75*Period[1] + .54) 10 11 Q1 (.0962*Detrender + .5769"Detrender[2] - .5769*Detrender[4] - .0962"Detrender[6])*(.675"Period[1] + 12 I1 Detrender [3] 13 14 j1 = (.0962*11 + .5769 *11 [2] - .5769*11[4] - .0962*11[6])"(.075xperiod [1] + .54) 15 jQ-.962 Q15769*01[2] - .5769*Q1[4] - 962 Q1[6]).75 Period[1].54) 16 17 12 I1 jQ 18 Q2 Q1 + j1 19 20 I2 .2*12 +.8 12[1] 21 Q2 = .292 + .8*Q2[1] 23 Re 1212[1] + Q2"Q2[1] 25 Re .2*Re.8 Re 1 27 If Im e then 28 Period = 368/ATAN(Im/Re) 29 endif 30 If Period 1.5*Period[1] then 31 Period 1.5 Period[1] 32 endif 33 If Period <.67 then period .67 endif if thern> 5e then 40 Period- 50 41 endif 42 43 Period - .2*Period + .8*Period[1] 44 SmoothPeriod .33 Period.67 SmoothPeriod[1] 45 46 if(110) then 47 PhaseATAN (Q1 I1) 48 endif 49 50 DeltaPhase Phase[1]- Phase 51 If DeltaPhase
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
