Indior causing trendlines to disappear on timeframe change
Results 1 to 6 of 6

Thread: Indior causing trendlines to disappear on timeframe change

  1. #1
    This rsi pub indior is causing trendlines to disappear in both the main and window chart on interval change. I have tried deleting ObjectsDeleteAll(); or modify it into a comment by adding // at front, it works for the trendlines but caused the bars to go bonkers. Appears the indi needs the objects to be deleted to your bars to function on all timeframes.

    I have also tried adding --

    extern bool DeleteObjectsOnExit = FALSE;

    if (DeleteObjectsOnExit) ObjectsDeleteAll();

    but no go.

    I will follow simple directions, but I am no programmer.


    Can somebody help to modify the indi to solve the issue?
    https://forexintuitive.com/attachmen...1680548078.mq4

  2. #2
    Delete only the ones produced by the current indior. .

    Thats what the indi ought to do. This is not my indior but I like using it. Can u do the modifiions?

  3. #3
    Quote Originally Posted by ;
    delete just the ones produced by the current indior. . Thats exactly what the indi ought to do. This is not my indior but I like using it. Can u do the alterations?
    Attached updated version... It deletes now just items plotted by GH_RSI indior.

    I did not tested but it ought to get the job done.
    https://forexintuitive.com/attachmen...3562980860.mq4

  4. #4
    Thank works like a charm, you FerruFX. Bars dont go mad and trendlines stay. Thanks a million!

  5. #5

  6. #6
    That's not a good practice to use ObjectsDeleteAll(). You should choose the objects and delete just those created by the current indior. This would avoid deleting all objects on your chart, wherever they come from.

    The file you attached is deleting everything with no exception when deinitialize the indior (remove/reset or change TFs).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners more information