Use Displace in Strategy? - futures io
futures io



Use Displace in Strategy?


Discussion in EasyLanguage Programming

Updated
      Top Posters
    1. looks_one ABCTG with 2 posts (2 thanks)
    2. looks_two avasfx with 2 posts (0 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 liveinhope with 1 posts (0 thanks)
    1. trending_up 1,644 views
    2. thumb_up 2 thanks given
    3. group 3 followers
    1. forum 5 posts
    2. attach_file 0 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

Use Displace in Strategy?

(login for full post details)
  #1 (permalink)
liveinhope
Bath Somerset England UK
 
 
Posts: 1 since Mar 2013
Thanks: 1 given, 0 received

Many of the TS indicators come with built-in Displace input ~ quite useful. So I thought I might try to build displace into a strategy ~ but I can't find any examples of how to do this. Is this possible? If so can anyone provide some sample code?

Thanks

Reply With Quote

Journal Challenge April 2021 results (now extended!):
Competing for $1800 in prizes from Jigsaw
looks_oneMaking a Living with the Microsby sstheo
(172 thanks from 21 posts)
looks_twoSalao's Journalby Salao
(48 thanks from 11 posts)
looks_3Deetee’s DAX Trading Journal (time based)by Deetee
(35 thanks from 16 posts)
looks_4Learning to Profit - A journey in algorithms and optionsby Syntax
(15 thanks from 13 posts)
looks_5Maybe a little bit different journalby Malykubo
(14 thanks from 14 posts)
 
Best Threads (Most Thanked)
in the last 7 days on futures io
Big Mike in Ecuador
76 thanks
Would You Sell Your System?
57 thanks
The Crude Dude Oil Trading System
56 thanks
The New Micro Contract - MICRO BITCOIN coming May 2021
25 thanks
Help improve the FIO community
23 thanks
 
(login for full post details)
  #3 (permalink)
 avasfx 
Poland
 
Experience: Intermediate
Platform: Multicharts Easy Language
Broker: AMP, LMAX
Trading: MES, ES
 
Posts: 17 since Jul 2009
Thanks: 14 given, 0 received


Just came about that same question and didn't find any answers so far.
For example if i want to use Ishimoku as an example, where senkouspan is displaced:
 
Code
plot4[-SenkouB / 2]( SA, "Senkou Span A" );
plot5[-SenkouB / 2]( SB, "Senkou Span B" );
and would like to use this in strategy, something like: if price crosses above SA then.... But in this case it uses SA without displacement. Is there any solution to this?
Alex



liveinhope View Post
Many of the TS indicators come with built-in Displace input ~ quite useful. So I thought I might try to build displace into a strategy ~ but I can't find any examples of how to do this. Is this possible? If so can anyone provide some sample code?

Thanks


Reply With Quote
 
(login for full post details)
  #4 (permalink)
 ABCTG   is a Vendor
 
 
Posts: 2,238 since Apr 2013
Thanks: 417 given, 1,489 received

avasfx,

plot displacement is purely visual for the Ichimoku Cloud. The current bar's value is simply shifted to the right by X bars. It all comes down to what value you need for your strategy and you can make things easier for you to see if you simply remove the displacement in the indicator and apply it to a chart.

Regards,

ABCTG

Follow me on Twitter Reply With Quote
The following user says Thank You to ABCTG for this post:
 
(login for full post details)
  #5 (permalink)
 avasfx 
Poland
 
Experience: Intermediate
Platform: Multicharts Easy Language
Broker: AMP, LMAX
Trading: MES, ES
 
Posts: 17 since Jul 2009
Thanks: 14 given, 0 received


ABCTG View Post
avasfx,

plot displacement is purely visual for the Ichimoku Cloud. The current bar's value is simply shifted to the right by X bars. It all comes down to what value you need for your strategy and you can make things easier for you to see if you simply remove the displacement in the indicator and apply it to a chart.

Regards,

ABCTG

I see, thank you ABCTG!
And if for example i want to code something like: if price crosses above ichimoku cloud then buy.....
You know, im' visual guy, if i can see something i can try to test it out .
Alex

Reply With Quote
 
(login for full post details)
  #6 (permalink)
 ABCTG   is a Vendor
 
 
Posts: 2,238 since Apr 2013
Thanks: 417 given, 1,489 received

avasfx,

it depends on what value you are looking for for the cloud. Keep in mind that the displacement is visual and when you shift plot values to the right i.e. into the future this simply means that the value on the current bar is actually the cloud value from X bars ago. Where X corresponds displacement input. So to use the value of the cloud from the current bar, you have to access the cloud value from X bars ago.
Depending on the Ichimoku code that you are using you might be able to use the cloud variables as they are or you might have to back reference them.

Regards,

ABCTG


avasfx View Post
I see, thank you ABCTG!
And if for example i want to code something like: if price crosses above ichimoku cloud then buy.....
You know, im' visual guy, if i can see something i can try to test it out .
Alex


Follow me on Twitter Reply With Quote
The following user says Thank You to ABCTG for this post:


futures io Trading Community Platforms and Indicators EasyLanguage Programming > Use Displace in Strategy?


Last Updated on February 28, 2020


Upcoming Webinars and Events
 

NinjaTrader Indicator Challenge!

Ongoing
 

Journal Challenge w/$1,800 in prizes!

April
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432, 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.
no new posts