Dark Theme
Light Theme
Trading Articles
Article Categories
Article Tools
Welcome to NexusFi: the best trading community on the planet, with over 150,000 members Sign Up Now for Free
Genuine reviews from real traders, not fake reviews from stealth vendors
Quality education from leading professional traders
We are a friendly, helpful, and positive community
We do not tolerate rude behavior, trolling, or vendors advertising in posts
We are here to help, just let us know what you need
You'll need to
register in order to view the content of the threads and start contributing to our community.
It's free for basic access, or support us by becoming an Elite Member -- see if you qualify for a discount below.
-- Big Mike, Site Administrator
(If you already have an account, login at the top of the page)
Assign Numbers To An Indicator
Updated July 2, 2019
trending_up
1,316 views
thumb_up
7 thanks given
group
2 followers
forum
4 posts
attach_file
0 attachments
Assign Numbers To An Indicator
July 2nd, 2019, 10:19 AM
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 !
Can you help answer these questions from other members on NexusFi?
Best Threads (Most Thanked) in the last 7 days on NexusFi
July 2nd, 2019, 10:41 AM
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,399 since Jun 2009
Thanks Given: 33,173
Thanks Received: 101,539
Which platform? So this can be moved to appropriate section.
Mike
July 2nd, 2019, 11:04 AM
Posts: 2,431 since Apr 2013
Thanks Given: 481
Thanks Received: 1,623
@Big Mike Tradestation judging by the abbreviations TS2000i (i.e. Tradestation 2000i) and TS.
Regards,
ABCTG
Big Mike
Which platform? So this can be moved to appropriate section.
Mike
July 2nd, 2019, 11:06 AM
Posts: 2,431 since Apr 2013
Thanks Given: 481
Thanks Received: 1,623
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
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 !
July 2nd, 2019, 02:46 PM
HONOLULU
Posts: 23 since Feb 2019
Thanks Given: 6
Thanks Received: 3
Thankyou for replying.
I will try this.
Last Updated on July 2, 2019