NexusFi: Find Your Edge


Home Menu

 





Assign Numbers To An Indicator


Discussion in Platforms and Indicators

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




 
Search this Thread
  #1 (permalink)
Joe50
HONOLULU
 
Posts: 23 since Feb 2019
Thanks Given: 6
Thanks Received: 3

Hello and thank you for taking the time to read this.

I still use TS2000i and I know it is similar to the newer versions of TS.


In any event this is what I am trying to do:

1. I am using 10 minute bars and a 5 period SMA

2. The indicator I am trying to create is in it own subparagraph where there are different levels 5,4,3,2,1,0,-1,-2,-3,-4,-5

3. I am trying to code an indicator where the first time the Close is > SMA then plot a line at 1 //the lines should connect , kind of like RSI or %R

the 2nd time the C > SMA then plot a line at 2

the 3rd time the C > SMA then plot a line at 3 and so on

4. Reverse is true if C < SMA

5. It will reset everyday //date <> date[1]

I cannot understand how to get past 1.

If anybody can help me Thankyou !


Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Expiration Day: Wall Street Rallies on Peace Hopes While …
Prediction Markets & Event Contracts
CFTC Chair Selig Puts Timeline on US Crypto Perpetual Fu …
Cryptocurrency
The Backwardation Signal: How the CL Futures Curve Tells …
Commodities
MegaETH Proves the Crowd Right: Prediction Markets Calle …
Prediction Markets & Event Contracts
CFTC Workforce Shrinks 24% to 15-Year Low While Predicti …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Sober Journey With S&P
24 thanks
2026 Jlab journal
10 thanks
Algo automated / semi-automated trading anyone?
6 thanks
Lady Vols Primer: Trading Volatility Journal
6 thanks
Trying to learn Volume and price action correlation
5 thanks
  #2 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,669 since Jun 2009
Thanks Given: 33,669
Thanks Received: 102,557

Which platform? So this can be moved to appropriate section.

Mike




We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on X Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,447 since Apr 2013
Thanks Given: 493
Thanks Received: 1,639


@Big Mike Tradestation judging by the abbreviations TS2000i (i.e. Tradestation 2000i) and TS.

Regards,

ABCTG


Big Mike View Post
Which platform? So this can be moved to appropriate section.

Mike


Follow me on X Reply With Quote
Thanked by:
  #4 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,447 since Apr 2013
Thanks Given: 493
Thanks Received: 1,639

Hi Joe50,

one approach that could work is using a variable that you increment or decrement every time your conditions are fulfilled. Then simply plot this variable and maybe add additional plots for the levels.

Regards,

ABCTG


Joe50 View Post
Hello and thank you for taking the time to read this.

I still use TS2000i and I know it is similar to the newer versions of TS.


In any event this is what I am trying to do:

1. I am using 10 minute bars and a 5 period SMA

2. The indicator I am trying to create is in it own subparagraph where there are different levels 5,4,3,2,1,0,-1,-2,-3,-4,-5

3. I am trying to code an indicator where the first time the Close is > SMA then plot a line at 1 //the lines should connect , kind of like RSI or %R

the 2nd time the C > SMA then plot a line at 2

the 3rd time the C > SMA then plot a line at 3 and so on

4. Reverse is true if C < SMA

5. It will reset everyday //date <> date[1]

I cannot understand how to get past 1.

If anybody can help me Thankyou !


Follow me on X Reply With Quote
Thanked by:
  #5 (permalink)
Joe50
HONOLULU
 
Posts: 23 since Feb 2019
Thanks Given: 6
Thanks Received: 3

Thankyou for replying.

I will try this.


Reply With Quote
Thanked by:




Last Updated on July 2, 2019


© 2026 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 - Downloads - Top
no new posts