NexusFi: Find Your Edge


Home Menu

 





Please, I need help with timer on WoodiesCCIpanel


Discussion in NinjaTrader

Updated
      Top Posters
    1. looks_one George with 4 posts (0 thanks)
    2. looks_two max-td with 4 posts (4 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 bukkan with 1 posts (1 thanks)
    1. trending_up 2,232 views
    2. thumb_up 5 thanks given
    3. group 3 followers
    1. forum 9 posts
    2. attach_file 2 attachments




 
Search this Thread

Please, I need help with timer on WoodiesCCIpanel

  #1 (permalink)
 
George's Avatar
 George 
Sweden
 
Experience: Master
Platform: TT, NT, MetaTrader
Broker: Velocity Futures, MB Trading
Trading: EUR/USD
Posts: 401 since Jun 2009
Thanks Given: 1,005
Thanks Received: 1,326

Hey Guys,

I'm using this indicator that's from my Woodie adventure a long time ago. Formerly it was used to predict range bars (works on minutes and tick bars as well) , and to show the woodies cci. Me myself I am using it in order to get a fast observation of the previous bar high, low and close + the current bar low, high and current price. It is very useful for price action observation. It also has a timer included in it. It looks like this:


The problem I have with it is that I want to use the timer alert (sound), and it's simply not working right. For i.e. I want it to alert me on, let's say 200 seconds. It does sound on the 200 sec, but it also sounds 10 seconds later again, and after that 60 seconds later again, and then again. It sounds about 6 times.

Unfortunately I lack programing skills, so if someone could be so kind and solve the issue I'd be forever grateful. There may also be other that could benefit from this indicator as well.

Thank you in advance!

WoodiesCCIpanel.cs

We all struggle to make tomorrow look like yesterday!
Get rid of your past and let the future unfold from the now.
Past performance is not indicative of future results.
/George
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
REcommedations for programming help
Sierra Chart
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Better Renko Gaps
The Elite Circle
Cheap historycal L1 data for stocks
Stocks and ETFs
Quant vue
Trading Reviews and Vendors
 
  #3 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927


hey george,
as i remeber this thing, it works like this :

- its depending on your chart-timeframe
- it has 2 alert steps :
1 far away + 1 nearer - both related to the end of your time-periode of the chart.

so if you use a 5 min chart, you can not let the timer play a sound every 200 seconds.
you can let it play 50 seconds + 5 seconds before the end of the current candle iE

thats out of the brain now - i used it long time ago - have a look at it in this direction.

max-td
Reply With Quote
Thanked by:
  #4 (permalink)
 bukkan 
Calcutta, India
 
Experience: Intermediate
Platform: ArthaChitra
Posts: 278 since Jun 2009
Thanks Given: 161
Thanks Received: 271

.net maps timer interval in milliseconds.

in your code (line 335) the interval is set as:
 
Code
timer.Interval = 1000;
this essentially means the timer ticks every seconds. if you want to tick it every 5 seconds it should be 5000 and if every 200 seconds it should be set at 200000.

Timer.Interval Property (System.Timers)

cheers

edit: the timer basically refreshes the chart every one sec. so you cant change the timer interval. you have to make changes in the SoundTimerAlert method.

Reply With Quote
Thanked by:
  #5 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927

tested here without code-changings :

Alert Timer 1st - only does a colorchange

Alert Timer Last - does another colorchange PLUS a sound

works "in seconds before current bar is ending" .

but on my own old original file: WoodiesCCIpanel v1.7 beta -- not on yours

max-td
Reply With Quote
Thanked by:
  #6 (permalink)
 
George's Avatar
 George 
Sweden
 
Experience: Master
Platform: TT, NT, MetaTrader
Broker: Velocity Futures, MB Trading
Trading: EUR/USD
Posts: 401 since Jun 2009
Thanks Given: 1,005
Thanks Received: 1,326

Hey Max,

Thanks a lot for the answers. The one I'm using is a version that Sam modified for me in order to make it work with NT7. Does yours work with NT7?

Further, if I set it as you're mentioning yes then it works, but it works strange. For i.e., if I put it on a 5 min chart with the setting of 200 on the second timer (AlertTimerLast) then what it does is the following.


It sounds on 200 sec remaining, but then it sounds again at:
180
120 and
60


If I put it on 70 sec then it sounds at:
70 and
60


I've tested it from 65 - 62 (each value separatly, with the same result) . It then sounds at:
65 and
60

64 and
60

63 and
60

62 and
60


If I put it on 61 then it sounds on:
60 and
nothing else


From 60 and below it sounds at that value, and nothing else!


It has to be the code I believe.

We all struggle to make tomorrow look like yesterday!
Get rid of your past and let the future unfold from the now.
Past performance is not indicative of future results.
/George
Started this thread Reply With Quote
  #7 (permalink)
 
George's Avatar
 George 
Sweden
 
Experience: Master
Platform: TT, NT, MetaTrader
Broker: Velocity Futures, MB Trading
Trading: EUR/USD
Posts: 401 since Jun 2009
Thanks Given: 1,005
Thanks Received: 1,326

Bukkan,

Thank your for your answer. Unfortunately I lack the skills that could make me help myself further with your indications.

So if you wish and are able to, would you please explain a little bit more and maybe give some more instructions on how to make that change!

Thank you in advance.



bukkan View Post
.net maps timer interval in milliseconds.

in your code (line 335) the interval is set as:
 
Code
timer.Interval = 1000;
this essentially means the timer ticks every seconds. if you want to tick it every 5 seconds it should be 5000 and if every 200 seconds it should be set at 200000.

Timer.Interval Property (System.Timers)

cheers

edit: the timer basically refreshes the chart every one sec. so you cant change the timer interval. you have to make changes in the SoundTimerAlert method.


We all struggle to make tomorrow look like yesterday!
Get rid of your past and let the future unfold from the now.
Past performance is not indicative of future results.
/George
Started this thread Reply With Quote
  #8 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927

hehe - well - you are right
with numbers above 60 sec its behaving in an other way somehow - with double sounds or so

max-td
Reply With Quote
Thanked by:
  #9 (permalink)
 
max-td's Avatar
 max-td 
Frankfurt
 
Experience: Intermediate
Platform: NinjaTrader
Trading: FGBL 6E B4
Posts: 1,752 since Jun 2009
Thanks Given: 2,309
Thanks Received: 927

i think look for "TimeLeft" - its an own little free app - outside of NT
that does more what you need i think.

it plays sound or opens a popup or whatever every "time-period you want"

max-td
Reply With Quote
Thanked by:
  #10 (permalink)
 
George's Avatar
 George 
Sweden
 
Experience: Master
Platform: TT, NT, MetaTrader
Broker: Velocity Futures, MB Trading
Trading: EUR/USD
Posts: 401 since Jun 2009
Thanks Given: 1,005
Thanks Received: 1,326



max-td View Post
i think look for "TimeLeft" - its an own little free app - outside of NT
that does more what you need i think.

it plays sound or opens a popup or whatever every "time-period you want"


Max,

Thanks for the idea! Greatly appreciated!

We all struggle to make tomorrow look like yesterday!
Get rid of your past and let the future unfold from the now.
Past performance is not indicative of future results.
/George
Started this thread Reply With Quote




Last Updated on September 16, 2010


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
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.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts