NexusFi: Find Your Edge


Home Menu

 





What's the meaning & function about the "Displace"?


Discussion in EasyLanguage Programming

Updated
    1. trending_up 4,479 views
    2. thumb_up 4 thanks given
    3. group 2 followers
    1. forum 3 posts
    2. attach_file 1 attachments




 
Search this Thread

What's the meaning & function about the "Displace"?

(login for full post details)
  #1 (permalink)
futat
Hong Kong
 
Posts: 6 since Nov 2011
Thanks Given: 1
Thanks Received: 1

Hello,

Sorry about I am newbie. Do you know what's the meaning & function about the "Displace"?

For example in MA code:

inputs: Price( Close ), Length( 9 ), Displace( 0 ) ;
variables: var0( 0 ) ;

var0 = AverageFC( Price, Length ) ;

condition1 = Displace >= 0 or CurrentBar > AbsValue( Displace ) ;
if condition1 then
begin
Plot1[Displace]( var0, "Avg" ) ;

if Displace <= 0 then
begin
condition1 = Price crosses over var0 ;
if condition1 then
Alert( "Price crossing over average" )
else
begin
condition1 = Price crosses under var0 ;
if condition1 then
Alert( "Price crossing under average" ) ;
end;
end;
end;

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
ISO Equity Curve Indicator
NinjaTrader
Trader Dale [email protected] or Scammer Dale
Trading Reviews and Vendors
Volume profile TradeStation
EasyLanguage Programming
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Tao te Trade: way of the WLD
32 thanks
GFIs1 1 DAX trade per day journal
28 thanks
Supertradersams Thread Journal on NQ/MNQ
23 thanks
Deaddogs Stock Trading
13 thanks
Just another trading journal: PA, Wyckoff & Trends
12 thanks

(login for full post details)
  #3 (permalink)
 
Lampert's Avatar
 Lampert 
Calgary, Canada
 
Experience: Intermediate
Platform: Multicharts
Broker: IB, IQFeed
Trading: GC
Posts: 76 since Nov 2011
Thanks Given: 73
Thanks Received: 142



futat View Post
Hello,

Sorry about I am newbie. Do you know what's the meaning & function about the "Displace"?

For example in MA code:

............

futat - Displace means to shift the indicator to the left or right by a specified number of bars. Positive is left and negative is right. Refer to the chart below.

Note that you can just try different settings to see the effect. Also you can look up definitions in this handy reference EasyLanguage Essentials.

Len


Reply With Quote
The following 3 users say Thank You to Lampert for this post:
(login for full post details)
  #4 (permalink)
futat
Hong Kong
 
Posts: 6 since Nov 2011
Thanks Given: 1
Thanks Received: 1


Lampert View Post
futat - Displace means to shift the indicator to the left or right by a specified number of bars. Positive is left and negative is right. Refer to the chart below.

Note that you can just try different settings to see the effect. Also you can look up definitions in this handy reference EasyLanguage Essentials.

Len



Hello, Len
I got it. Much thanks!

Reply With Quote
The following user says Thank You to futat for this post:





Last Updated on May 14, 2012


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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
no new posts