My Indicator Thread- Just a placeholder - futures io
futures io



My Indicator Thread- Just a placeholder


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one forrestang with 20 posts (22 thanks)
    2. looks_two maxuscz with 4 posts (0 thanks)
    3. looks_3 trendisyourfriend with 3 posts (0 thanks)
    4. looks_4 lesterb with 3 posts (1 thanks)
      Best Posters
    1. looks_one forrestang with 1.1 thanks per post
    2. looks_two brettji with 1 thanks per post
    3. looks_3 lesterb with 0.3 thanks per post
    4. looks_4 jmont1 with 0.3 thanks per post
    1. trending_up 3,461 views
    2. thumb_up 25 thanks given
    3. group 12 followers
    1. forum 35 posts
    2. attach_file 21 attachments




Welcome to futures io: the largest futures trading community on the planet, with well over 125,000 members
  • 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 and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

 
Search this Thread
 

My Indicator Thread- Just a placeholder

(login for full post details)
  #1 (permalink)
 forrestang 
Urban Samurai
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,239 since Jun 2010
Thanks: 306 given, 950 received

This is most a placeholder to refer people to ask questions about any indies I have built, request changes or report issues.

There will be a link to this thread in all my indicators, or a place for me to post things about those indicators. I may direct various users here who I am doing work for, so as not to flood other threads.

If you have NEW indicators you want built, don't post in this thread, but request them in the " Want your NinjaTrader indicator created, free?" thread.

That is all.

ACR or Average "Clock" Range 7April2020

PriorDayBreaks 26Mar2020

Fib Wave Indicator Trend GRaBer Indicator for FIO 22Jan2020

BetterBarTimer_v4 21Jan2020

Absolute Strength_v2 21Jan2020

Max Daily Volume 21Jan2020

Nested Fractals 21Jan2020

ADR with Projections Lines_v2 21Jan2020

Session Open Horizontal Zones 21Jan2020

Intra Session Boxes_v2 21Jan2020

-------------------------------------------------------------

I am no coder, but occasionally I will add things that I think may be useful, or a bit obscure, or other people interested in writing scripts may find helpful.
  • TECH TIP: Neat way to redefine labels for indicators that appear on-chart HERE.

Started this thread Reply With Quote
The following 8 users say Thank You to forrestang for this post:

Journal Challenge April 2021 results:
Competing for $1800 in prizes from Jigsaw
looks_oneMaking a Living with the Microsby sstheo
(620 thanks from 61 posts)
looks_twoSalao's Journalby Salao
(161 thanks from 29 posts)
looks_3Learning to Profit - A journey in algorithms and optionsby Syntax
(115 thanks from 27 posts)
looks_4Deetee’s DAX Trading Journal (time based)by Deetee
(94 thanks from 30 posts)
looks_5Maybe a little bit different journalby Malykubo
(53 thanks from 32 posts)
 
Best Threads (Most Thanked)
in the last 7 days on futures io
I finally blew up an account
129 thanks
The Crude Dude Oil Trading System
85 thanks
Spoo-nalysis ES e-mini futures S&P 500
65 thanks
The tiyfTradePlanFactory indicator
31 thanks
Building a Crypto Mining Rig
19 thanks
 
(login for full post details)
  #2 (permalink)
 forrestang 
Urban Samurai
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,239 since Jun 2010
Thanks: 306 given, 950 received

Random indicators that I have not put in the download section, some of these were conversions(NT7) I did for others(of which I know nothing about), or various requests from others, nothing special, just collating everything into one location.

Attached Files
Register to download File Type: zip ReversalBar.zip (5.7 KB, 31 views)
Register to download File Type: zip PriceLineScrollable.zip (2.1 KB, 21 views)
Register to download File Type: zip MADifference_v6.zip (8.9 KB, 21 views)
Register to download File Type: zip Kllinger-Volume-Oscillator_KLVO.zip (5.4 KB, 22 views)
Started this thread Reply With Quote
The following user says Thank You to forrestang for this post:
 
(login for full post details)
  #3 (permalink)
 forrestang 
Urban Samurai
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,239 since Jun 2010
Thanks: 306 given, 950 received



jmont1 View Post
Closest thing I could find is focused on volume bars

