| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #1 | ||
![]() | Ease of Movement Signals I was trying to convert RSI midline cross signals (that was kindly coded by Blu-Ray) into Ease of Movement midline cross signals, but I failed. Could someone please help me with this code? inputs: Price( avgprice ), Length( 50 ), ProfitTarget(150), StopLoss(100); variables: MyEOM( 0 ) ; MyEOM = EaseOfMovement( Price, Length ) - 50; If MyEOM Crosses above 0 then buy next bar at market; If MyEOM Crosses below 0 then sellshort next bar at market; setprofittarget(ProfitTar get); Setstoploss(StopLoss); Regards | ||
|
| | #2 | ||
![]() | Re: Ease of Movement Signals Just modify this line: MyEOM = EaseOfMovement( Price, Length ); It should now work fine...... I put the " -50 " in the RSI as that indicator has a midline of 50, whereas the EOM's midline is already 0. Hope this helps Blu-Ray
__________________ “ Search is the ultimate expression of the power of the individual, using a computer, looking at the world, and finding exactly what they want ” – Eric Schmidt, Google | ||
| |
|
| | #3 | ||
![]() | Re: Ease of Movement Signals I tried this code: inputs: Price( avgprice ), Length( 50 ), ProfitTarget(150), StopLoss(100); variables: MyEOM( 0 ) ; MyEOM = EaseOfMovement( Price, Length ); If MyEOM Crosses above 0 then buy next bar at market; If MyEOM Crosses below 0 then sellshort next bar at market; setprofittarget(ProfitTar get); Setstoploss(StopLoss); but still no luck, cannot be compiled ![]() Regards | ||
|
| | #4 | ||
![]() | Re: Ease of Movement Signals Quote:
Code: inputs: Price (numericseries), SmoothingLength (numericsimple);
{ EOM = 100 * MFI * MidPointMove; note that this formula is a simpler mathematical
equivalent of Richard Arms' original formula }
if BarType >= 2 then { ie, not tick/minute data }
_TEaseOfMovement = Average( 100 * MFI( Volume ) * ( ( Price ) - ( Price )[1] ) * .5 , SmoothingLength)
else { if tick/minute data; in the case of minute data, also set the "For volume,
use:" field in the Format Symbol dialog to Trade Vol or Tick Count, as desired }
_TEaseOfMovement = Average( 100 * MFI( Ticks ) * ( ( Price ) - ( Price )[1] ) * .5 , SmoothingLength); MyEOM = _TEaseOfMovement( Price, Length ); | ||
| |
|
| The Following User Says Thank You to thrunner For This Useful Post: | ||
| | #5 | ||
![]() | Re: Ease of Movement Signals ![]() Works perfectly | ||
|
![]() |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Dual RSI + RSI Mid Line Signals | Tresor | Coding Forum | 3 | 07-28-2008 07:12 PM |
| What chart to use for price movement in this way? | Sunnyside | Beginners Forum | 9 | 11-13-2007 08:53 PM |
| [Warning Signals with Volume] | Soultrader | Trading Videos | 1 | 03-02-2007 05:55 AM |
| Learning Price Movement | Lisa | Technical Analysis | 5 | 09-11-2006 09:21 PM |