Number of ticks per second

If you need an Indicator or Signal developed or translated from other language, please post all Indicator development REQUESTS to this section here.

Moderator: admin

Number of ticks per second

Postby isamegrelo » Wed Aug 15, 2018 1:49 pm

//Variable : //Variable : ticks quantity of the current timeframe (21 ticks by default)
Variable=21

Hr=Round(OpenTime/10000)
if Hr*10000>OpenTime then
Hr=Hr-1
endif

M=Round((OpenTime-Hr*10000)/100)
if M*100>OpenTime-Hr*10000 then
M=M-1
endif

S=OpenTime-(Hr*10000+M*100)

Taillme=3600*Hr+60*M+S
Ticksme=Variable/(Taillme-Taillme[1])

Return Ticksme
isamegrelo
FXCodeBase: Initiate
 
Posts: 114
Joined: Mon May 29, 2017 3:36 pm



Return to Indicator and Signal Requests

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 6 guests