NexusFi: Find Your Edge


Home Menu

 





Portfolio Trader - Set Max Open Position


Discussion in MultiCharts

Updated
      Top Posters
    1. looks_one no erocla with 18 posts (1 thanks)
    2. looks_two ABCTG with 13 posts (12 thanks)
    3. looks_3 Quick Summary with 1 posts (0 thanks)
    4. looks_4 eyewall with 1 posts (0 thanks)
    1. trending_up 10,688 views
    2. thumb_up 13 thanks given
    3. group 3 followers
    1. forum 32 posts
    2. attach_file 0 attachments




 
Search this Thread

Portfolio Trader - Set Max Open Position

  #21 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

I am sorry, but I don't follow you exactly. If you want to work on a portfolio level and use the benefits that offers, you will likely have to create versions of your strategy that use portfolio related reserved words.

Regards,
ABCTG

Follow me on Twitter Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
Trade idea based off three indicators.
Traders Hideout
Pivot Indicator like the old SwingTemp by Big Mike
NinjaTrader
REcommedations for programming help
Sierra Chart
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
MC PL editor upgrade
MultiCharts
 
  #22 (permalink)
no erocla
turin italy
 
Posts: 96 since May 2013
Thanks Given: 43
Thanks Received: 4


ABCTG View Post
you will likely have to create versions of your strategy that use portfolio related reserved words.

This is not possibile, pmm keywords can be used only in portfolio trader signals.

Reply With Quote
  #23 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629


no erocla,

it appears you are misunderstanding me. You will need two sets of your strategy. One that you use in the Portfolio and the existing ones that you use on the chart.
The first one uses the PMM related reserved words and can work in conjunction with a money management signal, the latter can't.

Regards,
ABCTG

Follow me on Twitter Reply With Quote
  #24 (permalink)
no erocla
turin italy
 
Posts: 96 since May 2013
Thanks Given: 43
Thanks Received: 4


ABCTG View Post
You have the code for your individual strategy and you can set a value for a pmm_set_my_named_num at the code location where it triggers the order.

Dear ABCTG,

First of all thank you for your time.

So i've to work to my individual strategy before? i've to set some variabile during my marketposition change and then i've to retrieve it with Portfolio Trader Signal ?

Regards
No Erocla

Reply With Quote
  #25 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

no erocla,

you are welcome. Yes, you have to modify your existing strategies, but you obviously can't wait for a marketposition change as you want to know before that which strategies want to enter. You need to do that at the location in the code where the order is send.

Regards,
ABCTG

Follow me on Twitter Reply With Quote
Thanked by:
  #26 (permalink)
no erocla
turin italy
 
Posts: 96 since May 2013
Thanks Given: 43
Thanks Received: 4

Of course i think the same, but i think that is not possibile to retrieve this variable value from Portfolio Trader Signal, how can i do it ?

For example i can put this variabile in my code:

 
Code
                            
var: flag(0);

IF (
marketposition and  >= average(c,20)) then  BEGIN
    flag 
flag+1
    BUY 
"long" 100000 contracts NEXT BAR AT MARKET;    
    
END
but how can i get flag variable value in my portfolio trader signal ? i think that is not possibile.

I tried with GV too, but seems that doesn't work too.

Best Regards
No erocla

Reply With Quote
  #27 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

Like I said before you'll need to use the PMM reserved words like pmm_set_my_named_num. Take a look at the build in Ranking strategy and the corresponding money management signal, especially how the ranking value is made available for and handled in the money management signal.
Plus go through the two Portfolio Trader PDFs and this will give you everything you need.

Regards,
ABCTG

Follow me on Twitter Reply With Quote
Thanked by:
  #28 (permalink)
no erocla
turin italy
 
Posts: 96 since May 2013
Thanks Given: 43
Thanks Received: 4

Dear ABCTG,

first of all thanks for suggestions, i tryied to make this cycle:


 
Code
                            
pmms_strategies_allow_entries_all;

for 
idx 1 to pmms_strategies_count -1 begin
    
if pmms_strategy_marketposition(idx-1) <> 0 then begin
    pmms_strategy_deny_entries
(idx);
    
end
The problem is, that marketposition changes just at the end of the code, so i can't retrieve this information during cycle and i don't know which variable i can control to know if a strategy will be at market or not.

Anyway i continue to try.
Best Regards
No Erocla

Reply With Quote
  #29 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

I agree, that won't work. I would suggest that you try out the method that I gave you throughout the thread.
Meaning use a "PMM reserved words like pmm_set_my_named_num" to set a flag at the moment an order
is triggered in the individual signal. Then cycle through all signals within the money management signal to
check which signal wants to enter.

Regards,
ABCTG

Follow me on Twitter Reply With Quote
Thanked by:
  #30 (permalink)
no erocla
turin italy
 
Posts: 96 since May 2013
Thanks Given: 43
Thanks Received: 4


So i've to scan if an individual Signal is triggered, putting into my Portfolio Trader Signal all entry conditions of them:
  • logic 1
  • logic 2
  • ......
  • logic n

then i can count how many individual signals are going to enter at market.
I really can't find another way or another shortcut to do it.
Anyway I continue to work to try to find other alternatives.

Regards
No Erocla

Reply With Quote




Last Updated on September 24, 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