Username or Email
Password
Forgot
New User Signup (free)
Browse
Register
Downloads / Indicators
Trading Webinars
Articles
Upgrade to Elite
Unanswered Posts
My Posts
Return to Homepage
Today's Posts
Trading Reviews and Vendors
Futures Brokers Reviews
Traders Hideout (general)
Platforms and Indicators
Trading Journals
Elite Trading Journals
Psychology and Money Management
Off-Topic
The Elite Circle
Trading Articles
Main Trading Articles Index
Article Categories
Help, Tutorials, How-To's
Traders and Trading Methods
Platforms, Tools and Indicators
Terms (Glossary)
Article Tools
List New Articles
List Recent Article Changes
Random Article
Most Popular Articles
Category Groupings
Wanted Articles
Most Linked to from Forum
Go to Page...
Quotes
by TradingView
futures io
>
Downloads
>
MultiCharts
>
Displaced Moving Average with Projection
Categories
Show
Search
Help
Search
title and description
keywords
Advanced Search
Winning nominations
What's Hot
What's New
New Ratings
Some Random Entries
Home Category
Up a Level
MultiCharts
MultiCharts Downloads / MultiCharts Indicators
Share
MultiCharts
indicators, EasyLanguage indicators.
Filter
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
0
1
2
3
4
5
6
7
8
9
Entries
Login to Download
Displaced Moving Average with Projection
Don't know if this will work to just post the text of the file in the description box here. Copy all code below here for indicator or text file attached. Pictures should explain. Indicator works fine.
////////////////////////////////
// Displaced Moving Average with Projection
//
inputs:
ShowProjection(True),
ST_upcol(blue),
ST_dncol(red),
LT_upcol(darkgreen),
LT_dncol(magenta),
Price( Close ),
FastLength( 9 ),
SlowLength( 18 ),
Displace( 0 ) ;
variables:
avg_st( 0 ),
avg_Lt( 0 ) ,
st_diff(0),
lt_diff(0),
st_color(0),
lt_color(0);
avg_st = AverageFC( Price, FastLength ) ;
avg_Lt = AverageFC( Price, SlowLength ) ;
condition1 = Displace >= 0 or CurrentBar > AbsValue( Displace ) ;
if condition1 then
begin
if avg_st > avg_st[1] then st_color = st_upcol
else st_color = st_dncol;
if avg_lt > avg_lt[1] then lt_color = lt_upcol
else lt_color = lt_dncol;
Plot1[Displace]( avg_st, "FastAvg", st_color ) ;
Plot2[Displace]( avg_Lt, "SlowAvg", lt_color ) ;
if Displace <= 0 then
begin
condition1 = avg_st crosses over avg_Lt ;
if condition1 then
Alert( "Bullish alert" )
else
begin
condition1 = avg_st crosses under avg_Lt ;
if condition1 then
Alert( "Bearish alert" ) ;
end ;
end;
end ;
if ShowProjection and Displace > 0 then
begin
st_diff = avg_st - avg_st[1];
lt_diff = avg_lt - avg_lt[1];
for value1 = 1 to Displace
begin
plot1[Displace - value1](avg_st + st_diff* value1 ,"s", black);
plot2[Displace - value1](avg_lt + lt_diff* value1 ,"l", black);
end;
end;
Category
MultiCharts
Details:
Displaced Moving Average with Projection
Category:
MultiCharts
March 21st, 2010
Size: 1.36 KB
Downloaded: 325 times
385
websouth
View Download Details
January 27th, 2011 08:28 PM
SteveW
looking forward to using this. Thanks!
Category
The Elite Circle
NinjaTrader
- NinjaTrader 8 Indicators and More
- NinjaTrader 6.5 Indicators
- NinjaTrader 7 Indicators
- NinjaTrader 6.5 Strategies
- NinjaTrader 7 Strategies
- NinjaTrader 6.5 Templates
- NinjaTrader 7 Templates
- NinjaTrader 6.5 Miscellaneous
- NinjaTrader 7 Miscellaneous
MetaTrader
- MetaTrader 4 Indicators
- MetaTrader 5 Indicators
TradeStation
MultiCharts
ThinkOrSwim
Sierra Chart
FXCM Strategy Trader
Matlab Functions
Educational
Free Section
True Edge Awards / Best Products
Trading Webinars How-to's
Trading Reviews & Products
Futures Broker Reviews
NinjaTrader Brokerage (Broker)
NinjaTrader Indicators to Download
Kinetick (Data Feed Provider)
Earn2Trade (Prop Trading)
GFF Brokers (Broker)
NinjaTrader (Trading Platform)
Topstep (Prop Trading)
SharkIndicators (Trading Software)
Copyright © 2022 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada),
info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us
-
Contact Us
-
Site Rules, Acceptable Use, and Terms and Conditions
-
Privacy Policy
-
Downloads
-
Top