NexusFi: Find Your Edge


Home Menu

 





Calculate Indicator on Bar Close


Discussion in ThinkOrSwim

Updated
    1. trending_up 4,907 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?
ZombieSqueeze
Platforms and Indicators
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
What broker to use for trading palladium futures
Commodities
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
MC PL editor upgrade
MultiCharts
 




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