https://ninjatraderecosystem.com/user-app-share-download/volume-bar-timer-2/

Unfortunately it is not compatible with current NT8 and I am looking to use it on more than just volume bars.

If this was possible then the next phase would be to time the amount of time a trade is open.

But I guess one thing at a time. Thanks for thinking about this.

Can you look into THIS one and see if it does what you think you want, or if there are any things it does NOT do that you would want it to do?
2021-01-20_222829

Started this thread Reply With Quote
 
(login for full post details)
  #4 (permalink)
 jmont1 
New York, NY
 
Experience: Intermediate
Platform: NinjaTrader8
Broker: Data = Rithmic -- Gives 70 Level II Data
Trading: 6C (Low Margin,) 6E, CL, GC, ES and Maybe DX for smaller tick value
 
Posts: 1,255 since May 2011
Thanks: 1,600 given, 922 received


forrestang View Post
Can you look into this one and see if it does what you think you want, or if there are any things it does NOT do that you would want it to do?

@forrestang I am embarrassed not to be able to have found that one. And confused because I typed the URL and got no page found but your link takes me right to it. I also did a search on its It does what I was looking for except for the counting of time in a trade. I will try to figure that part out because seeing I am in a trade for a long time without a win tells me get out and make a new decision. Thank you!

Reply With Quote
The following user says Thank You to jmont1 for this post:
 
(login for full post details)
  #5 (permalink)
 forrestang 
Urban Samurai
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,239 since Jun 2010
Thanks: 306 given, 950 received


jmont1 View Post
@forrestang I am embarrassed not to be able to have found that one. And confused because I typed the URL and got no page found but your link takes me right to it. I also did a search on its It does what I was looking for except for the counting of time in a trade. I will try to figure that part out because seeing I am in a trade for a long time without a win tells me get out and make a new decision. Thank you!

I haven't spent much time using the portion of stuff collecting trade metrics. I just glanced at the docs, most seem to be related to average metrics, like average DD, or average time in trade, etc...

But sure it's probably not hard to parse out the values you are looking for. Will look into it.

I'll get back to you on that.

Started this thread Reply With Quote
The following user says Thank You to forrestang for this post:
 
(login for full post details)
  #6 (permalink)
 forrestang 
Urban Samurai
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,239 since Jun 2010
Thanks: 306 given, 950 received


jmont1 View Post
@forrestang I am embarrassed not to be able to have found that one. And confused because I typed the URL and got no page found but your link takes me right to it. I also did a search on its It does what I was looking for except for the counting of time in a trade. I will try to figure that part out because seeing I am in a trade for a long time without a win tells me get out and make a new decision. Thank you!


forrestang View Post
...I'll get back to you on that.




So I'm actually surprised, but there actually does not appear to be a simple way to do this, especially with an indicator. HERE is a post of someone attempting to do a similar thing that you are looking for, and he was attempting to do it in a bit of a run-around manner.

As is now, there is no simple object that contains a report of tradeperformance, that is NOT tied to a strategy of sorts... at least that is my understanding based on the reading I've done(I could be wrong). I.e., you can get metrics from a strategy, but not simply trades you've actually placed manually. You can get average price for example, but not the TIME that trade was entered.

I'm sure it CAN be done, but it is above my novice level.

As is now, it may be possible to capture a trade placed, and store the time... but that info would be lost when you restarted the platform.

Simpler workarounds might be to have the user manually enter in the time a trade was taken... and you'd just have some counter incrementing the time... but obviously that might get tedious over time.

As in that link above, that is an issue they are talking about adding to a future update, so maybe when they add an object that holds trade performance, this issue will be easier to implement.

Started this thread Reply With Quote
The following user says Thank You to forrestang for this post:
 
(login for full post details)
  #7 (permalink)
 forrestang 
Urban Samurai
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,239 since Jun 2010
Thanks: 306 given, 950 received


jmont1 View Post
@forrestang I am embarrassed not to be able to have found that one. And confused because I typed the URL and got no page found but your link takes me right to it. I also did a search on its It does what I was looking for except for the counting of time in a trade. I will try to figure that part out because seeing I am in a trade for a long time without a win tells me get out and make a new decision. Thank you!


