NexusFi: Find Your Edge


Home Menu

 





Reset after DrawLine Touched


Discussion in NinjaTrader

Updated
    1. trending_up 1,381 views
    2. thumb_up 2 thanks given
    3. group 3 followers
    1. forum 5 posts
    2. attach_file 1 attachments




 
Search this Thread

Reset after DrawLine Touched

  #1 (permalink)
 ceramictilepro 
Roseville CA
 
Experience: Advanced
Platform: N7
Broker: Amp Futures/CQG
Trading: ES
Posts: 124 since Jun 2009
Thanks Given: 32
Thanks Received: 21

Hello,

Attached is a working indicator that allows the following:

1) Draws a Line at requested Level that can be changed by dragging on chart without refreshing.
2) Once line is touched, an Email and/or Text is sent
3) Alert window is triggered
4) Custom email/text message can be included via indicator window


Here's what I can't seem to figure out...

The rearm function does not seem to work or I just don't understand what exactly it's supposed to do.

What I'm looking for is to have the indicator reset itself so it will trigger again after price moves away from it's intial trigger, then returns... that what I thought rearm supposed to do but guess not

any suggestion would be very helpful... I love this indicator and will submit it to the Elite once everthing is cleaned up!

Attached Files
Elite Membership required to download: BMTalert.zip
Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Better Renko Gaps
The Elite Circle
Exit Strategy
NinjaTrader
PowerLanguage & EasyLanguage. How to get the platfor …
EasyLanguage Programming
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
29 thanks
Tao te Trade: way of the WLD
24 thanks
Just another trading journal: PA, Wyckoff & Trends
24 thanks
Bigger Wins or Fewer Losses?
21 thanks
GFIs1 1 DAX trade per day journal
17 thanks
  #3 (permalink)
 
Tasker_182's Avatar
 Tasker_182 
Cedar Rapids, iowa
Legendary Market Wizard
 
Experience: Intermediate
Platform: Ninjatrader
Broker: Ninjatrader - Continuum
Posts: 716 since Aug 2009
Thanks Given: 476
Thanks Received: 1,401



ceramictilepro View Post
Hello,

Attached is a working indicator that allows the following:

1) Draws a Line at requested Level that can be changed by dragging on chart without refreshing.
2) Once line is touched, an Email and/or Text is sent
3) Alert window is triggered
4) Custom email/text message can be included via indicator window


Here's what I can't seem to figure out...

The rearm function does not seem to work or I just don't understand what exactly it's supposed to do.

What I'm looking for is to have the indicator reset itself so it will trigger again after price moves away from it's intial trigger, then returns... that what I thought rearm supposed to do but guess not

any suggestion would be very helpful... I love this indicator and will submit it to the Elite once everthing is cleaned up!

Hi,

The rearm function of the Alert is simply a time delay to prevent the alert from potential false triggers if the condition that caused the alert is still true. The help text says, "Sets the number of seconds an alert will rearm. If the same alert (identified by the id parameter) is called within a time window of the time of last alert + rearmSeconds, the alert will be ignored."

Be yourself; everyone else is already taken. Oscar Wilde
Reply With Quote
Thanked by:
  #4 (permalink)
 ceramictilepro 
Roseville CA
 
Experience: Advanced
Platform: N7
Broker: Amp Futures/CQG
Trading: ES
Posts: 124 since Jun 2009
Thanks Given: 32
Thanks Received: 21

thanks for that bit of information. can you tell me if it's possible to have this indicator reset itself after being triggered...seems like i have to F5 or refresh manually and not automatically.

thank you!


Tasker_182 View Post
Hi,

The rearm function of the Alert is simply a time delay to prevent the alert from potential false triggers if the condition that caused the alert is still true. The help text says, "Sets the number of seconds an alert will rearm. If the same alert (identified by the id parameter) is called within a time window of the time of last alert + rearmSeconds, the alert will be ignored."


Started this thread Reply With Quote
  #5 (permalink)
 
Tasker_182's Avatar
 Tasker_182 
Cedar Rapids, iowa
Legendary Market Wizard
 
Experience: Intermediate
Platform: Ninjatrader
Broker: Ninjatrader - Continuum
Posts: 716 since Aug 2009
Thanks Given: 476
Thanks Received: 1,401


ceramictilepro View Post
thanks for that bit of information. can you tell me if it's possible to have this indicator reset itself after being triggered...seems like i have to F5 or refresh manually and not automatically.

thank you!

You can certainly have the logic reset itself. So you need logic that says alert detected and then you need to decide how you want to proceed. So if for example price has touched the level (lets just say going up to the level and touching it) and the indicator triggers, when do you want it to reset? When price clears the line above then comes back down? Does it alert on the way back down or only on the way up or both? Once you decide how you want it to operate you can then set up the programming in that way. I invite you to examine an indicator I recently modified for someone where there was a similar situation of a line being crossed setting off alert then waiting until line was crossed ion opposite direction to rearm the alert.
post #9521

Be yourself; everyone else is already taken. Oscar Wilde
Reply With Quote
Thanked by:
  #6 (permalink)
 ceramictilepro 
Roseville CA
 
Experience: Advanced
Platform: N7
Broker: Amp Futures/CQG
Trading: ES
Posts: 124 since Jun 2009
Thanks Given: 32
Thanks Received: 21

ok, did some searching and found this indicator "WilliamsRforDKHoward" that you built.

will take some time to get my head wrapped around how to incorporate the code into my indicator but it looks like you have some bools in there. not a programmer here for sure but like to tinker

thank you and will keep you posted!

Started this thread Reply With Quote




Last Updated on February 10, 2014


© 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