Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
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 for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
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
Can you help answer these questions from other members on NexusFi?
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:
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
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
The following user says Thank You to ABCTG for this 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
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
The following user says Thank You to ABCTG for this post: