Page 3 of 6

Re: Time of a candle

PostPosted: Thu May 31, 2012 11:18 pm
by nazaar
Apprentice wrote:
Candle LookBack Period.png

This simple indicator, draw three vertical lines at specified period Back or Onward from the current period.
Candle LookBack Period.lua


If you want to draw line in the future, use a negative period.


Hello Apprentice,

For the Candle LookBack Period Indicator, is it possible to give the user the option to choose whether to draw vertical line or place a marker at the x lookback period? This will help De-clutter the charts.

Thanks

Re: Time of a candle

PostPosted: Fri Jun 01, 2012 3:27 am
by Apprentice
In theory, yes.
Which marker you would like to use.
Colored candle or a symbol

Re: Time of a candle

PostPosted: Fri Jun 01, 2012 10:49 am
by nazaar
Hi Apprentice,

thanks for the quick response. I was thinking the same marker tool used here (MARKER.lua) :

viewtopic.php?f=17&t=3963&hilit=marker

Symbol is preferred.

thanks

Re: Time of a candle

PostPosted: Wed Jul 11, 2012 7:34 am
by nazaar
Apprentice wrote:In theory, yes.
Which marker you would like to use.
Colored candle or a symbol


Hi Apprentice, any update on this request?

Thanks.

Re: Time of a candle

PostPosted: Thu Oct 18, 2012 7:33 pm
by MeiniOz
I have taken the liberty to expand a bit on your code, Apprentice. Sorry nazaar, not what you were asking for :)

I changed it so that one can have any number of lines in a day (not just three). At the moment it is set to 24 but it can easily be changed to whatever is required, simply by modifying the number in the first line of the code using a text editor:
Code: Select all
local n_LP = 24
A word of caution to the novice: the larger the number, the larger the menu will become, which, if very large, can have unpredictable effects.

Hope this is useful.

PS: I have also given it a different name.

Re: Time of a candle

PostPosted: Sun Oct 21, 2012 4:20 am
by MeiniOz
Option for arrow symbol added.

Re: Time of a candle

PostPosted: Wed Nov 07, 2012 3:20 pm
by nazaar
Apprentice wrote:
Time of a candle.png

Week of Day option added.
Time of a candle.lua



Hi Apprentice, could you add a quarterly and or yearly option?

Thanks very much.

Re: Time of a candle

PostPosted: Fri Nov 09, 2012 6:57 am
by Apprentice
Time of a candle Ver 2.png

Weekly, Quarterly and or Yearly option added.
Time of a candle.lua
(14.02 KiB) Downloaded 1433 times

Re: Time of a candle

PostPosted: Wed Jan 16, 2013 12:13 pm
by nazaar
Apprentice wrote:This simple indicator, draw three vertical lines at specified times.
Time of a candle.lua


Hi Apprentice, instead of drawing vertical lines at the specified times could you add the option to draw a wingding arrow instead with the option to adjust arrow size?

I tried doing it myself but could not get it to work right.

was using this:
"instance:createTextOutput ("Wingdings", instance.parameters.ArrowSize, core.H_Center, core.V_Bottom, instance.parameters, 0);"

Re: Time of a candle

PostPosted: Thu Jan 17, 2013 8:45 am
by Apprentice
Noted.
I need to see the whole code, in order to be able to help.
Please send it to my privat email.