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,717 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

  #31 (permalink)
 eyewall 
Austin, TX
 
Experience: Advanced
Platform: NT, TS, TOS, IB
Trading: ES
Posts: 14 since Sep 2015
Thanks Given: 0
Thanks Received: 4

I'm trying to do something similar and it all seems like a terrible, giant hack. Why in the world MC & TS don't just fix their object models so you can address and control multiple securities via your code and control which are bought & sold is a stunningly huge gap. I'm very frustrated with what's available to people that can program with these 'platforms'. I hope someone starts a company to redesign a platform from the ground up around a better object model. Sorry for the negativity. I will post code if I get this rotation strategy working, perhaps it will be of some help.

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
ZombieSqueeze
Platforms and Indicators
Better Renko Gaps
The Elite Circle
Trade idea based off three indicators.
Traders Hideout
Quantum physics & Trading dynamics
The Elite Circle
REcommedations for programming help
Sierra Chart
 
  #32 (permalink)
no erocla
turin italy
 
Posts: 96 since May 2013
Thanks Given: 43
Thanks Received: 4

Maybe i found another way, shouldn't be so hard like i thought, today i try to use pmm_set... on my signals:

 
Code
                            
input:ptf(false);

if (
mp <> and ...) then begin
if ( ptf true then pmm_set....;
buy ....
end
Anyway dear eyewall, I stil think that multicharts is the best commercial platform actually developed for automated trading.
This portfolio trader should be more user friendly anyway, they complicated so much something that should be very much easier.

Amibroker + robust automated trading can really beat them all =)

Regards
No Erocla

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


Ok maybe i found a way, thank you ABCTG for support.

Put it into your individual signals:

 
Code
                            
input:ptf(true);

if (
mp <> and ...) then begin
if (ptf truethen pmm_set_my_named_num("test",1);
buy ....
end
Then this is the Portafoglio Trader Signal:

 
Code
                            
var:idx(0),count(0);

array:
strategyIndexes[](0);
count 0;


    
pmms_strategies_deny_entries_all;

for 
idx 0 to pmms_strategies_count -1 begin
    
if ( pmms_get_strategy_named_num(idx,"test") = and count 0then begin
    count 
1;
    
pmms_strategy_allow_entries(idx);
    
pmms_set_strategy_named_num(idx,"test",0);
    
end;
end;

if 
pmms_strategies_in_positions_count(strategyIndexes) >= 1 then
pmms_strategies_deny_entries_all
;

print(
pmms_strategies_in_positions_count(strategyIndexes)); 
This structure limit your portfoglio to allow just one trade per time at market.

Now i've to test it at market.

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