NexusFi: Find Your Edge


Home Menu

 





Portfolio Trader - help me for this issue


Discussion in MultiCharts

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




 
Search this Thread

Portfolio Trader - help me for this issue

  #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?
NT7 Indicator Script Troubleshooting - Camarilla Pivots
NinjaTrader
Cheap historycal L1 data for stocks
Stocks and ETFs
REcommedations for programming help
Sierra Chart
Better Renko Gaps
The Elite Circle
About a successful futures trader who didn´t know anyth …
Psychology and Money Management
 
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

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


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


© 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