NexusFi: Find Your Edge


Home Menu

 





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


Discussion in EasyLanguage Programming

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




 
Search this Thread
  #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?
S&P 500 Holds the Line: No Fast Track for SpaceX, Op …
Stocks and ETFs
CME Launches Bitcoin Volatility Futures June 1 -- First …
Cryptocurrency
Would a node-based workflow for automated trading be useful?
Traders Hideout
I Have a Thing Called Iran -- Trump Stays in DC as Airsp …
Prediction Markets & Event Contracts
Trump Truth Social Fires Hormuz From 10% to 59% -- Arsen …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
NexusFi site changelog and issues/problem reporting
15 thanks
Darmok and Jalad at Tanagra
3 thanks
Big Mike in Ecuador
1 thanks
30 Sessions
1 thanks
  #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
Thanked by:
  #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
Thanked by:




Last Updated on May 14, 2012


© 2026 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 - Downloads - Top
no new posts