alligator indicator |
Post Reply |
Author | |
peter1
Regular Joined: 27 Aug 2008 Location: Sydney Posts: 56 |
Post Options
Quote Reply
Topic: alligator indicator 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.
|
|
rbbrain
BullCharts Staff Joined: 22 Jul 2006 Location: Melbourne Posts: 169 |
Post Options Quote Reply 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
|
|
Convenor - Australian BullCharts User Group Brainy's Share Market Toolbox and BullCharts Tips [/CENTER |
|
dave1939
Newbie Joined: 25 Nov 2017 Location: Canberra Posts: 4 |
Post Options Quote Reply 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. Dave
|
|
Post Reply |
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |