View Single Post
  #38 (permalink)  
Old 06-26-2007, 02:15 AM
don_forex's Avatar
don_forex don_forex is offline
Member
 
Join Date: Oct 2005
Posts: 67
don_forex is on a distinguished road
Close routines

The addition of the LWMA still screws up the closes. Frustrating.
All I did was create an LWMA variable.


extern int MAPeriod = 1200;

double Trend = iMA(NULL, 0, MAPeriod, 0, MODE_LWMA, MODE_CLOSE, 0);

And then call it up in the Buy and Sell trade criteria.

if (Ask < LowestBuy-(Spacing*Point) || Ask > HighestBuy + (TrendSpacing * Point) && Ask > Trend)

if (Bid > HighestSell + (Spacing * Point) || Bid < LowestSell - (TrendSpacing * Point) && Bid < Trend)


Don
Reply With Quote