NexusFi: Find Your Edge


Home Menu

 





Portfolio Trader - coding money management


Discussion in MultiCharts

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




 
Search this Thread
  #1 (permalink)
 bluefightingcat 
Espoo Finland
 
Experience: Intermediate
Platform: TradingBlox, Tradestation
Trading: Stocks
Posts: 41 since Sep 2015
Thanks Given: 2
Thanks Received: 10

Ok so I am trying to learn to use Multicharts. Essentially my main interest if using multicharts to backtest my strategies. Now writing the actual entry and exit signals for my strategies is ok. However I am having issues finding information on the "money management" functions and PMM Keyworks.

Essentially I want to code the following but I have no idea where to start:

- Max number of positions (either long or short) = 5
- Certain criteria to define the size of the position depending on the available funds in my account

So to make things clearer I want the system to first check how many positions I already have open and then decide on how many more positions I can open. Then I want the system to find the next appropriate stock based on the criteria of my strategy and then based on position rules, calculate how many shares it is allowed to buy(or sell) for this particular stock.

Any help would be much appreciated.

Thanks


Started this thread Reply With Quote

 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
The Pivot Point 113.6³ — Navigating the Prediction of …
26 thanks
Sober Journey With S&P
16 thanks
The Confluence Meter: A Multi-Layered Signal Framework B …
11 thanks
NT8 color choices
10 thanks
Volume Indicators
7 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,447 since Apr 2013
Thanks Given: 493
Thanks Received: 1,639

bluefightingcat,

did you go through the two PDFs that MC provides? One contains an explanation of the Portfolio Trader functionality and reserved words, the other goes through the three built in Portfolio Strategies and explains the code.

This is a good start and should give you the information you are looking for.

Regards,

ABCTG


Follow me on X Reply With Quote
  #3 (permalink)
 bluefightingcat 
Espoo Finland
 
Experience: Intermediate
Platform: TradingBlox, Tradestation
Trading: Stocks
Posts: 41 since Sep 2015
Thanks Given: 2
Thanks Received: 10


Thanks ABCTG.

Now I haven't found the pdfs. However I have found something similar in the wiki.


Started this thread Reply With Quote
  #4 (permalink)
 bluefightingcat 
Espoo Finland
 
Experience: Intermediate
Platform: TradingBlox, Tradestation
Trading: Stocks
Posts: 41 since Sep 2015
Thanks Given: 2
Thanks Received: 10

These are what I found in the wiki:

Portfolio Trader Strategy Examples - MultiCharts

https://www.multicharts.com/trading-software/index.php/Category:PowerLanguageKeywords


Started this thread Reply With Quote
  #5 (permalink)
no erocla
turin italy
 
Posts: 96 since May 2013
Thanks Given: 43
Thanks Received: 4

Hi,

this is my solution for limit max open positions:


Anyway it works correctly during simulation but sometimes has some problem on live trading.

No Erocla


Reply With Quote




Last Updated on September 29, 2015


© 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