NexusFi: Find Your Edge


Home Menu

 





Close after "N" Days


Discussion in MultiCharts

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




 
Search this Thread

Close after "N" Days

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

Hi all,

anyone know if there's a way to close position after N Days of activity ?
Of for example, to refere "barsinceentry" from data2 ?

Regards
No Erocla

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
REcommedations for programming help
Sierra Chart
What broker to use for trading palladium futures
Commodities
Better Renko Gaps
The Elite Circle
MC PL editor upgrade
MultiCharts
Quantum physics & Trading dynamics
The Elite Circle
 
  #2 (permalink)
 ABCTG   is a Vendor
 
Posts: 2,436 since Apr 2013
Thanks Given: 482
Thanks Received: 1,629

No Erocla,

what about counting the number of days you are in a position or to close the position when the date is X days later than your entry date?

Regards,
ABCTG


no erocla View Post
Hi all,

anyone know if there's a way to close position after N Days of activity ?
Of for example, to refere "barsinceentry" from data2 ?

Regards
No Erocla


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


Dear ABCTG thank you for response,

i don't know about the first way, because day are from 0 to 6.
for the second way of course can be possibile, i've to store the day during entering at market, i was hoping to some other shortcut.

thank you
regards
no erocla

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

No Erocla,

for the first way you'd need your own counter, each new day while in a position you'd increment it. You don't need the day value for that.
PosTradeEntryDateTime already stores the date information for entries, there is no need to store it. When you work on daily charts you can even use BarsSinceEntry.

Regards,

ABCTG

Follow me on Twitter Reply With Quote
Thanked by:




Last Updated on February 23, 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