NexusFi: Find Your Edge


Home Menu

 





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


Discussion in EasyLanguage Programming

Updated
    1. trending_up 5,013 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?
Iran Update May 8: Still Reviewing MOU, Demands Reparati …
Traders Hideout
ATFX Suspends Prop Trading Unit ATFunded -- Full Review …
Funded Trading Evaluation Firms
Election Sunday Resolves: Peru Heads to Runoff at 42pct, …
Prediction Markets & Event Contracts
Powell in 48 Hours: Word Markets Give 78% on Inflation, …
Prediction Markets & Event Contracts
UMA Votes Tonight: Polymarkets $80M Strategy Bitcoin Bat …
Prediction Markets & Event Contracts
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Big Mike in Ecuador
196 thanks
Sober Journey With S&P
27 thanks
30 Sessions
20 thanks
BERN ALGOS algo trading journal
8 thanks
Volume Indicators
8 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