NexusFi: Find Your Edge


Home Menu

 





Portfolio Trader - help me for this issue


Discussion in MultiCharts

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




 
Search this Thread
  #1 (permalink)
no erocla
turin italy
 
Posts: 96 since May 2013
Thanks Given: 43
Thanks Received: 4

Hi all,

regarding this portfolio trader signal:

 
Code
                            
VAR:FLAG(FALSE),seconds(0);

pmms_strategies_deny_entries_all;

seconds CurrentTime_s-(CURRENTTIME*100);

IF 
seconds 30 and seconds 40 THEN FLAG TRUE;

IF 
seconds and seconds 20 AND  FLAG TRUE THEN BEGIN
PRINT("hello!");
FLAG=FALSE;
END
How many times do you expect to read "hello" every minutes ?
I can notice a big spam.

Regards
No Erocla


Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Probability Collapse: Bitcoin $150k Craters from 15% to …
Prediction Markets & Event Contracts
Double Deadlock: Rubio Calls Hormuz Tolls "Unfeasib …
Traders Hideout
Rubios Good News Within Hours and the 30-Day Math: Why H …
Prediction Markets & Event Contracts
Tradeify 3.0 Overhauls Futures Prop Firm Model -- One-Ti …
Funded Trading Evaluation Firms
Iran Update May 8: Still Reviewing MOU, Demands Reparati …
Traders Hideout
 
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

No Erocla,

I don't think you can foresee how many prints you receive as this might depend on the underlying timeframe
and how often your code is executed. Besides you don't use intrabarpersist for a variable that you might try to change within a bar, which can give you an unexpected outcome, too.

Regards,

ABCTG


no erocla View Post
Hi all,

regarding this portfolio trader signal:

 
Code
                            
VAR:FLAG(FALSE),seconds(0);

pmms_strategies_deny_entries_all;

seconds CurrentTime_s-(CURRENTTIME*100);

IF 
seconds 30 and seconds 40 THEN FLAG TRUE;

IF 
seconds and seconds 20 AND  FLAG TRUE THEN BEGIN
PRINT("hello!");
FLAG=FALSE;
END
How many times do you expect to read "hello" every minutes ?
I can notice a big spam.

Regards
No Erocla


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


 
Code
                            
IF seconds 30 and seconds 40 THEN FLAG TRUE;


IF 
seconds and seconds 20 AND  FLAG TRUE THEN BEGIN

PRINT("hello!");

FLAG=FALSE;

END
Dear ABCTG,

reading the code, i think that i 've to see printed "hello" just 1 time per minute, it seems logical or i maybe i forgot something else.

Thank you for help
No Erocla


Reply With Quote
  #4 (permalink)
 
Jura's Avatar
 Jura   is a Vendor
 
Posts: 775 since Apr 2010
Thanks Given: 2,352
Thanks Received: 691


no erocla View Post
reading the code, i think that i 've to see printed "hello" just 1 time per minute, it seems logical or i maybe i forgot something else.


ABCTG View Post
I don't think you can foresee how many prints you receive as this might depend on the underlying timeframe and how often your code is executed.

As ABCTG already said, this depends on how often your script calculates. 1 time per minute sounds quite reasonable given your conditions, especially when you're not trading a super-liquid market.

You might want to add the RecalcLastBarAfter() keyword to your script.


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

Dear Jura, thank you for answer.

I've not specified it because this is a Portfolio trader signal code, so is calculated tick by tick.
For this, i expected just 1 time per minute.

Best regards
No Erocla


Reply With Quote




Last Updated on January 9, 2016


© 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