forrestang View Post
So I'm actually surprised, but there actually does not appear to be a simple way to do this...
.


Ok, actually, played around with it a bit more... and I figured out a way to do it. I'll have to play around with this a bit more, but threw this together real quick.

You can see here, on the chart, is a trade I took a few hours ago.... and managed to spit out the current time in that trade, which is just under 3 hours ago.

Needs more things to sort out... but actually it is possible and is not as complicated as I initially thought.

2021-01-22_121440

Started this thread Reply With Quote
 
(login for full post details)
  #8 (permalink)
 forrestang 
Urban Samurai
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,239 since Jun 2010
Thanks: 306 given, 950 received

Ah shit.

Ok.. the issue is, there is only access to executions taken on the start of NT.... It is either this or the previous day... I'll have to figure out which? But it looks like it doesn't maintain an all-inclusive list of trades taken in the methods I have access to.

So that means, when you restart NT, you would only have access to whatever executions taken on a restart. You'll have to lemme know if this would be useful?

I.e., if you have regularly have trades you would be in while not having ur platform open, this might not be useful.

Started this thread Reply With Quote
The following user says Thank You to forrestang for this post:
 
(login for full post details)
  #9 (permalink)
 jmont1 
New York, NY
 
Experience: Intermediate
Platform: NinjaTrader8
Broker: Data = Rithmic -- Gives 70 Level II Data
Trading: 6C (Low Margin,) 6E, CL, GC, ES and Maybe DX for smaller tick value
 
Posts: 1,255 since May 2011
Thanks: 1,600 given, 922 received


forrestang View Post
Ah shit. Ok.. the issue is, there is only access to executions taken on the start of NT.... It is either this or the previous day...

@forrestang I'm mainly a day trader so this would be useful. Thanks for all the effort. I look forward to a version you have created.

Reply With Quote
 
(login for full post details)
  #10 (permalink)
 brettji 
phoenix, az
 
Experience: Intermediate
Platform: ninjatrader Jigsaw TOS
Broker: Ninja - TOS
Trading: ZB
 
brettji's Avatar
 
Posts: 56 since May 2016
Thanks: 103 given, 123 received


Thanks for posting the trend grabber. Is there anyway it could be made into channel instead? Maybe showing the 32ema. It reminds me of the Sonic R System Strategy from ForexFactory.



See attached.

Brett

Attached Files
Register to download File Type: pdf Sonic R.pdf (762.7 KB, 30 views)
Reply With Quote
The following user says Thank You to brettji for this post:
 
(login for full post details)
  #11 (permalink)
 forrestang 
Urban Samurai
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,239 since Jun 2010
Thanks: 306 given, 950 received


brettji View Post
Thanks for posting the trend grabber. Is there anyway it could be made into channel instead? Maybe showing the 32ema. It reminds me of the Sonic R System Strategy from ForexFactory.



See attached.

Brett

Howdy... I'm not sure what you mean by a channel outside of what the Top and Bottom MAs form?

Started this thread Reply With Quote
 
(login for full post details)
  #12 (permalink)
 forrestang 
Urban Samurai
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,239 since Jun 2010
Thanks: 306 given, 950 received


jmont1 View Post
@forrestang I'm mainly a day trader so this would be useful. Thanks for all the effort. I look forward to a version you have created.

Howdy sir.

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.


2021-01-27_104415

Attached Files
Register to download File Type: zip TradeTimer.zip (2.0 KB, 10 views)
Started this thread Reply With Quote
The following user says Thank You to forrestang for this post:
 
(login for full post details)
  #13 (permalink)
 maxuscz 
Brno, Czech republic
 
Experience: Beginner
Platform: NinjaTrader
Trading: Emini ES
 
Posts: 22 since Dec 2020
Thanks: 12 given, 5 received

God bless you, man for ReversalBar indicator

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

Best regards
Maxu

Reply With Quote
 
(login for full post details)
  #14 (permalink)
 forrestang 
Urban Samurai
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,239 since Jun 2010
Thanks: 306 given, 950 received


maxuscz View Post
God bless you, man for ReversalBar indicator

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

Best regards
Maxu

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.

Use this v2 version.
2021-01-28_115804

