Central Bank Dealers Range Indicator

Discussion in 'Indicators and Charting' started by Hopiplaka, May 14, 2014.

  1. rod178

    rod178 Well-Known Member

    Joined:
    Jul 16, 2013
    Messages:
    3,146
    You can set ta trendline visualization timeframe with

    ObjectSetInteger(0,"testLine",OBJPROP_TIMEFRAMES,OBJ_PERIOD_M15|OBJ_PERIOD_H1);

    the above will set the line to be visible only on M15 and H1


    Have a look at ObjectGetInteger to detmine the visualization(s) required.
    Have a look at //http://docs.mql4.com/constants/objectconstants/visible
     
  2. Hopiplaka

    Hopiplaka My thanks go out to ICT - the life changer

    Joined:
    Jul 13, 2013
    Messages:
    798
    Hi Rod178,

    Yes, that's what I do. It's just the fact that I cannot determine (access from Visualization tab) what timeframes a specific user chooses.
    Some want OBJ_PERIOD_M15|OBJ_PERIOD_H1, others OBJ_PERIOD_H4|OBJ_PERIOD_D1, ...

    I can add a property where one have to specify a string with timeframes, but I really want to get it from the Visualization tab. Less clutter in the properties window, the functionality is there already, I just can't find a way to access to data on the tab page.

    I'm working on a workaround where I define a standard indicator_buffer and check if that contains values or not.
    That should work as well I think, but it's a work in progress :)
     
  3. rod178

    rod178 Well-Known Member

    Joined:
    Jul 16, 2013
    Messages:
    3,146
    Have you tried using ObjectGetInteger on an object created by the indicator?
     
  4. rod178

    rod178 Well-Known Member

    Joined:
    Jul 16, 2013
    Messages:
    3,146
    As indicated above, this works -

    if(ObjectGetInteger(0,"someIndicatorObject",OBJPROP_TIMEFRAMES)==0)
    {
    Print("********** draw trendline ********");
    }

    // will only print the message on the indicators object visualization
     
  5. Hopiplaka

    Hopiplaka My thanks go out to ICT - the life changer

    Joined:
    Jul 13, 2013
    Messages:
    798
    Actually the problem was completely at my side :)

    I was creating the trend lines in the OnInit function, so they were created always.
    I moved the code to the OnCalculate - with a IsInit boolean, create when false - and all works ok!
    I will change all 4 indicators and remove the current timeframe option in favour for the timeframes of the visualisation tab page.

    Thanks for your persistence Rod178!
    I'll try to upload the revised indicators before the end of the week.
     
  6. Hopiplaka

    Hopiplaka My thanks go out to ICT - the life changer

    Joined:
    Jul 13, 2013
    Messages:
    798
    Hi All,

    Please find hereby the revised indicators. Now they take the timeframe values in the Visualization tab into account. My gratitude goes out to Rod178 to help me tackle this issue.

    Please make sure you update the TimeZone info again if you are not on a GMT broker.
    Whenever you add or remove properties, they get reset.

    Oanda is currently -4, Pepperstone and Alpari +3

    CBDR DAILY v1.15: https://dl.dropboxusercontent.com/u/307602/fx_indicators/_ICT_CBDR.ex4
    CBDR WEEKLY v1.04: https://dl.dropboxusercontent.com/u/307602/fx_indicators/_ICT_CBDR_WEEKLY.ex4
    CBDR MONTHLY v1.04: https://dl.dropboxusercontent.com/u/307602/fx_indicators/_ICT_CBDR_MONTHLY.ex4
    CBDR YEARLY v1.02: https://dl.dropboxusercontent.com/u/307602/fx_indicators/_ICT_CBDR_YEARLY.ex4

    Apart from the timeframe change, following other changes were made:

    • DAILY: You can now specify a string for the CDR label/values
    • MONTHLY: You now have an option to take the NFP day into account when calculating the monthly range. So you have the flexibility to play with the range. I still think it should not be included, but at least you have the choice :)
    • ALL: There is now a description in the about dialog tab page which explains what timeframe is used to compute the dealer range. And also to give credit to ICT :)

    GLGT!
     

    Attached Files:

  7. Adamant FX

    Adamant FX Member

    Joined:
    May 6, 2014
    Messages:
    22
    Hi Hopi,

    Great indis first of all, your work is highly appreciated!

    Just wanted to let you know, no biggie, but on Daily v1.15, the Daily Open doesnt seem to work properly.
    When selected to show (from 5 GMT for example, as I prefer it), it actually appears between 0 and 5 gmt only.

    for the moment I go around this by switching it off in 1.15 and plotting v1.14 over it (the problem with that one is it appears on all TF's), so I get the Open shown properly (from 5:00 to 18:00 gmt).

    thanks
    :thumbsup:

    p.s. Thats on Alpari UK, havent tried other platforms yet.
     
  8. Hopiplaka

    Hopiplaka My thanks go out to ICT - the life changer

    Joined:
    Jul 13, 2013
    Messages:
    798
    Hi Adamant Fx,

    Thanks for your kind words.

    And thanks for the bug report. There was indeed a problem with the open lines on GMT brokers.
    I have fixed this now. I also fixed an issue with the 'Extend dealer range throughout the day' option.

    Version 1.16 is available on https://dl.dropboxusercontent.com/u/307602/fx_indicators/_ICT_CBDR.ex4
     
  9. kate682

    kate682 Well-Known Member

    Joined:
    Oct 31, 2013
    Messages:
    78
    Hi Hopi

    Have just downloaded your latest daily version, and clicked ftse by mistake, hey ho! works. Really really pleased! Thank you.

    Hugs
    Kate
    xx
     
  10. Simr

    Simr Well-Known Member

    Joined:
    Aug 31, 2013
    Messages:
    68
    Are these indis the same as the ones on the first page of this thread?

    If not , a suggestion , the latest indis could be put there with a small mention of the date they were put so that its easy for any one to find and for current users to knw if there has been an update.

    thanks..
     
  11. Hopiplaka

    Hopiplaka My thanks go out to ICT - the life changer

    Joined:
    Jul 13, 2013
    Messages:
    798
    They are yes. Problem is you are not able to update a post hour hour after posting it, so this is how I need to announce new updates.
    The links are always the same though, there is no version control.
     
  12. rod178

    rod178 Well-Known Member

    Joined:
    Jul 16, 2013
    Messages:
    3,146
    Concerning the Weekly CDR Indicator

    I there a place for using the High'Low from Friday NYO until Monday NYC ?
     
  13. Hopiplaka

    Hopiplaka My thanks go out to ICT - the life changer

    Joined:
    Jul 13, 2013
    Messages:
    798
    Hi Rod178,

    Currently this is not possible with the weekly indi.
    I might include an option similar to the monthly where you can specify to include the nfp day or not.
     
  14. rod178

    rod178 Well-Known Member

    Joined:
    Jul 16, 2013
    Messages:
    3,146
    My thinking was along the lines of is it a valid way to ID the dealer range. I missed seeing a lot of the ICT Livestream vids on CDR
     
  15. Hopiplaka

    Hopiplaka My thanks go out to ICT - the life changer

    Joined:
    Jul 13, 2013
    Messages:
    798
    Anything other than the daily is an extension to the daily CDR - discussed by ICT - I came up with, so you probably will not find anything in the video's related to the weekly/monthly/yearly CDR.
    The only thing that resembles the monthly is ICT saying that the first days before NFP sets up the remainder of the month.
    The indicators should be used in conjunction with the power of three concept (open, fake swing, body of the bar in opposite direction, close near the high/low of the week/month/year)
     
  16. sqa

    sqa Village Scribe

    Joined:
    Jan 29, 2014
    Messages:
    2,201
    If you've seen some of ICT's older work, you might have come across his "Trader's Trinity" tool, something he still uses (per a question I asked, he does still use it & Pivots). So, the Weekly/Monthly CDR isn't too far off from how ICT works.

    At some level, it's a good reminder of the important Highs/Lows, but we're still dealing with "real" system (though manipulated). So it always takes progressively more work to move the market in one direction. So assuming similar market conditions/actors, there is to be expected a relative strength to current High/Low Ranges. At least until market conditions change.
     
  17. Hopiplaka

    Hopiplaka My thanks go out to ICT - the life changer

    Joined:
    Jul 13, 2013
    Messages:
    798
    Hi Sqa,

    Yes, I'm familiar with the Daily and weekly Trinity he uses. ICT frequently mentions to look back 3 days and note the important high/low (week/day/session).
    The Trinity tool is a great way to do that, but unfortunately I didn't play with it much lately.

    Maybe I'll have a look how it relates to the daily/weekly dealer range values, good point.
     
  18. Hopiplaka

    Hopiplaka My thanks go out to ICT - the life changer

    Joined:
    Jul 13, 2013
    Messages:
    798
    Hi All,

    A new version of the indi's is available. The dealer range lines are now drawn as background objects.
    If you do not want to display a certain level, you now can set the colour to NONE, and you will not see a black line through the candles anymore.
    Weekly indi has also a few new properties:
    • You can choose to let the start time begin at 11 or 12 GMT
    • You can now let the dealer range lines extend a few days: I've seen that often a SR level was of the previous weeks weekly dealer range
    CBDR DAILY v1.17: https://dl.dropboxusercontent.com/u/307602/fx_indicators/_ICT_CBDR.ex4
    CBDR WEEKLY v1.05: https://dl.dropboxusercontent.com/u/307602/fx_indicators/_ICT_CBDR_WEEKLY.ex4
    CBDR MONTHLY v1.05: https://dl.dropboxusercontent.com/u/307602/fx_indicators/_ICT_CBDR_MONTHLY.ex4
    CBDR YEARLY v1.03: https://dl.dropboxusercontent.com/u/307602/fx_indicators/_ICT_CBDR_YEARLY.ex4

    Because some indicators have new options, previous input values are reset, so make sure you update the settings again (especially the time zone)
     
  19. sqa

    sqa Village Scribe

    Joined:
    Jan 29, 2014
    Messages:
    2,201
    Was curious if you were going to do any more updates. Been meaning to ask about adjusting a bit with the Boxes & Lines being separate. (I like a Box between my CDR lines, but not all of the boxes, hehe)

    As always, thanks a ton.
     
  20. foreigner

    foreigner Est. 12480 Hours and Counting

    Joined:
    Aug 22, 2013
    Messages:
    609
    Thanks for the updates Hopiplaka, Did you consider revising the monthly calculation in this release?
     

Share This Page