RedeeCash TimeZones
- Indicadores
- Patrick Odonnell Ingle
- Versão: 1.2
- Atualizado: 3 setembro 2022
Este indicador mostrará os pregões ativos e inativos, bem como definirá variáveis globais como se o pregão está ativo (1) ou inativo (0).
Usando a função de biblioteca iCustom, você pode invocar este indicador de um Expert Advisor ou Script, da seguinte forma:
// Invocar indicador personalizado iCustom(Symbol(),PERIOD_D1,"Market/RedeeCash_TimeZone",0,0,Blue,Red); // obter os valores das variáveis globais double NewYorkSessionIsActive = GlobalVariableGet("TZ-NewYork"); double LondonSessionIsActive = GlobalVariableGet("TZ-London"); double SydneySessionIsActive = GlobalVariableGet("TZ-Sydney"); double TokyoSessionIsActive = GlobalVariableGet("TZ-Tokyo");
Os pregões mostram o horário UTC com seu intervalo de operação entre parênteses. O indicador de hora HOME mostra a hora da máquina local com a hora UTC atual entre colchetes. A hora do servidor mostra a hora do servidor do broker. Tanto o HOME quanto o SERVER são mostrados em AZUL e suas cores não mudam.
Quando a sessão de negociação está VERMELHA, a sessão de negociação está ativa. Quando a sessão de negociação é AZUL, a sessão de negociação está inativa.
As variáveis globais são definidas como 1 para sessões de negociação ativas e 0 para sessões de negociação inativas.