Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community. It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
I'm basically just building this for YOUR use-case. I could make it such that it would work for everyone and be a bit more universal, but for now I'd rather just build based on how you plan on using it, as it would be simpler to do, and I think its not something many people are going to be needing.
Do you plan on using this on one instrument at a time?
How often do you hold trades outside of the day session?
As I mentioned earlier, NT does not store all the trades in an easy way to reference. So it is possible that on a restart of your PC, trades taken earlier will be missing. Is this a problem? I.e., would it be sufficient just for you to capture the trade time from when you just START trading, in the case prior trades are not captured?
I've got a version for you to test right now. This is the bare bones indie. It has no pretty customization, as I just need you to figure out if this does what you need it to do.
Also, this version now, updates only on each-tic. So that means, it does not count EVERY second, as I have not added a timing event yet(I will do that after you test it). So, essentially, the timer is updated each tic, not each second. So if the chart sits there, and no new tics come in(overnight), it will sit on the same time until a new tic appears... but it will update to the correct time when a new tic arrives. This is only an issue during SUPER slow times(I guess it wont be a problem for you?). Again, I plan on adding a timing event later.
This version has VERY basic error checking right now. If you don't have a recent trade on, it will simply show "noTrade" in the lower left hand corner. once you take a trade(or it captures one from recent data), it will show the time elapsed.
Also of note, is that it will likely only show the LAST trade taken, irrespective of what chart you have open. I.e., if you have a position open in EurUsd, but have Gbp/Usd open, the timer will show the time for Eur/Usd. This is why I asked if you trade multiple things at once, b/c if you do not, I dont have to worry and create additional code.
Also of note, I do not own NT, so I can only test this on the default Sim101 account. I added something in that I've never used, and that is the account selector. I'm assuming ur using a live account? If so, you need to let me know if this works, as I have no way of testing it on my end.
So at any rate, run this for a week or so, and figure out if it works the way you think it should(get a good sample of trades). Let me know what does/does not function properly.
I need add opacity for ColorCongestion or ColorReversal cose need to see original color of candle.
I don't find sample where to see that part of setting - how add opacity to indicator setup menu
I'm not sure I understand you, but I think you just want to be able to see the ORIGINAL color of the bar depending on your settings. See this modified version of the indicator. It will allow you to set ANY of the colors to TRANSPARENT, and it will show the original color of the bar.
I dont know why but I have no any gray candles on my chart. I see it on your chart but no one on my chart.. and I dont know why
I try to play with congestion colors : If I add gray golor with some % of transparent - I can see original color of candles and same time see if it congestion cose it will be looked more dark or something like that.
This way is better for me than change color. Im totally noob in trading and all nonstandart visual information bother me
I have to say, I'm struggling to understand what your post is saying? I'm not sure what you mean by, "If I add gray golor with some % of transparent"?
You can't add a % of transparent, as it's either a color, OR it is transparent. Transparent for this indicator means it will NOT color the bar according to the indicator.
I would suggest... just to test the indicator, use OHLC bars and NOT candles to be sure the Transparent thing works.
Trading: 6C (Low Margin,) 6E, CL, GC, ES and Maybe DX for smaller tick value
Posts: 1,394 since May 2011
Thanks Given: 1,719
Thanks Received: 1,020
@forrestang, Awesomely appreciate your efforts, especially since you do not run NT live for your account!!!
So I do not need to get to the more specific per second and will be running it using price change not on every tick so do not waste time and effort for that. Tested it against multiple instruments and multiple accounts and it seems to differentiate correctly.
If you are willing to add effort then I would appreciate being able to move the timer since i have others that are in lower left. Or would help if I could raise it a number of ticks on the left so I could place it say 6 ticks above bottom. But probably easier to simply use the place in the the corners.
Additionally, to be able to use this with a Strategy Builder BOT would require being able to "see" the time. Strategy Builder can only see "int's" and not doubles but I have never tried seeing a time. Any thoughts on how this could be exposed as an Int by a transparent plot by reading the hour and minute, then converting to minutes and plotting that int? So 1 hour and 44 minutes would plot transparently as 104 (60 + 44.) My use case would not need more than the minute info. So if the time was always rounded to closest minute and plotted transparently with the show transparent plots in data box I believe I could use it.
I found the issue with this indicator and what you are seeing. It is a function of using tic charts, as I was able to replicate this issue on my end(not seeing the reversal/gray bars on tic charts).
The piece of code that is responsible for this is:
Essentially, that bool called overlap is what creates gray bars. You can see here, it evaluates to true if the range of the previous 4-5 bars is less than the barperiod * the ticksize. In this case, BarsPeriod if using a tic chart will always produce a very large number. For TIC charts, this ALWAYS evaluates to true IF YOU USE LARGE TIC SIZES. So it essentially WILL not create reversal bars(gray) on LARGE tic charts.
So just mathematically, if you want to see the gray bars, you have to use a smaller tic size.
As mentioned in a previous post, this is one of the indicators that is NOT my own creation(I just converted from NT7 for another user), so I do not understand the rational behind the indicator.
The author left notes, which I left in the indicator, and it was created by Cunparis, who I've seen on other forums, so you might have to ask him about it. But in his notes, he says the following:
So it seems his idea was this would be used on Range charts?
So to recap:
The indicator uses the BarPERIOD to find congestion,and tic charts always produce a large number
If you want to use tic charts, to see gray bars, you have to use a lower-tic chart
The original author intended this to be used on range bar charts
Thank you so match, man
you spend lot of time with my stupid question. Now we know how it must worked 8)
Indicator name promise give me hope to get easy information about reversal bars. english is not my language and read how reversal bar must looked from PATs forum is not easy for me. 8) But im try (try to find easy way to do it 8-)
Still must say - you make good job. thank you
If you know another one indicator to detect reversal bars on ES chart - tell me.