NexusFi: Find Your Edge


Home Menu

 





EMA changing Color Trend


Discussion in EasyLanguage Programming

Updated
    1. trending_up 5,518 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?
Better Renko Gaps
The Elite Circle
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
ZombieSqueeze
Platforms and Indicators
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
Build trailing stop for micro index(s)
Psychology and Money Management
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
56 thanks
Funded Trader platforms
44 thanks
NexusFi site changelog and issues/problem reporting
24 thanks
GFIs1 1 DAX trade per day journal
22 thanks
The Program
19 thanks
  #3 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,431 since Apr 2013
Thanks Given: 481
Thanks Received: 1,623


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