Marker

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: Marker (adding multiple markers)

Postby nazaar » Wed Nov 28, 2012 11:13 pm

Hello,

I am trying to edit the marker.lua tool to have more than one marker input value. I am hoping to have 1 marker tool but with the options to identify several bars using the one tool. The attached file is as far I can get, not sure where I am going wrong.

The attached chart shows a potential final product. Ideally, the user may have the option to display either a marker or the numerical value of the X bar back and be able to choose the colours of each.

Thanks.

ps: it is called marker 5 because I edited the original version one step at a time and got to marker 5 before getting an error message I can't fix.
Attachments
Marker 5.lua
(4.36 KiB) Downloaded 691 times
marker tool.png
nazaar
FXCodeBase: Initiate
 
Posts: 178
Joined: Fri May 27, 2011 2:21 pm
Location: Ontario, Canada

Re: Marker

Postby Apprentice » Thu Nov 29, 2012 4:06 am

will take a look.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36437
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Marker

Postby Apprentice » Thu Nov 29, 2012 4:36 am

x2.png

Try this version.
Marker x2.lua
(6.21 KiB) Downloaded 694 times

It is always more difficult to rewrite old code.
Will you offer the new version instead.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36437
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Marker

Postby Apprentice » Thu Nov 29, 2012 5:58 am

I add version that Allows you to define up to 5 Marker.
See topmost post.
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36437
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Marker

Postby nazaar » Thu Nov 29, 2012 12:12 pm

Apprentice wrote: Try this version.
Marker x2.lua

It is always more difficult to rewrite old code.
Will you offer the new version instead.


Thanks very much! This will help in counting cycles, thanks.

Any thoughts why when you apply the marker tool on one time line then change the time line the tool does not display. For example, apply it on the 1 hour chart then change that chart to say the 4 hr chart the markers do not display.

Again, thanks for the help.
nazaar
FXCodeBase: Initiate
 
Posts: 178
Joined: Fri May 27, 2011 2:21 pm
Location: Ontario, Canada

Re: Marker

Postby Apprentice » Thu Nov 29, 2012 12:24 pm

Indicator is locked to an absolute position from last candle.
Not to date.
When you change a time frame, the indicator recalculates.
For this to work you would need to save the marker dates to disk.
And dates are not set by the distance from the last candle,
rather selected with the mouse.

Like in this Elliot Wave Labeling Tool implementation.
viewtopic.php?f=17&t=4360&p=10845&hilit=label#p10845
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36437
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Marker

Postby Thumper » Thu Nov 29, 2012 3:08 pm

I refer to 'MARKER.lua' in the first post above. Can you include a vertical line under Market Type selection? This would allow a single line to be drawn through the price bars (or candles) as well as an indicator like an oscillator which would sit below. Thanks, you guys are amazing. Best regards from Australia.

Robert Marshall
Thumper
 
Posts: 11
Joined: Sun Feb 05, 2012 5:19 pm

Re: Marker

Postby nazaar » Thu Nov 29, 2012 5:08 pm

Apprentice wrote:Will you offer the new version instead.


Hi Apprentice, how are you?
I am not sure what you meant by the above quote but attached is a modified version of the marker tool with 5 time spans measured. This is a little cleaner.

Along with 9 and 26 ichimoku periods there are some additional periods to measure namely, 17, 33, 41, 65 and 76 periods. Note: 26 is one unit, 65 is a Super Big Unit and 76 is a cycle.

Still learning how to incorporate these into ichimoku analysis.
Attachments
M5 Marker time line.lua
(9.82 KiB) Downloaded 660 times
nazaar
FXCodeBase: Initiate
 
Posts: 178
Joined: Fri May 27, 2011 2:21 pm
Location: Ontario, Canada

Re: Marker

Postby Apprentice » Thu Nov 29, 2012 6:46 pm

i have write multiple market indicator (topmost post) can have up to five markers
User avatar
Apprentice
FXCodeBase: Confirmed User
 
Posts: 36437
Joined: Thu Dec 31, 2009 11:59 am
Location: Zagreb, Croatia

Re: Marker

Postby Alexander.Gettinger » Tue Dec 18, 2012 3:13 pm

Marker indicators with line.

MARKER2.lua
(8.29 KiB) Downloaded 736 times


Multiple Marker2.lua
(8.97 KiB) Downloaded 736 times
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

PreviousNext

Return to Custom Indicators

Who is online

Users browsing this forum: No registered users and 77 guests