Source: https://fxcodebase.com/code/viewtopic.php?f=17&t=62945
Forum: 17 · Topic 62945 · 13 post(s)
Apprentice · Fri Dec 11, 2015 8:16 am

Based on request. viewtopic.php?f=27&t=62931
Indicator will draw line at level set by user, Zone X pips above / below that line. Line cross alert is available.

Expansion Retracement Levels.lua
Enchantinggust · Fri Dec 11, 2015 10:19 pm
Thanks for the quick turnaround. Although this wasn’t my original idea, this indicator still has its uses for an alert zone.
What I originally wanted was an indicator that creates a set of support and resistance lines (similar to the Fibonacci expansion / retracement) at levels set by the user in pips.
For example, Euro dollar is trading at 1.09567. If I wanted to set levels based off of squares, I would put in square levels (1,4,9,16,25, etc.), the price (1.09567), and the direction (increasing or decreasing price). So for this example, I want 1.09567 for my price, square numbers for my levels, and I want them increasing in price. When ok is clicked, I should have horizontal lines at the following levels: 1.09577 (1 pip from price) 1.09607 (4 pip) 1.09657 (9 pip) 1.09727 (16 pip) 1.09817 (25 pip) Etc…. For as many levels as the user would like.
Sorry if I wasn’t clear enough in my request.
Apprentice · Wed Dec 16, 2015 5:15 am
Your request is added to the development list.
Apprentice · Thu Dec 17, 2015 6:54 am
Expansion Retracement Levels.lua Added.
Enchantinggust · Thu Dec 17, 2015 2:35 pm
That is much better, thanks! One little detail if you could. Could you please add an option to select whether the lines travel up or whether the lines travel down so I don’t have to put a negative sign in front of all of them everytime?
Again, thank you for your great work!
Enchantinggust
Apprentice · Mon Dec 21, 2015 5:42 am
Try it now.
Enchantinggust · Mon Dec 21, 2015 1:23 pm
Perfect! Thank you very much.
Apprentice · Sun Oct 14, 2018 6:17 am
The indicator was revised and updated.
DanPhi74 · Wed Jan 16, 2019 10:42 am
Hi, could you show the price for each price level line. Thanks.
Apprentice · Thu Jan 17, 2019 4:21 am
Your request is added to the development list under Id Number 4426
Apprentice · Fri Jan 18, 2019 5:58 am
Try Expansion Retracement Levels.lua
DanPhi74 · Tue Jan 29, 2019 11:41 am
Hi Apprentice, could you take account the 5 digits after the comma for the forex market please ?
best regards Daniel
Apprentice · Tue Jan 29, 2019 4:33 pm
Try it now.