GetRTAccountEquity - EasyLanguage, MultiCharts, Daily Account P&L - futures io
futures io futures trading

GetRTAccountEquity - EasyLanguage, MultiCharts, Daily Account P&L

Discussion in MultiCharts

Updated by bruiser
    1. trending_up 584 views
    2. thumb_up 0 thanks given
    3. group 1 followers
    1. forum 0 replies
    2. attach_file 0 attachments

Welcome to futures io: the largest futures trading community on the planet, with well over 100,000 members
  • Genuine reviews from real traders, not fake reviews from stealth vendors
  • Quality education from leading professional traders
  • We are a friendly, helpful, and positive community
  • We do not tolerate rude behavior, trolling, or vendors advertising in posts
  • We are here to help, just let us know what you need
You'll need to register in order to view the content of the threads and start contributing to our community.  It's free and simple.

-- Big Mike, Site Administrator

(If you already have an account, login at the top of the page)

Search this Thread

GetRTAccountEquity - EasyLanguage, MultiCharts, Daily Account P&L

(login for full post details)
  #1 (permalink)
Burbank + California/ USA
Posts: 6 since Mar 2020
Thanks: 0 given, 0 received


I'm using a daily profit target / daily loss method whereby the strategy will stop trading once either threshold has been hit.

This works fine within the individual strategy, for example if I want to set it to a $300 profit target, it will take trades until it has made $300 and then it will not take any further trades until the next day. Same for the daily loss side.

However, the challenge I am running into is that I would like to set this same type of parameters on the "account" level rather than within each individual strategy. Specific reason being that I am trading more than one market, and the current code looks at each individual market that the code is active on and makes the trade or no trade decision based on the P&L for that particular market. Instead of looking to see what the "overall" profit / loss has been for the account which would include all of the active strategies running.

For example, if I wanted to set a $500 daily profit target for the account...and if I was trading 5 markets, I want to be able to have all of the trades stop for the rest of the day once a total of $500 has been made on the account (all markets active included). Doesn't matter if all the trades came from one market or two, etc. Just check to see if we have hit the overall daily goal and then determine if it can take a new trade or if its done for the day and apply to all active markets.

Looking for some help on an easylanguage coding spot where I am stuck.

I am assuming the GetRTAccountEquity would be the way to go about this and insert code into each of the markets to check before entering a trade. But, having some challenges with this part.

Here is the portion of the code that I am using which works on the individual market:

DailyProfit (0),
DailyLoss (0),
YesterdayNet (0),
TodayNet (0),
DayPL (False);

If date <> date[1] then begin
YesterdayNet = NetProfit ;

If MP = 0 Then Begin
TodayNet = NetProfit - YesterdayNet;

If -DailyLoss < TodayNet And TodayNet < DailyProfit Then
DayPL = True
Else DayPL = False;

Would gratefully appreciate any help on converting this to look at the markets combined and account P&L vs each individual market traded.

Thank you in advance for your assistance.

Reply With Quote

futures io Trading Community Platforms and Indicators MultiCharts > GetRTAccountEquity - EasyLanguage, MultiCharts, Daily Account P&L

March 23, 2020

Upcoming Webinars and Events

An Afternoon With futures io member TropicalTrader

Elite only

Copyright © 2020 by futures io, s.a., Av Ricardo J. Alfaro, Century Tower, Panama, +507 833-9432,
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.
no new posts