Page 1 of 503 1 2 3 LastLast
Results 1 to 10 of 24

Thread: previous bar OHLC

  1. #1

    previous bar OHLC


    Is there some possibility to generate MT4 to display OHLC data of the prior bar/candle instead of the currently developing one in the upper left corner?
    Or maybe there is an indior posted somewhere, but I could not find it.


  2. #2
    Quote Originally Posted by ;
    This one is easy. It might be a piece of code like:

    Inserted Code Comment(Open#91;1#93;,High#91;1#93;,Low#91;1#93;,C lose#91;1#93;-RRB-; also it would display right beneath the current OHLC
    thank you very much,
    but could you place it into code if it's no problem for you?
    I've been trying for a while- it compiles well but nothing comes up the screen after applying. I am totally unfamiliar with mql structure and probably messed something up.

  3. #3
    Why dont you post the code that you have now and that I might help fix it.

    You article code at no cost, not the other way around

  4. #4
    Quote Originally Posted by ;
    Why dont you post the code you have now and I might help correct it.

    You post code at no cost, not the other way around
    Really there is nothing to show, I only tried to manipulate code of some other indior, which can be MT4 included, just deleted that code and added the line you suggested. Apparently there is some init() function and start () but I don't have any clue what to do with it. It is only a matter of trial and error for me.
    I thought that it is as straightforward as in the example of C language for instance: main() and coutlt;... but it isn't. Or maybe it is but it's black magic for me.
    I asked on the forum since I don't wish to waste 2 days just to work out some very simple line that I can live without.

  5. #5
    Try this:

    Inserted Code //P ------------------------------------------------------------------ //| GoHan OHLC.mq4 | //| Copyright © 2008, | //| | //P ------------------------------------------------------------------ #property copyright Copyright © 2008, #property Hyperlink //P ------------------------------------------------------------------ //| expert initialization Serve | //P ------------------------------------------------------------------ int init() //-- managelowerstatus(; //-- return(0); //P ------------------------------------------------------------------ //| expert deinitialization function | // ------------------------------------------------------------------ int deinit() //-- //-- return(0); //P ------------------------------------------------------------------ //| expert start Operate | // ------------------------------------------------------------------ int Begin () //-- Opinion (Open#91;1#93;,High#91;1#93;,Low Cost #91;1#93;,Close#91;1#93;-RRB-; //-- return(0); // ------------------------------------------------------------------ // ------------------------------------------------------------------ //| Manage lower Standing | // ------------------------------------------------------------------ void managelowerstatus(string addstatus) ObjectDelete(Lower_Status); Should (addstatus! ) =-RRB- ObjectCreate(Lower_Status, OBJ_LABEL, 0, 0, 0);// Establishing obj. ObjectSet(Lower_Status, OBJPROP_CORNER,3); // Reference corner ObjectSet(Lower_Status, OBJPROP_XDISTANCE, 2);// X coordinate ObjectSet(Lower_Status, OBJPROP_YDISTANCE, 1);// Y coordinate ObjectSetText(Lower_Status, addstatus, 9, Verdana, Yellow);

  6. #6
    Quote Originally Posted by ;
    Try this:
    not Functioning:[

  7. #7
    That is your whole article?

    At least put an error message or something

  8. #8
    Quote Originally Posted by ;
    that is your entire post?

    At least put up an error message or something
    There isn't any.
    It compiles without any warning, but nothing happens after I use it to a chart.

  9. #9
    Put up a screenshot Using a chart that has the EA attached

  10. #10
    Quote Originally Posted by ;
    not Functioning:[
    THAT'S A Indiion OF Terrible PROGRAMMING!

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. Read more.