| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #1 | ||
![]() | EL : How to Count the Bar Passed Since ...? e.g. If the Close cross over the average 10 days ago and it return a value 10 . I browsed the EL reserved word manual but seems cannot find some function like 'barsince' ? It should be in EL but just maybe using another term only .Can someone tell me what is the proper name of it ? thanks in advance . | ||
| |
|
| | #2 | ||
![]() ![]() | Re: EL : How to Count the Bar Passed Since ...? Quote:
If C crosses over MA then BarWhen = BarNumber; BarsSince = BarNumber - BarWhen; | ||
| |
|
| | #3 | ||
![]() | Re: EL : How to Count the Bar Passed Since ...? | ||
| |
|
| The Following User Says Thank You to Tams For This Useful Post: | ||
emptyvault (07-19-2009) | ||
| | #4 | ||
![]() Status: Educational Partner Join Date: Nov 2007 Location: Seattle, WA Posts: 165 Thanks: 8
Thanked 156 Times in 59 Posts
| Re: EL : How to Count the Bar Passed Since ...? Regards, Suri Quote:
| ||
| |
|
| The Following User Says Thank You to suriNotes For This Useful Post: | ||
emptyvault (07-19-2009) | ||
| | #5 | ||
![]() | Re: EL : How to Count the Bar Passed Since ...? But the result was that even the close cross below the line after two days , it still get paint bar ....really scratching my head ... What is the mistake ? // Adap10 inputs: Price( Close ), EffRatioLength( 10 ), FastAvgLength( 2 ), SlowAvgLength( 30 ) ; variables: Adap10(0) ; Adap10 = AdaptiveMovAvg( Price, 10, FastAvgLength, SlowAvgLength ) ; // test barsince Vars: BarWhen(0), BarsSince(0), MA(0); If C crosses over Adap10 then BarWhen = BarNumber; BarsSince = BarNumber - BarWhen; If BarsSince = 2 then PlotPaintBar(High,Low,ope n,close,"",cyan); | ||
| |
|
![]() |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Tick Bar Count Down | torero | Trading Indicators | 8 | 05-24-2011 03:40 AM |
| Count Consecutive Volume Up/Down Days | helitrader | Coding Forum | 2 | 03-26-2009 07:46 AM |
| Need explanation on TPO count | tomdz | Market Profile | 12 | 09-08-2007 08:01 PM |
| TPO count | Trader_JG | Market Profile | 1 | 02-12-2007 07:23 AM |