NexusFi: Find Your Edge


Home Menu

 





Study Alert for 3 ATR move up or down on 5min chart


Discussion in ThinkOrSwim

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




 
Search this Thread

Study Alert for 3 ATR move up or down on 5min chart

  #1 (permalink)
jetsetting
Weston
 
Posts: 3 since Feb 2017
Thanks Given: 0
Thanks Received: 0

I am trying to create a Study Alert (so I get an SMS) based on a 3x move in ATR

So from TOS Marketwatch/Study Alert I create the following thinkscript for above 3 ATR

bid > ATR(Length=20,averageType="SIMPLE") * 3

I set this to Trigger if TRUE and create the silent crossover so it will alert above 3x and then reset when it goes below 3x. However on the Alert Book it always says the Current value of the alert is True so it triggers once at 930am and then never again (because it never crosses below)

It also isn't actually above 3x ATR on my chart. I've tried doing this with the KeltnerChannels UpperBand but couldn't get that to even save due to a Expected Double error.

Can anyone assist with this? I feel like maybe I'm making it more complicated than it needs to be.

Many thanks, Joe

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
REcommedations for programming help
Sierra Chart
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Exit Strategy
NinjaTrader
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Spoo-nalysis ES e-mini futures S&P 500
48 thanks
Just another trading journal: PA, Wyckoff & Trends
35 thanks
Tao te Trade: way of the WLD
26 thanks
Bigger Wins or Fewer Losses?
24 thanks
GFIs1 1 DAX trade per day journal
21 thanks
  #2 (permalink)
 choke35 
Germany
 
Experience: Intermediate
Platform: Other
Trading: ES, YM, 6E
Posts: 2,668 since Feb 2013
Thanks Given: 5,101
Thanks Received: 6,558


jetsetting View Post
I am trying to create a Study Alert (so I get an SMS) based on a 3x move in ATR

So from TOS Marketwatch/Study Alert I create the following thinkscript for above 3 ATR

bid > ATR(Length=20,averageType="SIMPLE") * 3

I set this to Trigger if TRUE and create the silent crossover so it will alert above 3x and then reset when it goes below 3x. However on the Alert Book it always says the Current value of the alert is True so it triggers once at 930am and then never again (because it never crosses below)

It also isn't actually above 3x ATR on my chart. I've tried doing this with the KeltnerChannels UpperBand but couldn't get that to even save due to a Expected Double error.

Can anyone assist with this? I feel like maybe I'm making it more complicated than it needs to be.

Many thanks, Joe

The reason is very simple: math.
You are comparing a price (bid) with a range (ATR(x)*3).

Reply With Quote
  #3 (permalink)
jetsetting
Weston
 
Posts: 3 since Feb 2017
Thanks Given: 0
Thanks Received: 0


Of course! That makes total sense. ATR might be 1.5 and bid is 40 so it will always be true.

I also tried

KeltnerChannels("factor" = 3.0)."Upper_Band" is true

or I've tried

bid > KeltnerChannels("factor" = 3.0)."Upper_Band"

but that doesn't seem to work either. Do you have any guidance on how to accomplish this?

Thanks, Joe

Reply With Quote




Last Updated on September 28, 2017


© 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