TradingView
Anton_Zhezherun
28 mar 2023 08:30

ICT Macros by Cryptofor 

Euro Fx/U.S. DollarFXCM

Beskrivning

ICT Macros by Cryptofor

Time periods in which the price is most volatile. At this time, the algorithm is programmed to attack liquidity or fill a significant FVG from which the OF can continue.

Plots of macros:

1. London Macros:
  • 02:33 - 03:00
  • 04:03 - 04:30


2. New York AM Macros:
  • 08:50 - 09:10
  • 09:50 - 10:10
  • 10:50 - 11:10


3. New York Lunch + PM Macros:
  • 11:50 - 12:10
  • 13:10 - 13:40
  • 15:15 - 15:45

Features:
  • Flexible line settings
  • Flexible text settings
  • Display data for all time or for the last 24 hours
  • Switch for each type of macro
  • Macro background color settings

Versionsinformation

Updates:
  • Now the indicator shows the end of the macro immediately
  • Small code improvements
Kommentarer
hskjasper
Hello Anton,
Thank you so much for your indicator and it is really help me alot.
However, there is a bug. When the chart switch to 2 minutes or 4 minutes chart, the 3:15-3:45 macro secession disappear. I am not good at programming that is why I would like to ask for your help to fix it. Thanks again.
Anton_Zhezherun
@hskjasper, Hi, thanks for using the indicator
The reason why the macro does not show on the 2 or 4 minute time frame is that the time parameters for this time frame are not specified in the code, try to paste this code on line 75:

//---------2m----------
if timeframe.period == "2"
_2_33 := timestamp('UTC-4', year, month, dayofmonth, 2, 32, 00)
_3 := timestamp('UTC-4', year, month, dayofmonth, 3, 0, 00)
_4_03 := timestamp('UTC-4', year, month, dayofmonth, 4, 2, 00)
_4_30 := timestamp('UTC-4', year, month, dayofmonth, 4, 30, 00)
_8_50 := timestamp('UTC-4', year, month, dayofmonth, 8, 52, 00)
_9_10 := timestamp('UTC-4', year, month, dayofmonth, 9, 10, 00)
_9_50 := timestamp('UTC-4', year, month, dayofmonth, 9, 52, 00)
_10_10 := timestamp('UTC-4', year, month, dayofmonth, 10, 10, 00)
_10_50 := timestamp('UTC-4', year, month, dayofmonth, 10, 52, 00)
_11_10 := timestamp('UTC-4', year, month, dayofmonth, 11, 10, 00)
_11_50 := timestamp('UTC-4', year, month, dayofmonth, 11, 52, 00)
_12_10 := timestamp('UTC-4', year, month, dayofmonth, 12, 10, 00)
_13_10 := timestamp('UTC-4', year, month, dayofmonth, 13, 10, 00)
_13_40 := timestamp('UTC-4', year, month, dayofmonth, 13, 42, 00)
_15_15 := timestamp('UTC-4', year, month, dayofmonth, 15, 16, 00)
_15_45 := timestamp('UTC-4', year, month, dayofmonth, 15, 46, 00)

//---------4m----------
if timeframe.period == "4"
_2_33 := timestamp('UTC-4', year, month, dayofmonth, 2, 32, 00)
_3 := timestamp('UTC-4', year, month, dayofmonth, 3, 0, 00)
_4_03 := timestamp('UTC-4', year, month, dayofmonth, 4, 2, 00)
_4_30 := timestamp('UTC-4', year, month, dayofmonth, 4, 30, 00)
_8_50 := timestamp('UTC-4', year, month, dayofmonth, 8, 52, 00)
_9_10 := timestamp('UTC-4', year, month, dayofmonth, 9, 10, 00)
_9_50 := timestamp('UTC-4', year, month, dayofmonth, 9, 52, 00)
_10_10 := timestamp('UTC-4', year, month, dayofmonth, 10, 10, 00)
_10_50 := timestamp('UTC-4', year, month, dayofmonth, 10, 52, 00)
_11_10 := timestamp('UTC-4', year, month, dayofmonth, 11, 10, 00)
_11_50 := timestamp('UTC-4', year, month, dayofmonth, 11, 52, 00)
_12_10 := timestamp('UTC-4', year, month, dayofmonth, 12, 10, 00)
_13_10 := timestamp('UTC-4', year, month, dayofmonth, 13, 10, 00)
_13_40 := timestamp('UTC-4', year, month, dayofmonth, 13, 42, 00)
_15_15 := timestamp('UTC-4', year, month, dayofmonth, 15, 16, 00)
_15_45 := timestamp('UTC-4', year, month, dayofmonth, 15, 46, 00)

and this code on line 177

// ---------1m----------
londonOffs = 27
nyamOffs = 20
nylpmFirstOffs = 20
nylpmSecondOffs = 30

//---------2m----------
if timeframe.period == "2"
londonOffs := 13
nyamOffs := 10
nylpmFirstOffs := 10
nylpmSecondOffs := 15

//---------4m----------
if timeframe.period == "4"
londonOffs := 7
nyamOffs := 5
nylpmFirstOffs := 5
nylpmSecondOffs := 8
antonywhite_
I have been looking for a normal indicator for a long time
Anton_Zhezherun
stragewhite_
good
Anton_Zhezherun
Bitfinpro
спасибо большое, как раз только начал погружаться в макросы
Anton_Zhezherun
feromutvink
toooopppp
Mer