| Trading Indicators Post your custom trading indicators. If you download, remember to click INSTALL. |
![]() | | Tweet | |
Bar Numbering Details »» | |||||||||||||||||||||||||||||
Bar Numbering This indicator is for MultiCharts only. description: prints the bar number on the screen, with the option to bold, frame or reverse at specific intervals. you may apply the numbers to a subchart, or the main chart. if you want the bar numbers on the main chart: -- right click on the price scale to select this indicator, -- drag the price scale to position the numbers Download Now
Screenshots Show Your Support
| |||||||||||||||||||||||||||||
| The Following 2 Users Say Thank You to Tams For This Useful Post: | ||
aaa (05-13-2009), TIKITRADER (12-14-2009) | ||
| Comments |
| | #18 | ||
![]() | Re: Bar Numbering errLine 0, errColumn 0, errLineEnd 0, errColumnEnd 0 -------------------------------------------------------------------------------------------------- MarketPosition (Reserved Word) Disclaimer Returns a numeric value for a short or long position for the specified position. MarketPosition(Num) Where Num is a numeric expression representing the number of positions ago. Remarks -1 is returned for a short position, and 1 is returned for a long position. 0 is returned if the current position is specified, and you are not currently in the market. This function can only be used in the evaluation of strategies. Example MarketPosition(0) returns a value of 0 if the current position is flat. | ||
| |
|
| | #19 | ||
![]() | Re: Bar Numbering date > start.date -1 Code: Input: start.date( 1090601), start.time( 0800 ), color( black ), text.size( 8 ); var: bar_num( 0), id_txt( 0); if Time > start.time and date > start.date -1 then begin if bar_num = 0 then bar_num = 1 ; end else bar_num = 0 ; if bar_num > 0 then begin id_txt = text_new_self( d, time, 0, text(bar_num : 0 : 0 ) ); text_setcolor( id_txt , color ); text_setsize( id_txt , text.size ); bar_num = bar_num + 1 ; end; print(bar_num ) ; But... It doesnt count all the bars if the start.time = an other time How to resolve that?? | ||
| |
|
| | #20 | ||
![]() | Re: Bar Numbering Quote:
yes, of course, this is for a strategy. it starts counting the bars when an order is filled. (i.e. marketposition <> 0) what you get is the number of bars you have been in a trade. | ||
| |
|
![]() |
| Tags |
| bar number, easylanguage, multicharts, text |
| Thread Tools | |
| Help Others By Rating This Thread | |
| |