NexusFi: Find Your Edge


Home Menu

 





EMA changing Color Trend


Discussion in EasyLanguage Programming

Updated
    1. trending_up 5,541 views
    2. thumb_up 2 thanks given
    3. group 3 followers
    1. forum 3 posts
    2. attach_file 0 attachments




 
Search this Thread

EMA changing Color Trend

  #1 (permalink)
 Carl7816 
Annapolis, MD USA
 
Experience: Intermediate
Platform: TradeStation
Broker: Trade Station
Trading: Forex
Posts: 2 since Jan 2012
Thanks Given: 1
Thanks Received: 0

Hello Everyone

I have been looking for code for and EMA to change color with the slope, does anyone know where I can find this at. I had it for Trade station and had problems with my trade station platform and now I can't find it. It would be in Easy language format. I had to re-install trade station and I guess that is where it got lost.

Thanks in Advance for the help !!!
Carl

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
REcommedations for programming help
Sierra Chart
Quantum physics & Trading dynamics
The Elite Circle
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
Cheap historycal L1 data for stocks
Stocks and ETFs
What broker to use for trading palladium futures
Commodities
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
24 thanks
What is Markets Chat (markets.chat) real-time trading ro …
19 thanks
ApexTraderFunding.com experience and review
16 thanks
GFIs1 1 DAX trade per day journal
12 thanks
EG Indicators
11 thanks
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629


Carl7816,

I created the code below on the fly and this could serve as a start for you.

Regards,
ABCTG

 
Code
inputs:
	Price( Close ),
	Length( 9 ),
	Displace( 0 ), 
	UpColor( green ),
	DnColor( red );

variables:
	var0( 0 ) ;

var0 = XAverage( Price, Length ) ;

condition1 = Displace >= 0 or CurrentBar > AbsValue( Displace ) ;
if condition1 then 
	begin
	
	if var0 > var0[1] then
		Plot1[Displace]( var0, "AvgExp", UpColor ) 
	else
		Plot1[Displace]( var0, "AvgExp", DnColor ); 		

	                  
	if Displace <= 0 then 
		begin
		condition1 = Price > var0 and var0 > var0[1] and var0[1] <= var0[2] ;
		if condition1 then
			Alert( "Indicator turning up" ) 
		else 
		begin 
		condition1 = Price < var0 and var0 < var0[1] and var0[1] >= var0[2] ;
		if condition1 then
			Alert( "Indicator turning down" ) ;
		end ;
		end;
	end ;

Follow me on Twitter Reply With Quote
Thanked by:
  #4 (permalink)
 Carl7816 
Annapolis, MD USA
 
Experience: Intermediate
Platform: TradeStation
Broker: Trade Station
Trading: Forex
Posts: 2 since Jan 2012
Thanks Given: 1
Thanks Received: 0

Hello ABCTG

Thanks for the help it is greatly appreciated !!!! I will let you know how it works out.

Thanks Again,

Carl

Started this thread Reply With Quote




Last Updated on May 9, 2013


© 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