Watch how to download trading robots for free
Find us on Twitter!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Scripts

Subtract Time - script for MetaTrader 5

In this script you have comment with time subtraction and ticks counter.
Published by:
Pablo
Views:
2210
Rating:
(6)
Published:
2023.04.16 15:04
Updated:
2023.04.17 18:32
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

With this short piece of code you are going to learn how to subtract the time.
it may be very useful to time your trades entrances and exits, also to make up strategies based on time.

I use a tick counter to execute the subtraction.
Notice that the initial date is: 1970.01.01 00:00:00 and you may use it as a parameter for your calculations.

---
To use it just grab it to your chart and you're gonna see the Comment on your screen with such information.

    Exponential Commodity Channel Index Exponential Commodity Channel Index

    Commodity Channel Index using exponential moving averages.

    Display trade history on charts (MT5) Display trade history on charts (MT5)

    to display trade history files(.csv) on charts.

    Tick Speed Indicator Tick Speed Indicator

    This example was created to see how long it takes to reach 100 ticks. So this indicator is a seconds / "centick" (centick = 100 ticks). It helps you trade orders flow.

    Money Management Money Management

    Close trades when the percentage profit or risk of the account is reached