NexusFi: Find Your Edge


Home Menu

 





Calculate Indicator on Bar Close


Discussion in ThinkOrSwim

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




 
Search this Thread

Calculate Indicator on Bar Close

  #11 (permalink)
 
InsideTheMarket's Avatar
 InsideTheMarket 
Orlando, Florida/USA
 
Experience: Master
Platform: ThinkorSwim, NinjaTrader
Trading: ES, NQ, YM, ZB, ZN, GC, SI, HG, CL, NG, ZS, ZC, ZW, 6E, 6B, 6A, 6J
Posts: 7 since Jul 2017
Thanks Given: 0
Thanks Received: 1


sunnydaze View Post
Yea correct, this will only show on the previous bar that just closed, so only 1 bar behind.
The !indicator[-1] IS for the future bar, however the “!” In front of it means, “not true” for the next bar.

As far as the Isnan code, that you would use if you wanted your signal to appear on the CURRENT bar, not the PREVIOUS (which is the code i just provided). Hope that makes sense...im still new in coding but had the same issue and these codes worked for me



Sent using the NexusFi mobile app

Thanks for your reply... I code myself (PHP, C#, Javascript, HTML) and I know what ! means... but with the logic of ThinkScript... not sure it will work with the [-1] code that you have... as that references the future bar if I'm not mistaken... and not the current bar or the previous one. I shall see when the markets open if it works.

Follow me on Twitter Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
MC PL editor upgrade
MultiCharts
Legends Trading: Ask Me Anything (AMA) w/Greg Khojikian CEO
Trading Reviews and Vendors
MT5 <-> Ninjatrader 8
Platforms and Indicators
What You Know vs How much you know about it
Traders Hideout
ZombieSqueeze
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Vinny E-Mini & Algobox Review TRADE ROOM
43 thanks
ApexTraderFunding.com experience and review
35 thanks
System Performance Stats Comparison
14 thanks
GFIs1 1 DAX trade per day journal
14 thanks
Spoo-nalysis ES e-mini futures S&P 500
8 thanks




Last Updated on July 4, 2020


© 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