Use Displace in Strategy?
futures io futures trading



Use Displace in Strategy?


EasyLanguage Programming

Created April 12th 2013 by liveinhope
Updated February 28th 2020 by ABCTG
looks_oneABCTG with 2 posts (2 thanks)
looks_twoavasfx with 2 posts (0 thanks)
looks_3liveinhope with 1 posts (0 thanks)
 
trending_up1,264 views
thumb_up2 thanks given
forum5 replies
attach_file0 attachments



Welcome to futures io.

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

futures io is the largest futures trading community on the planet, with over 100,000 members. At futures io, our goal has always been and always will be to create a friendly, positive, forward-thinking community where members can openly share and discuss everything the world of trading has to offer. The community is one of the friendliest you will find on any subject, with members going out of their way to help others. Some of the primary differences between futures io and other trading sites revolve around the standards of our community. Those standards include a code of conduct for our members, as well as extremely high standards that govern which partners we do business with, and which products or services we recommend to our members.

At futures io, our focus is on quality education. No hype, gimmicks, or secret sauce. The truth is: trading is hard. To succeed, you need to surround yourself with the right support system, educational content, and trading mentors all of which you can find on futures io, utilizing our social trading environment.

With futures io, you can find honest trading reviews on brokers, trading rooms, indicator packages, trading strategies, and much more. Our trading review process is highly moderated to ensure that only genuine users are allowed, so you dont need to worry about fake reviews.

We are fundamentally different than most other trading sites:
  • We are here to help. Just let us know what you need.
  • We work extremely hard to keep things positive in our community.
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts.
  • We firmly believe in and encourage sharing. The holy grail is within you, we can help you find it.
  • We expect our members to participate and become a part of the community. Help yourself by helping others.

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

Reply
 
Thread Tools Search this Thread
 

Use Displace in Strategy?

  #1 (permalink)
Bath Somerset England UK
 
 
Posts: 1 since Mar 2013
Thanks: 1 given, 0 received

Use Displace in Strategy?

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

Can you help answer these questions
from other members on futures io?
Medved Trader?
Platforms and Indicators
More order types or programmable trading
Stocks and ETFs
Paintbar/indicator to Strategy help
EasyLanguage Programming
concurrentdictionary historical data
MultiCharts
Drummond Geometry Inquiry
Trading Reviews and Vendors
 
Best Threads (Most Thanked)
in the last 7 days on futures io
ES futures Spoo-nalysis SP500/SPX
471 thanks
Is Orderflow An Outdated Concept?
179 thanks
Recession? Depression? Bailout!
168 thanks
Coronavirus COVID-19
143 thanks
AMP Futures / AMP Global Review
41 thanks
 
  #3 (permalink)
Poland
 
Trading Experience: Intermediate
Platform: Multicharts
Broker/Data: AMP, LMAX
Favorite Futures: ES, CL, 6E, 6B, GC
 
Posts: 17 since Jul 2009
Thanks: 12 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
 
  #4 (permalink)
Hamburg Germany
 
Trading Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 2,164 since Apr 2013
Thanks: 384 given, 1,397 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 Visit my Facebook Reply With Quote
The following user says Thank You to ABCTG for this post:
 
  #5 (permalink)
Poland
 
Trading Experience: Intermediate
Platform: Multicharts
Broker/Data: AMP, LMAX
Favorite Futures: ES, CL, 6E, 6B, GC
 
Posts: 17 since Jul 2009
Thanks: 12 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
 
  #6 (permalink)
Hamburg Germany
 
Trading Experience: Advanced
Platform: Multicharts, Tradestation
Broker/Data: DTN IQ
Favorite Futures: ES
 
Posts: 2,164 since Apr 2013
Thanks: 384 given, 1,397 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 Visit my Facebook Reply With Quote
The following user says Thank You to ABCTG for this post:

Reply



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




Upcoming Webinars and Events (4:30PM ET unless noted)
 

futures io is celebrating 10-years w/ over $18,000 in prizes!

Right now
 

$250 Amazon Gift Cards with our "Thanks Contest" challenge!

Right now
 

Social Media Predictive Data for Traders w/Joe Gits @ SMA [and Lime Brokerage]

Apr 9
     

Similar Threads
Thread Thread Starter Forum Replies Last Post
Call ATM Strategy on an automated strategy to control position jsengxx NinjaTrader 7 May 31st, 2016 04:51 PM
What's the meaning & function about the "Displace"? futat EasyLanguage Programming 3 May 14th, 2012 03:48 AM
Utility To Transpose Optimized Strategy Values From Excel Output to Actual Strategy mercuryfx NinjaTrader 5 April 7th, 2012 03:59 PM
Ninjatrader7 ATM Strategy combine with Strategy Wizard Ninja Script schuster21 NinjaTrader 4 July 4th, 2011 04:39 PM


All times are GMT -4. The time now is 06:22 PM. (this page content is cached, log in for real-time version)

Copyright © 2020 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