NexusFi: Find Your Edge


Home Menu

 





Powerlanguage minute


Discussion in MultiCharts

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




 
Search this Thread

Powerlanguage minute

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

Hi all,

there is any shortcut/method to retrieve just "minute" information ?
For example a function that for time = 14:05 returns 5.

with this : print(formattime("m",datetime)); i can retrieve this info, but how to get integer value ?

Regards
No Erocla

Reply With Quote

Can you help answer these questions
from other members on NexusFi?
Futures True Range Report
The Elite Circle
Exit Strategy
NinjaTrader
New Micros: Ultra 10-Year & Ultra T-Bond -- Live Now
Treasury Notes and Bonds
ZombieSqueeze
Platforms and Indicators
NexusFi Journal Challenge - April 2024
Feedback and Announcements
 
Best Threads (Most Thanked)
in the last 7 days on NexusFi
Get funded firms 2023/2024 - Any recommendations or word …
61 thanks
Funded Trader platforms
39 thanks
NexusFi site changelog and issues/problem reporting
26 thanks
GFIs1 1 DAX trade per day journal
18 thanks
The Program
18 thanks
  #2 (permalink)
 
Jura's Avatar
 Jura   is a Vendor
 
Posts: 775 since Apr 2010
Thanks Given: 2,352
Thanks Received: 690


no erocla View Post
there is any shortcut/method to retrieve just "minute" information ?
For example a function that for time = 14:05 returns 5.

with this : print(formattime("m",datetime)); i can retrieve this info, but how to get integer value ?

You can use the MinutesFromDateTime keyword for this, like so:

 
Code
Variables:
	minutes(0);
	
minutes = MinutesFromDateTime(DateTime);

Reply With Quote
Thanked by:




Last Updated on October 22, 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