NexusFi: Find Your Edge


Home Menu

 





Moving Average Color Change Help


Discussion in EasyLanguage Programming

Updated
    1. trending_up 8,555 views
    2. thumb_up 11 thanks given
    3. group 2 followers
    1. forum 7 posts
    2. attach_file 0 attachments




 
Search this Thread
  #1 (permalink)
 wbtrader 
atlanta ga usa
 
Experience: Advanced
Platform: tradestation, ninja trader
Trading: es
Posts: 12 since Aug 2011
Thanks Given: 10
Thanks Received: 5

does anyone have a sma or ema that changes color with the trend. or changes color based on the cross of 2 moving averages. i have this for ninja but cant seem to find it for tradestation. it would be greatly appreciated!

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
NinjaTrader indicator for last bar percentages
NinjaTrader
Equity Monaco download file?
Psychology and Money Management
Seeking Insights on Day Trading Options on Futures
Options
Anyone Trading Equities using NT8?
NinjaTrader
Creating global variables for Ninjatrader
Traders Hideout
 
  #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,672 since Jun 2009
Thanks Given: 33,404
Thanks Received: 102,210

 
Thread Moved


Moved to EasyLanguage Programming



When creating a new thread, note which subforum you are in. Here is a short list of suggestions:

- Topic: Anything to do with an Elite indicator -> Subforum: The Elite Circle
- Topic: Looking for an existing indicator, or how-to use an indicator -> Subforum: (the platform)
- Topic: Programmer needing help with non-Elite indicator -> Subforum: (the platform) - Programming
- Topic: Want an indicator created/modified -> Reply to "Want indicator created free" in Elite Circle
- Topic: Vendors (trading rooms, commercial indicators) -> Subforum: Vendors/Product Reviews
- Topic: Discussion of Forex or Currency trading -> Subforum: Forex and Currency Trading
- Topic: Journals of your trading -> Subforum: Trading Journals or Elite Trading Journals
- Topic: General trading related discussions -> Subforum: Traders Hideout
- Topic: Discussion of a trading method -> Subforum: Traders Hideout
- Topic: Automated Trading -> Subforum: Elite Automated Trading

Last, any Elite Member may create more or less any of these topics in The Elite Circle at your own discretion (your support is appreciated).

This is just a short general list and doesn't cover everything. If you are unsure where to create your new thread, just create it in Traders Hideout and a moderator will move it if necessary.

-- Big Mike Trading




Join the free Markets Chat beta: Real-time Trading Insights

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 Twitter Visit my NexusFi Trade Journal Reply With Quote
  #3 (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,672 since Jun 2009
Thanks Given: 33,404
Thanks Received: 102,210



wbusbytrader View Post
does anyone have a sma or ema that changes color with the trend. or changes color based on the cross of 2 moving averages. i have this for ninja but cant seem to find it for tradestation. it would be greatly appreciated!

You would need to create EasyLanguage to do it. Pretty simple really. I have some code that would do it, but am currently rebuilding my trading computer so can't access it. I'll try to remember to come back to this thread in a couple days.

Mike



Join the free Markets Chat beta: Real-time Trading Insights

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 Twitter Visit my NexusFi Trade Journal Reply With Quote
  #4 (permalink)
 
sptrader's Avatar
 sptrader 
Colorado
 
Experience: Advanced
Platform: MultiCharts
Broker: IB & Iqfeed
Trading: ES , CL
Posts: 535 since Apr 2010
Thanks Given: 1,097
Thanks Received: 702


wbusbytrader View Post
does anyone have a sma or ema that changes color with the trend. or changes color based on the cross of 2 moving averages. i have this for ninja but cant seem to find it for tradestation. it would be greatly appreciated!

** This is for Multicharts but I think it will work in Tradestation as well.

Input: LT(40);
vars: LtL(0);
LtL = Average(C,Lt);
Plot1(LTL,"Lt");
if LTL >= LTL[1] then setplotcolor(1,blue) else setplotcolor(1,red);

Reply With Quote
Thanked by:
  #5 (permalink)
 wbtrader 
atlanta ga usa
 
Experience: Advanced
Platform: tradestation, ninja trader
Trading: es
Posts: 12 since Aug 2011
Thanks Given: 10
Thanks Received: 5

Thanks guys! I was able to create the ma. Now I am trying to get it to actually plot both lines & only change the color of one. Meaning I want to have 2 ma's & the slow ma changes color when the fast ma is above/below it. Any help there is greatly appreciated. Thanks again for all help!!!

Started this thread Reply With Quote
Thanked by:
  #6 (permalink)
 
sptrader's Avatar
 sptrader 
Colorado
 
Experience: Advanced
Platform: MultiCharts
Broker: IB & Iqfeed
Trading: ES , CL
Posts: 535 since Apr 2010
Thanks Given: 1,097
Thanks Received: 702


wbusbytrader View Post
Thanks guys! I was able to create the ma. Now I am trying to get it to actually plot both lines & only change the color of one. Meaning I want to have 2 ma's & the slow ma changes color when the fast ma is above/below it. Any help there is greatly appreciated. Thanks again for all help!!!

** Try this one-

Input:St(5),LT(20);
vars: LtL(0),dir(0),StL(0);
StL = Average(c,St);
LtL = Average(c,Lt);

Plot1(StL,"St");
Plot2(LtL,"Lt");

if StL > LtL then setplotcolor(2,blue) else setplotcolor(2,red);

Reply With Quote
  #7 (permalink)
 wbtrader 
atlanta ga usa
 
Experience: Advanced
Platform: tradestation, ninja trader
Trading: es
Posts: 12 since Aug 2011
Thanks Given: 10
Thanks Received: 5

sptrader, i cant thank you enough. that is exactly what i needed. works like a charm

Started this thread Reply With Quote
Thanked by:
  #8 (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,672 since Jun 2009
Thanks Given: 33,404
Thanks Received: 102,210


wbtrader View Post
sptrader, i cant thank you enough. that is exactly what i needed. works like a charm

Please remember to use the Thanks button.

Mike



Join the free Markets Chat beta: Real-time Trading Insights

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 Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:




Last Updated on August 30, 2011


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