operation_hours: operation_hours

Description Usage Arguments Value Examples

View source: R/operation_hours.R

Description

This function defines the operations hours of the EA.

Usage

1
operation_hours(start_time, end_time, time_zone)

Arguments

start_time

The time that the EA should start to trade.

end_time

The time that the EA should stop to trade and close the open positions.

time_zone

The time zone.

Value

A logical variable TRUE if the Expert Advisor can trade.

Examples

1
2
3
4
time_zone <- "Brazil/East"
op_hours<- operation_hours(start_time = 9.5,
end_time = 17,
time_zone = time_zone)

TwitterAutomatedTrading documentation built on July 1, 2020, 5:48 p.m.