Time of a candle

Here you can post and download custom indicators. PLEASE: Do not start topics unless you are posting your own indicator, they will be moved to appropriate section even if you do.

Moderator: admin

Re: Time of a candle

Postby nazaar » Thu May 31, 2012 11:18 pm

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
nazaar
FXCodeBase: Initiate
 
Posts: 178
Joined: Fri May 27, 2011 2:21 pm
Location: Ontario, Canada

Re: Time of a candle

Postby Apprentice » Fri Jun 01, 2012 3:27 am

In theory, yes.
Which marker you would like to use.
Colored candle or a symbol
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 17510
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Time of a candle

Postby nazaar » Fri Jun 01, 2012 10:49 am

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
nazaar
FXCodeBase: Initiate
 
Posts: 178
Joined: Fri May 27, 2011 2:21 pm
Location: Ontario, Canada

Re: Time of a candle

Postby nazaar » Wed Jul 11, 2012 7:34 am

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.
nazaar
FXCodeBase: Initiate
 
Posts: 178
Joined: Fri May 27, 2011 2:21 pm
Location: Ontario, Canada

Re: Time of a candle

Postby MeiniOz » Thu Oct 18, 2012 7:33 pm

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.
Attachments
TimeLines.lua
Version 1.3
(6.6 KiB) Downloaded 323 times
Last edited by MeiniOz on Sun Oct 21, 2012 4:21 am, edited 1 time in total.
User avatar
MeiniOz
FXCodeBase: Confirmed User
 
Posts: 34
Joined: Wed Nov 17, 2010 4:39 pm

Re: Time of a candle

Postby MeiniOz » Sun Oct 21, 2012 4:20 am

Option for arrow symbol added.
Attachments
TimeLines.lua
Version 1.4
(8.08 KiB) Downloaded 352 times
User avatar
MeiniOz
FXCodeBase: Confirmed User
 
Posts: 34
Joined: Wed Nov 17, 2010 4:39 pm

Re: Time of a candle

Postby nazaar » Wed Nov 07, 2012 3:20 pm

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.
nazaar
FXCodeBase: Initiate
 
Posts: 178
Joined: Fri May 27, 2011 2:21 pm
Location: Ontario, Canada

Re: Time of a candle

Postby Apprentice » Fri Nov 09, 2012 6:57 am

Time of a candle Ver 2.png

Weekly, Quarterly and or Yearly option added.
Time of a candle.lua
(14.02 KiB) Downloaded 541 times
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 17510
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Time of a candle

Postby nazaar » Wed Jan 16, 2013 12:13 pm

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);"
nazaar
FXCodeBase: Initiate
 
Posts: 178
Joined: Fri May 27, 2011 2:21 pm
Location: Ontario, Canada

Re: Time of a candle

Postby Apprentice » Thu Jan 17, 2013 8:45 am

Noted.
I need to see the whole code, in order to be able to help.
Please send it to my privat email.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 17510
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

PreviousNext

Return to Custom Indicators

Who is online

Users browsing this forum: No registered users and 12 guests