NexusFi: Find Your Edge


Home Menu

 





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


Discussion in EasyLanguage Programming

Updated
    1. trending_up 4,507 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"?

  #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?
REcommedations for programming help
Sierra Chart
About a successful futures trader who didnt know anythin …
Psychology and Money Management
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
MC PL editor upgrade
MultiCharts
What broker to use for trading palladium futures
Commodities
 
  #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


© 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