NexusFi: Find Your Edge


Home Menu

 





Portfolio Trader - help me for this issue


Discussion in MultiCharts

Updated
    1. trending_up 2,173 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 > 5 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?
requesting .nrd replay files from 2026 spy and qqq
The Elite Circle
No book, only a stair: journaling fills where price move …
Cryptocurrency
EA
Platforms and Indicators
My Rant with AMP Futures
Trading Reviews and Vendors
Datafeed for Atas
Platforms and Indicators
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
BERN ALGOS algo trading journal
3 thanks
NexusFi site changelog and issues/problem reporting
2 thanks
TopStep Trader disappointment
2 thanks
Want your NinjaTrader indicator created, free?
1 thanks
Running trading strategies on a VPS
1 thanks
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,448 since Apr 2013
Thanks Given: 494
Thanks Received: 1,643

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