TS SUPPORT
home contacts site map search
MultiCharts MCFX Other Products & Services Support Company

You are here:  Home > Support > Knowledgebase

Knowledgebase


Search in     for   
     
Mov Avg - Supp/Res [Strategies]

Article/Author: "Simple Moving Average with Resistance & Support", Dennis L. Tilley, S&C Magazine, Traders Tips, 09/1998

Download: Mov Avg - S-R STR.ela

File Includes:
Signal - Mov Avg - Supp/Res

Category: Strategy > Mov Avg - Supp/Res

Inputs:
Price
Length
F

Description:

Signal Mov Avg - Supp/Res ELA Code:

INPUTS: PRICE(CLOSE), LENGTH(10), F(8);

VARS: AVGVAL(0), S(0), R(0), SC(0), RC(0);

AVGVAL = AVERAGE(PRICE, LENGTH);
RC = RC + 1;
SC = SC + 1;

IF CURRENTBAR > 1 THEN BEGIN
IF CLOSE CROSSES BELOW AVGVAL AND CLOSE > S* (1+(F/100)) AND R <> 0 THEN BEGIN
SELL NEXT BAR AT MARKET;
S = LOW;
SC = 0;
END
ELSE BEGIN
IF CLOSE CROSSES BELOW S AND R <> 0 THEN BEGIN
SELL NEXT BAR AT MARKET;
S = LOW;
SC = 0;
END;
END;

IF CLOSE CROSSES ABOVE AVGVAL AND CLOSE < R / (1+(F/100)) AND S <> 0 THEN BEGIN
BUY NEXT BAR AT MARKET;
R = HIGH;
RC = 0;
END
ELSE BEGIN
IF CLOSE CROSSES ABOVE R AND S <> 0 THEN BEGIN
BUY NEXT BAR AT MARKET;
R = HIGH;
RC = 0;
END;
END;

IF CLOSE > AVGVAL THEN BEGIN
IF HIGH >= R THEN BEGIN
R = HIGH;
RC = 0;
END;
END;

IF CLOSE < AVGVAL THEN BEGIN
IF LOW <= S OR S = -1 THEN BEGIN
S = LOW;
SC = 0;
END;
END;
END;

Support Menu

Contact Customer Support


Discussion Forum


Online Tutorials


Downloads & Check Version


Knowledgebase

Toll Free

Latest Events

June 29
We are starting beta-testing of MultiCharts 6.0 Beta 4.

September 10
We are glad to announce the release of MultiCharts 5.5!

September 10
Users of MultiCharts's can now subscribe to Barchart's real-time data feeds from $49/m.

February 10
MultiCharts received GOLD in Trade2Win's 2008 Members' Choice Awards.

Devember 8
Free MCFX PRO is now also available with Forex.com




© 1999-2010 TS Support, LLC. All rights reserved.