Ease of Movement Signals - Traders Laboratory
Forum Guidelines | Contact Us
Home

Go Back   Traders Laboratory > Trading Resources > Trading Indicators > Coding Forum

Coding Forum Collaborate, receive help, or discuss coding related issues.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-04-2008, 07:18 PM
Tresor has no status.

 
Join Date: Mar 2008
Posts: 88
Thanks: 29
Thanked 2 Times in 2 Posts
This member is the original thread starter. Ease of Movement Signals

Hello guys,

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

Reply With Quote
  #2 (permalink)  
Old 08-05-2008, 12:14 PM
Blu-Ray's Avatar
Blu-Ray has no status.

Trader Specs
 
Join Date: Nov 2006
Location: England
Posts: 421
Thanks: 105
Thanked 52 Times in 34 Posts
Re: Ease of Movement Signals

Tresor

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

__________________
Remember - Take the path of least resistance.
Reply With Quote
  #3 (permalink)  
Old 08-05-2008, 01:02 PM
Tresor has no status.

 
Join Date: Mar 2008
Posts: 88
Thanks: 29
Thanked 2 Times in 2 Posts
This member is the original thread starter. Re: Ease of Movement Signals

Hello Blu-Ray,

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

Reply With Quote
  #4 (permalink)  
Old 08-05-2008, 04:57 PM
thrunner has no status.

 
Join Date: Feb 2007
Posts: 214
Thanks: 67
Thanked 62 Times in 36 Posts
Re: Ease of Movement Signals

Quote:
View Post
MyEOM = EaseOfMovement( Price, Length );

but still no luck, cannot be compiled
Regards
ESL function EaseofMovement does not take any inputs. You may have copied this from some other platform. Try rewriting your own EaseOfMovement function (name it as _TEaseOfMovement for example) as follows:
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);
Be sure to change your original strategy signal file line number 9:

MyEOM = _TEaseOfMovement( Price, Length );

Reply With Quote
The Following User Says Thank You to thrunner For This Useful Post:
Tresor (08-05-2008)
  #5 (permalink)  
Old 08-05-2008, 05:23 PM
Tresor has no status.

 
Join Date: Mar 2008
Posts: 88
Thanks: 29
Thanked 2 Times in 2 Posts
This member is the original thread starter. Re: Ease of Movement Signals

Thank you thrunner

Works perfectly

Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

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
Server Movement on April 20, 2008 Soultrader Announcements 11 04-21-2008 06:19 AM
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


All times are GMT -4. The time now is 12:35 AM.

 

 
 


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76