NexusFi: Find Your Edge


Home Menu

 





Portfolio Trader - coding money management


Discussion in MultiCharts

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




 
Search this Thread

Portfolio Trader - coding money management

  #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

Can you help answer these questions
from other members on NexusFi?
MC PL editor upgrade
MultiCharts
ZombieSqueeze
Platforms and Indicators
Trade idea based off three indicators.
Traders Hideout
Better Renko Gaps
The Elite Circle
Increase in trading performance by 75%
The Elite Circle
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Just another trading journal: PA, Wyckoff & Trends
31 thanks
Tao te Trade: way of the WLD
24 thanks
My NQ Trading Journal
14 thanks
GFIs1 1 DAX trade per day journal
11 thanks
Diary of a simple price action trader
10 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,433 since Apr 2013
Thanks Given: 481
Thanks Received: 1,627

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 Twitter 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


© 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