Attached Files
Register to download File Type: zip ReversalBarV2.zip (5.8 KB, 20 views)
Started this thread Reply With Quote
The following 2 users say Thank You to forrestang for this post:
 
(login for full post details)
  #15 (permalink)
 maxuscz 
Brno, Czech republic
 
Experience: Beginner
Platform: NinjaTrader
Trading: Emini ES
 
Posts: 22 since Dec 2020
Thanks: 12 given, 5 received

Thank you. It is better 8)

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

Reply With Quote
 
(login for full post details)
  #16 (permalink)
 forrestang 
Urban Samurai
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,239 since Jun 2010
Thanks: 306 given, 950 received


maxuscz View Post
Thank you. It is better 8)

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.

Started this thread Reply With Quote
 
(login for full post details)
  #17 (permalink)
 maxuscz 
Brno, Czech republic
 
Experience: Beginner
Platform: NinjaTrader
Trading: Emini ES
 
Posts: 22 since Dec 2020
Thanks: 12 given, 5 received


forrestang View Post
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.

Sorry forrestang,
Here is picture for explain my idea.


About grey bars - I see them on 5 minutes chart. But I use 2000 ticks chart only. And when you select tick chart - no gray bars 8)

Reply With Quote
 
(login for full post details)
  #18 (permalink)
 jmont1 
New York, NY
 
Experience: Intermediate
Platform: NinjaTrader8
Broker: Data = Rithmic -- Gives 70 Level II Data
Trading: 6C (Low Margin,) 6E, CL, GC, ES and Maybe DX for smaller tick value
 
Posts: 1,255 since May 2011
Thanks: 1,600 given, 922 received


forrestang View Post
Howdy sir. 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...

@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.

THANKS AGAIN!!!

Reply With Quote
 
(login for full post details)
  #19 (permalink)
 forrestang 
Urban Samurai
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,239 since Jun 2010
Thanks: 306 given, 950 received


maxuscz View Post
Sorry forrestang,
Here is picture for explain my idea.

About grey bars - I see them on 5 minutes chart. But I use 2000 ticks chart only. And when you select tick chart - no gray bars 8)

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:
 
Code
			bool overlap = false;
			if(MAX(High, 5)[0] - MIN(Low,5)[0] < 2 * BarsPeriod.Value* TickSize) {
				//Print(Time[0] + " H=" + MAX(High, 5)[0] + " L=" + MIN(Low,5)[0]);
				overlap = true;
			}
			if(MAX(High, 4)[0] - MIN(Low,4)[0] < 1.5 * BarsPeriod.Value * TickSize) {
				overlap = true;
			}
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:

Quoting 
Reversal Bar by cunparis

This indicator will color a reversal bar grey.
It is designed to be used on range charts.
If you see a lot of grey bars then it could be consolidation.
If you see a lot of colored bars then price is moving nicely.

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

Started this thread Reply With Quote
The following user says Thank You to forrestang for this post:
 
(login for full post details)
  #20 (permalink)
 maxuscz 
Brno, Czech republic
 
Experience: Beginner
Platform: NinjaTrader
Trading: Emini ES
 
Posts: 22 since Dec 2020
Thanks: 12 given, 5 received

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.

best regards
Max

Reply With Quote
 
(login for full post details)
  #21 (permalink)
 forrestang 
Urban Samurai
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,239 since Jun 2010
Thanks: 306 given, 950 received


jmont1 View Post
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.

So I can add more adjustability in the timer's position. I planned on doing that after you run the indicator as-is for a week or so. I don't know exactly when it destroys old entries, but I noticed yesterday, I had a trade on early AM, let it run through the session, and as the NEW session started, it lost track of that trade, even though I still had a position on. So I think it may not only be on a PC restart that it loses trades, but may be when a new session is encountered? Depending on how you trade, this may/may-not be an issue for you?

I was never sure weather this was just a thing you wanted to have... to have an idea of your current trade duration, or if you really needed to know exactly for every single trade you placed, how long it was active?

I had to ask some questions about using this account sync stuff on NT's forum, and one gentleman mentioned he had a similar issue, and the only way to really get accuracy of all LIVE trades taken, was to write/read from a text file created.

