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,038 views
    2. thumb_up 0 thanks given
    3. group 2 followers
    1. forum 2 posts
    2. attach_file 0 attachments




 
Search this Thread

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

  #1 (permalink)
 
Sinatra Fan's Avatar
 Sinatra Fan 
Orlando FL
 
Experience: Intermediate
Platform: MultiCharts, Ninja
Trading: Emini ES
Posts: 66 since May 2019
Thanks Given: 7
Thanks Received: 9

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?
Cheap historycal L1 data for stocks
Stocks and ETFs
What broker to use for trading palladium futures
Commodities
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
REcommedations for programming help
Sierra Chart
Trade idea based off three indicators.
Traders Hideout
 
  #2 (permalink)
 
FuManChou's Avatar
 FuManChou 
Saint Paul, Minnesota, United States
 
Experience: Beginner
Platform: MultiCharts
Broker: Edge Clear LLC
Trading: MNQ
Posts: 100 since Jun 2019
Thanks Given: 1,127
Thanks Received: 120

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


© 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