BullCharts Forum Homepage
Forum Home Forum Home > BullCharts > BullScan
  New Posts New Posts RSS Feed: alligator indicator
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

alligator indicator

 Post Reply Post Reply
Author
Message / View First Unread Post
dave1939 View Drop Down
Newbie
Newbie
Avatar

Joined: 25 Nov 2017
Location: Canberra
Posts: 4
Post Options Post Options   Quote dave1939 Quote  Post ReplyReply Direct Link To This Post Topic: alligator indicator
    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
Back to Top
rbbrain View Drop Down
BullCharts Staff
BullCharts Staff
Avatar

Joined: 22 Jul 2006
Location: Melbourne
Posts: 168
Post Options Post Options   Quote rbbrain Quote  Post ReplyReply Direct Link To This Post 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
Brainy's Share Market Toolbox and BullCharts Tips
[/CENTER
Back to Top
peter1 View Drop Down
Regular
Regular


Joined: 27 Aug 2008
Location: Sydney
Posts: 55
Post Options Post Options   Quote peter1 Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.69
Copyright ©2001-2010 Web Wiz