But at any rate, yes I can add some more movement of the text, but run the indie for a while and be sure it mostly works through various conditions, that way I dont have to mess with it more than necessary. I'll probably add similar customization for text that is in my BetterBarTimer indie.



jmont1 View Post
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.

Ok... so a few things.

THIS indicator, as-is, is built with the mind of LIVE trades, placed manually. If it were me, I wouldn't use this particular indie for a strategy, or linked to a strategy at all. If it were me, and I were going to connect something like this to a bot, I would do it a different way.

If you were going to use a strategy, it would actually be easier to do the things you want to do.

If you need a strategy to see time in a trade, you can simply set a flag anytime a trade is taken, and store the time. On each bar/tic, you compare CURRENT time to the time set on last trade entry, using the TotalMinutes method, like so:
 
Code
double timeSince = (Time[0] - tradeEntryTime).TotalMinutes;
Where Time[0] would be the current DateTime of where the strat currently is, and tradeEntryTime is a DateTime you stored on your last entry. It would be captured like:

 
Code
if(entry long was taken)
    tradeEntryTime = Time[0];


Next, if you want to create something that will expose the times... you can actually expose variables(ints, doubles, bools, etc), dataseries OR plots. That's where you add them in the "properties" section below onBarUpdate. For the example, you can create a dataseries that will store the time in trade for each bar(using that totalMinutes example)... where it could be either a "-1" to indicate flat, or "0-∞" to indicate time in trade.

A good coding sample demonstrating exposing indicator values can be found HERE.

Started this thread Reply With Quote
The following user says Thank You to forrestang for this post:
 
(login for full post details)
  #22 (permalink)
 forrestang 
Urban Samurai
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,239 since Jun 2010
Thanks: 306 given, 950 received


maxuscz View Post
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.

best regards
Max

Happy to help out. But as ironic as it sounds, I don't actually use any indicators in my trading, so I wouldn't be able to advise you on any good reversal indicators.

Started this thread Reply With Quote
The following 2 users say Thank You to forrestang for this post:
 
(login for full post details)
  #23 (permalink)
 emazing 
Montreal
 
Experience: Intermediate
Platform: Ninjatrader
Trading: ZB
 
Posts: 51 since Apr 2011
Thanks: 15 given, 10 received

Hi forrestang, I love the "bar timer" you created! Would it be possible to get the bar timer to actually float together with the current price? That would be really awesome!!!

Reply With Quote
 
(login for full post details)
  #24 (permalink)
 forrestang 
Urban Samurai
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,239 since Jun 2010
Thanks: 306 given, 950 received


emazing View Post
Hi forrestang, I love the "bar timer" you created! Would it be possible to get the bar timer to actually float together with the current price? That would be really awesome!!!

Thanks, that is on the list.

I was also think about adding the option to change to a countdown color if desired... I.e., if user sets 10 seconds, and time hits 10 seconds, change the color to something else for that last 10 seconds.

Started this thread Reply With Quote
 
(login for full post details)
  #25 (permalink)
 emazing 
Montreal
 
Experience: Intermediate
Platform: Ninjatrader
Trading: ZB
 
Posts: 51 since Apr 2011
Thanks: 15 given, 10 received

