Print Page | Close Window

alligator indicator

Printed From: BullCharts Forum
Category: BullCharts
Forum Name: BullScan
Forum Discription: For discusssions on BullScan
URL: http://www.bullcharts.com.au/forum/forum_posts.asp?TID=1035
Printed Date: 02 May 2024 at 4:20pm
Software Version: Web Wiz Forums 9.69 - http://www.webwizforums.com


Topic: alligator indicator
Posted By: dave1939
Subject: alligator indicator
Date Posted: 18 Jul 2020 at 5:19pm
Bill Williams alligator indicator is 3 emas plotted forward by different periods.
1. ema5 displaced by 3 periods forward
2. ema8 displaced by 5 periods forward and
3. ema13 displaced by 8 periods forward.

how do you displace an ema forward (or backward)? I want to code it just to see how visual it is for trends etc.QuestionConfused

Dave



Replies:
Posted By: rbbrain
Date Posted: 23 Jul 2020 at 11:52am
Hi dave1939,
I have to admit that I don't know a lot about script, but the Ichimoku indicator includes two lines are offset forward. I notice in the script that they achieve this using:

nssh := input("First/Second (Senkou) shift",26,1);
standardline := (highest(H,ns) + lowest(L,ns))/2;
turningline := (highest(H,nt) + lowest(L,nt))/2;
span1 := (standardline + turningline)/2;
span2 := (highest(H,nssp) + lowest(L,nssp))/2;
[name=First span; color=green; hozshift="nssh";]
span1;

If you Insert the Ichimoku indicator, then view its Properties and look at the last tab "Formula", this might help?
Cheers
Robert B


-------------
Robert Brain (Brainy)
Convenor - Australian BullCharts User Group
http://www.RobertBrain.com - Brainy's Share Market Toolbox and BullCharts Tips
[/CENTER


Posted By: peter1
Date Posted: 25 Sep 2020 at 3:14pm
Moving averages can be shifted in many ways. Shifting them forward or backward in time is a Horizontal shift (plus or minus values). 

This function can be found in the Moving Average properties "Advanced" tab.



Print Page | Close Window

Bulletin Board Software by Web Wiz Forums® version 9.69 - http://www.webwizforums.com
Copyright ©2001-2010 Web Wiz - http://www.webwiz.co.uk