NexusFi: Find Your Edge


Home Menu

 





Can anyone please paste the easylanguage code for the indicator "STRATEGY EQUITY"


Discussion in EasyLanguage Programming

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




 
Search this Thread
  #1 (permalink)
 
Sinatra Fan's Avatar
 Sinatra Fan 
Orlando FL
 
Experience: Intermediate
Platform: MultiCharts, Ninja
Trading: Emini ES
Posts: 101 since May 2019
Thanks Given: 8
Thanks Received: 12

was reading in the EL essentials programmers guide about an indicator "Strategy Equity"

Can anyone please paste the code for this indicator? It is not in the MC library. Thanks


Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
No book, only a stair: journaling fills where price move …
Cryptocurrency
My Rant with AMP Futures
Trading Reviews and Vendors
requesting .nrd replay files from 2026 spy and qqq
The Elite Circle
Datafeed for Atas
Platforms and Indicators
Trump Media to sell instant access to market-moving soci …
Traders Hideout
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Mes vs MNQ
6 thanks
NexusFi site changelog and issues/problem reporting
5 thanks
BERN ALGOS algo trading journal
3 thanks
Johnnys Journal
2 thanks
TopStep Trader disappointment
2 thanks
  #2 (permalink)
 
FuManChou's Avatar
 FuManChou 
Saint Paul, Minnesota, United States
 
Experience: Intermediate
Platform: MultiCharts
Broker: Edge Clear LLC
Trading: MNQ
Frequency: Many times daily
Duration: Hours
Posts: 109 since Jun 2019
Thanks Given: 1,144
Thanks Received: 122

This is from TradeStation. You will have to compile it in MC.

Moderators. If this is not allowed, please remove it.



inputs:
int PositiveClosedEquityColor( UpColorDefault ) [
DisplayName = "PositiveClosedEquityColor",
ToolTip = "Enter the color to use when the closed equity is greater than zero."],

int PositiveOpenEquityColor( UpColorDefault ) [
DisplayName = "PositiveOpenEquityColor",
ToolTip = "Enter the color to use when the open equity is greater than zero."],

int NegativeClosedEquityColor( DownColorDefault ) [
DisplayName = "NegativeClosedEquityColor",
ToolTip = "Enter the color to use when the closed equity is less than or equal to zero."],

int NegativeOpenEquityColor( DownColorDefault ) [
DisplayName = "NegativeOpenEquityColor",
ToolTip = "Enter the color to use when the open equity is less than or equal to zero."];

variables:
double OpenEquity( 0 ),
double ClosedEquity( 0 );

OpenEquity = I_OpenEquity;
ClosedEquity = I_ClosedEquity;

Plot1( OpenEquity, !( "OpenEquity" ), IFF( OpenEquity > 0,
PositiveOpenEquityColor, NegativeOpenEquityColor) );

Plot2( ClosedEquity, !( "ClosedEquity" ), IFF( ClosedEquity > 0,
PositiveClosedEquityColor, NegativeClosedEquityColor) );

Plot3( 0, !( "ZeroLine" ) );

{
set "connector" color (color plotted from the prior bar to the current bar) for
cases where open equity crosses zero or goes from zero to a non-zero value; the
connector color will be determined by the current bar open equity value
}
if OpenEquity[1] <= 0 and OpenEquity > 0 then
SetPlotColor[1]( 1, PositiveOpenEquityColor )
else if OpenEquity[1] >= 0 and OpenEquity < 0 then
SetPlotColor[1]( 1, NegativeOpenEquityColor );


Reply With Quote
  #3 (permalink)
swingbatter
Arlington
 
Posts: 18 since Feb 2020
Thanks Given: 6
Thanks Received: 3



Sinatra Fan View Post
was reading in the EL essentials programmers guide about an indicator "Strategy Equity"

Can anyone please paste the code for this indicator? It is not in the MC library. Thanks

You should be able to find it 2 ways: Tradestation Development Environment > Open > Indicator > Strategy Equity
or, on a chart, Studies > Add Studies > Indicator > Strategy Equity > Edit EasyLanguage


Reply With Quote




Last Updated on March 25, 2021


© 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