Yeah, that with the countdown color changing colors when it gets to a certain number, that one I have already. Unfortunately it works only on volume & tick bars. No time based bars ((

Reply With Quote
 
(login for full post details)
  #26 (permalink)
 trendisyourfriend 
Legendary Market Wizard
Quebec
 
Experience: Intermediate
Platform: NinjaTrader wt Rancho Dinero's profiling tools
Broker: AMP/CQG
Trading: ES, NQ, YM
 
trendisyourfriend's Avatar
 
Posts: 4,024 since Oct 2009
Thanks: 3,692 given, 5,209 received

An idea for a simple system:

[EDIT]
It would be cool if you could add an alert when a new count is detected. For example, in the charts i posted, we could set an alert for a count == 2 say when price gets a x points from forming.
...
Alert upcoming count: "sound file abc"
Points away to alert: 1
...
[/EDIT]

When we have a higher or equal count == 2 go long at the open of the bar following a count == 1. Stop loss when price closes below the low of the bar at count == 2


To be clear, two levels to enter:


Some entries for today:


Some more...


This was today:

Reply With Quote
 
(login for full post details)
  #27 (permalink)
 trendisyourfriend 
Legendary Market Wizard
Quebec
 
Experience: Intermediate
Platform: NinjaTrader wt Rancho Dinero's profiling tools
Broker: AMP/CQG
Trading: ES, NQ, YM
 
trendisyourfriend's Avatar
 
Posts: 4,024 since Oct 2009
Thanks: 3,692 given, 5,209 received

@forrestang

Just realised i was too quick and did not fully understoo how your indicator was rendering a new count. The simple system idea is still doable but it would need some more nuances. Sorry false alert.

Reply With Quote
 
(login for full post details)
  #28 (permalink)
 forrestang 
Urban Samurai
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,239 since Jun 2010
Thanks: 306 given, 950 received


trendisyourfriend View Post
@forrestang

Just realised i was too quick and did not fully understoo how your indicator was rendering a new count. The simple system idea is still doable but it would need some more nuances. Sorry false alert.

Since you said false alert, I didn't look into it much.

But was the issue that you just didn't see WHEN that fractal was rendered? I.e., the fractal number appears to the left of where the signal was actually detected?

If so... use the 'showtriggers' bool, and maybe you can further refine what you were thinking, as that well show you WHEN on the chart the most recent fractal occurred.

Started this thread Reply With Quote
The following user says Thank You to forrestang for this post:
 
(login for full post details)
  #29 (permalink)
 trendisyourfriend 
Legendary Market Wizard
Quebec
 
Experience: Intermediate
Platform: NinjaTrader wt Rancho Dinero's profiling tools
Broker: AMP/CQG
Trading: ES, NQ, YM
 
trendisyourfriend's Avatar
 
Posts: 4,024 since Oct 2009
Thanks: 3,692 given, 5,209 received


forrestang View Post
Since you said false alert, I didn't look into it much.

But was the issue that you just didn't see WHEN that fractal was rendered? I.e., the fractal number appears to the left of where the signal was actually detected?

If so... use the 'showtriggers' bool, and maybe you can further refine what you were thinking, as that well show you WHEN on the chart the most recent fractal occurred.

Exactly didn't estimate correctly the timing for WHEN that fractal was rendered.

Reply With Quote
 
(login for full post details)
  #30 (permalink)
 forrestang 
Urban Samurai
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,239 since Jun 2010
Thanks: 306 given, 950 received


Started this thread Reply With Quote
The following user says Thank You to forrestang for this post:
 
(login for full post details)
  #31 (permalink)
 lesterb 
Toronto, Canada
 
Experience: Intermediate
Platform: NT8
Trading: ES
 
lesterb's Avatar
 
Posts: 52 since Mar 2012
Thanks: 205 given, 58 received

good morning forrestang,

I sent you a pm just before the site crashed so you probably did not receive it. I was wondering how you were able to get multiple images in your Better Bar Timer indicator. Did you use a BB shortcut or is there some other way of getting them in there?

Thanks for any help.
Les
lesterb

Reply With Quote
 
(login for full post details)
  #32 (permalink)
 forrestang 
Urban Samurai
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,239 since Jun 2010
Thanks: 306 given, 950 received


lesterb View Post
good morning forrestang,

I sent you a pm just before the site crashed so you probably did not receive it. I was wondering how you were able to get multiple images in your Better Bar Timer indicator. Did you use a BB shortcut or is there some other way of getting them in there?

Thanks for any help.
Les
lesterb

Yo,

You have to use [IMG] tags. So to add additional images, you need to host it somewhere, like imgur, and link it with the image tags.

Or you can host in your "indicator thread" beforehand, grab the link from there, and post in your indie description.

Started this thread Reply With Quote
The following user says Thank You to forrestang for this post:
 
(login for full post details)
  #33 (permalink)
 lesterb 
Toronto, Canada
 
Experience: Intermediate
Platform: NT8
Trading: ES
 
lesterb's Avatar
 
Posts: 52 since Mar 2012
Thanks: 205 given, 58 received

thx forrestang

Reply With Quote
 
(login for full post details)
  #34 (permalink)
 forrestang 
Urban Samurai
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,239 since Jun 2010
Thanks: 306 given, 950 received


lesterb View Post
good morning forrestang,

I sent you a pm just before the site crashed so you probably did not receive it. I was wondering how you were able to get multiple images in your Better Bar Timer indicator. Did you use a BB shortcut or is there some other way of getting them in there?

Thanks for any help.
Les
lesterb

Better Yet, here is the template for THAT particular listing, so you can repurpose if you want it to have all the links to your thread, etc... obviously you need to input your values in-between the BB tags.

HTML Code:
[COLOR="DarkRed"]Note: If you find bugs, have feature requests, or anything else, post in [URL="https://futures.io/ninjatrader/56493-my-indicator-thread-just-placeholder.html#post830676"]THIS[/URL] thread.[/COLOR]

This is a [I]BETTER [/I]bar timer for NT.

This does the same thing the standard bar-timer that ships with NT does, except its better. :becky:

You can customize this one to be as subtle or obnoxious as you want it to be.

[B]FONT CONTROL:[/B] It will allow you complete control over the text.  This includes font style, font weight, text size, the color, etc.

[B]FONT PLACEMENT:[/B] You can place it ANYWHERE on the screen.  You can start with the origin points to include any of the 4 corners on the chart.

[B]OFFSETS:[/B] Included with that standard placement, you can offset it from the edges by n-pixels.  So after you place it, you can adjust it both horizontally AND vertically.

[B]PRETEXT:[/B] I created this as I think the standard bar-timer takes up unnecessary space.  I myself just like to see the clock-time, as it takes up less space.  Here, you can leave it BLANK(default), or add in your own [B]CUSTOM[/B] text.  So if you like the standard timer, you could input "Time remaining = " for example, and it would be like the standard one.  [U]DO NOT USE[/U] [URL="https://www.tutorialspoint.com/csharp/csharp_character_escapes.htm"]escape characters[/URL], like backslashes in the pretext input field.

See image below for example of adding pretext.
[IMG]https://i.imgur.com/jqabfY1.png[/IMG]

NOTE: Installing this indicator will create a folder called "BTMM," that's where the indicator will be.


[B][COLOR="DarkRed"][SIZE="5"]---EDIT - V4 20January2020---[/SIZE][/COLOR][/B]
As per suggestion of  [MENTION=107877]locky[/MENTION], and wanting to minimize space(purpose of this indie), you can now toggle on independently, and in any combination, the display of Hours, Minutes or Seconds.  E.g., No need to show hours for a sub-hour chart.
[IMG]https://i.imgur.com/JCsqtuI.png[/IMG]


[B][COLOR="DarkRed"][SIZE="5"]---EDIT - V3 19January2020---[/SIZE][/COLOR][/B]
There was a bug with this indicator NOT saving the text style in templates or a workspace.  This bug should be fixed now.  Apologies for inconvenience.  Thanks to  [MENTION=2113]mrlucky1x[/MENTION] for finding this bug  

[B][COLOR="darkred"][SIZE="5"]---EDIT - V2 16January2020---[/SIZE][/COLOR][/B]
Version two of this indicator will have a box around the text. By default it will be set to transparent, so you won't see it unless you change the color.  Opacity setting is also there so you can make the box color more/less transparent.
[IMG]https://i.imgur.com/Fp71srl.png[/IMG]


 
Code
Note: If you find bugs, have feature requests, or anything else, post in  THIS thread.

This is a BETTER bar timer for NT.

This does the same thing the standard bar-timer that ships with NT does, except its better. :becky:

You can customize this one to be as subtle or obnoxious as you want it to be.

FONT CONTROL: It will allow you complete control over the text.  This includes font style, font weight, text size, the color, etc.

FONT PLACEMENT: You can place it ANYWHERE on the screen.  You can start with the origin points to include any of the 4 corners on the chart.

OFFSETS: Included with that standard placement, you can offset it from the edges by n-pixels.  So after you place it, you can adjust it both horizontally AND vertically.

PRETEXT: I created this as I think the standard bar-timer takes up unnecessary space.  I myself just like to see the clock-time, as it takes up less space.  Here, you can leave it BLANK(default), or add in your own CUSTOM text.  So if you like the standard timer, you could input "Time remaining = " for example, and it would be like the standard one.  DO NOT USE  escape characters, like backslashes in the pretext input field.

See image below for example of adding pretext.


NOTE: Installing this indicator will create a folder called "BTMM," that's where the indicator will be.


---EDIT - V4 20January2020---
As per suggestion of @locky, and wanting to minimize space(purpose of this indie), you can now toggle on independently, and in any combination, the display of Hours, Minutes or Seconds.  E.g., No need to show hours for a sub-hour chart.



---EDIT - V3 19January2020---
There was a bug with this indicator NOT saving the text style in templates or a workspace.  This bug should be fixed now.  Apologies for inconvenience.  Thanks to @mrlucky1x for finding this bug  

---EDIT - V2 16January2020---
Version two of this indicator will have a box around the text. By default it will be set to transparent, so you won't see it unless you change the color.  Opacity setting is also there so you can make the box color more/less transparent.

Started this thread Reply With Quote
 
(login for full post details)
  #35 (permalink)
 lesterb 
Toronto, Canada
 
Experience: Intermediate
Platform: NT8
Trading: ES
 
lesterb's Avatar
 
Posts: 52 since Mar 2012
Thanks: 205 given, 58 received

Excellent, thanks. I posted the images on my placeholder thread and will link to them there when I get the indie cleaned up. But your code is most appreciated.
lesterb

Reply With Quote
The following user says Thank You to lesterb for this post:
 
(login for full post details)
  #36 (permalink)
 forrestang 
Urban Samurai
Chicago IL
 
Experience: None
Platform: Ninja, MT4, Matlab
Broker: CQG, AMP, MB, DTN
Trading: E/U, G/U
 
forrestang's Avatar
 
Posts: 1,239 since Jun 2010
Thanks: 306 given, 950 received

Tech Tip:

A cool way to allow the user to not display the indicator name on-chart, or to modify it so unnecessary things don't show up.

Typically, you may see something like this when adding an indicator to chart:




However, this may be much more information than a user needs to see. This can be particularly cumbersome, as some indicators may have colors that display as long hashes, or other info. For this indicator, I think the only pertinent info a user would need to see, is the NAME of the indicator, and the userInput, Period.




So I'll modify it, so that it looks like THIS, where now you only see the NAME and PERIOD:






A further mod to this, is the option to turn this off completely(below image). The user can manually accomplish this by deleting the label, but requires additional work.





To do this, we'll add a user input to disable the label, along with a simple function, that pulls the NAME of the variable from the State.SetDefaults, and whatever else you want to add. You can see from the code below, that I also add the userInput period to the NAME, along with parenthesis for display purposes.


Add a user Input variable in the class level:
 
Code
private bool displayIndicatorName 	= true;
Add a function somewhere outside of the onBarUpdate() method. Note how I have put the "Name" variable and UserInput called "Period". Also I have added literals to show parenthesis for display purposes. You can modify this however you wish, to show the user what you think is pertinent. Note the on-screen bit is in the 'else if' statement.
 
Code
		public override string DisplayName
		{
    			get { if  (State == State.SetDefaults) 
						return Name; 	
						else  if (displayIndicatorName)
						return Name+"("+period+")";
						else return "";  }	
		}

Lastly, so that turning OFF the label can be a userinput, we have to attach the UI to the variable:
 
Code
		[Display(ResourceType = typeof(Custom.Resource), Name="Show Label on-chart", Description="", GroupName="1) BASIC", Order=2)]
		public bool DisplayIndicatorName
		{ 
			get { return displayIndicatorName; } 
			set { displayIndicatorName = value; } 
		}

Started this thread Reply With Quote


futures io Trading Community Platforms and Indicators NinjaTrader > My Indicator Thread- Just a placeholder


Last Updated on April 14, 2021


Upcoming Webinars and Events

NinjaTrader Indicator Challenge!

Ongoing

Journal Challenge w/$1,800 in prizes!

May 7

The Cold Hard Truth: Maybe I Am Not Good Enough w/Chris Gray @ Earn2Trade

Elite only
     



Copyright © 2021 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada), info@futures.io
All information is for educational use only and is not investment advice.
There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
no new posts