dashboards quicker than grits
Page 1 of 502 12 LastLast
Results 1 to 10 of 16

Thread: dashboards quicker than grits

  1. #1
    supremechaos had a fantastic idea the other day.... Involved shining some light on dash creations....

    This is simply to start the ball rolling....

    //--

    we all code otherwise.... My preference is simplicty.... Maximum quantity of good with minimum quantity of code.... This is achieved through loops....

    //--

    I've enlarged the code heavily to make it more readable and also for the steps to be simple to grasp.... Also added some factors for various sized monitors....

    The major structure is created in both simple loops.... For(int I=0 and also for (int j=0.... Those two loops set all the pairs and timeframes, the frame....

    You'd edit the pairs and timeframes from the arrays, symlist[] and time[].... Just add or subtract what you need....

    The only thing left would be that the bar color in this instance.... It's fixed by the colour BarColor(string sym,int tf)....

    Which functon returns the colour in accordance with your principles.... I've contained the pinbar and macd as illustrations.... Just add your own topsecret indiors in the exact same way.... as many as you like.... Only requires a minute to include another....

    Adding a timer will allow you to scroll through all indiors in a speed of your choice.... Just bear in mind some indiors can be a real burden, so give it realistic time to compute.... Better to use multidimensional arrays than recalculate each time....

    Threw into a photo of chess.... It, or almost any game, could be played across the internet utilizing metatrader.... Obviously a bit more indepth....

    //--

    anyhoothis is simply to start the ball rolling.... Click the picture...h
    https://forexintuitive.com/attachmen...2407640616.mq4

  2. #2
    lucklogic had a rare type question the other day.... It involved the possibility of sorting of multideminsional arrays containing strings and doubles....

    In thousands and thousands of indiors, I hadn't seen one on the net.... He pointed to an indior that does such....

    //--
    //--

    this fashion of sorting has been something I had several years ago in dashboards.... And also in strength meters.... and ea's.... As in pictures below....

    When you have a look at the code style from anybody in my vow for listing and then compare it to mine, then 1 thing is evident.... They are pro's and I am a....

    //--

    my code style is simple.... The maximum results with minimal characters.... It's something amatuers could read.... Enjoy me.... Time permiting, I will explain to you how to sort strings and doubles....

    sorta...h

    //--
    //--


  3. #3
    the animation below, you might have to click it, is a tick by tick screen shot from this dawn of the code in activity.... Also uploaded into youtube but it was awful....

    Ideally you can see....

    Most will know this, but some might not, remember when building strength meters there'll be times when you have to invert the specific'pairs' reading.... Due to numerator vs denominator relationship....

    The eur pairs aren't any issue, as'eur' is obviously the numerator.... But from the'usd', it is numerator in some or denominator in others.... As well as the'jpy' is obviously the denominator.... This has to be considered....

    If not clear, you'll see later.... h

  4. #4
    Here are the code in simplist type....

    The pairs have been delegated in the inputs section.... For me personally this has always functioned best....

    //--
    //--

    that the arrays are full of the'j' loop....

    Inserted Code for(int j=0; jlt;26; j ) // fill array
    //--
    //--

    array is then sorted....

    Inserted Code ArraySort(data,WHOLE_ARRAY,0,MODE_DESCEND); // type array
    //--
    //--


    the screen is created in the'I' loop....

    Inserted Code for(int I = 0; I lt; 26; I ) // prepare screen

    //--
    //--

    and below are the Whole plain jane version.... Of course we can doll it up with a few more lines of code.... And we should....

    Ai not gonna make the euro's rsi worth any better lookin.... But still worth the time...h


    //--
    //--


    Inserted Code #property indior_chart_window string symbol; string symlist#91;26#93; = USDCADm, USDCHFm, USDJPYm, NZDJPYm, AUDJPYm, GBPJPYm, CADJPYm, CHFJPYm, AUDCHFm, AUDCADm, GBPCHFm, NZDCHFm, AUDNZDm, EURCHFm, EURAUDm, EURCADm, EURGBPm, EURJPYm, EURNZDm, GBPCADm, GBPNZDm, GBPAUDm, EURUSDm, GBPUSDm, AUDUSDm, NZDUSDm; extern int horizontal = 10; extern int vertical = 50; dual data#91;26Number 93;#91;26Number 93;; // ------------------------------------------------------------------ //| Custom indior initialization serve | // ------------------------------------------------------------------ int init() //-- indiors //-- return(0); // ------------------------------------------------------------------ //| Custom indior deinitialization function | // ------------------------------------------------------------------ int deinit() //-- //-- return(0); // ------------------------------------------------------------------ //| Custom indior iteration function | // ------------------------------------------------------------------ int start() int counted_bars=IndiorCounted(); //-- for(int j=0; jlt;26; j ) // fill array logo = symlist#91;j#93;; data#91;j#93;#91;0#93; = NormalizeDouble(iRSI(symbol,0,5,0,0),2); data#91;j#93;#91;1#93; = j; //-- //-- ArraySort(data,WHOLE_ARRAY,0,MODE_DESCEND); // type array for(int I = 0; t lt; 26; I ) // prepare screen logo = symlist#91;I#93;; int n = data#91;I#93;#91;1#93;; Display(sym I, horizontal 100,vertical (I*26)); ObjectSetText(sym I, symlist#91;n#93;,12, Verdana,Blue); Display(rsi I, horizontal 200,vertical (I*26)); ObjectSetText(rsi I,DoubleToStr(data#91;I#93;#91;0#93;,2),12, Verdana,Blue); //-- return(0); // ------------------------------------------------------------------ //------ //------ void Display(string name, int x, int y) ObjectCreate(name, OBJ_LABEL, 0, 0, 0); ObjectSet(name, OBJPROP_CORNER, 0); ObjectSet(name, OBJPROP_XDISTANCE, x); ObjectSet(name, OBJPROP_YDISTANCE, y); ObjectSet(name, OBJPROP_BACK, FALSE);

  5. #5
    have not read dailyfx's newest yet,'the best way to trade panic'.... I, however,'ll have a wild guess and say'don't'....

    Yesterday their post was about tradin with the fad....

    That's going from one extreme to the other....

    //--
    //--

    the new kid on the trading techniques block, al's extreme tma, seems to attempt to trade panic.... So let us include the tma.... Or my preference zznbrm's variant,'tmatrue'....

    We can also include igors variant of the'tsr', for'non-panic' fad detection....


    //-----
    //-----

    it should come as no surprise when rsi reaches extremes, the tmatrue will be also.... As found in the image below....

    If someone is thinkin of enlarging to all timeframes keep in mind the tma will increase the tick count substantially.... Tick count as from the purpose'gettickcount'....

    //--
    //--


    about 7 years back both kimiv and sx ted set out a few features containing functions most of which involved string array manipulations.... Trouble was back then I didn't --.... They are under....

    //--
    //--

    the code for tmatrue and tsr are similar...h

    //--
    //--
    Inserted Code if(iClose(symlist#91;n#93;,0,0) gt; iCustom(symlist#91;n#93;,0,TmaTrue,true,true,true, true,1,0)) aclr = Blue; arrow = 74; else if(iClose(symlist#91;n#93;,0,0) lt; iCustom(symlist#91;n#93;,0,TmaTrue,true,true,true, true,2,0)) aclr = Red; arrow = 76; else aclr = Gray; arrow = 83; Screen (extremettma I, horizontal 600,vertical (I*26)); ObjectSetText(extremettma I, CharToStr(arrow),16, Wingdings,aclr); if(tsr(symbol,1440) == 1) aclr = Blue; arrow = 233; else if(tsr(symbol,1440) == 2) aclr = Red; arrow = 234; else aclr = Gray; arrow = 83; Screen (tsr I, horizontal 700,vertical (I*26)); ObjectSetText(tsr I, CharToStr(arrow),12, Wingdings,aclr);

    //--
    //--

    https://forexintuitive.com/cryptocur...bar-close.html
    https://forexintuitive.com/forex-tra...s-journal.html
    https://forexintuitive.com/cryptocur...code-code.html
    https://forexintuitive.com/cryptocur...ck-charts.html

  6. #6
    Thank you for this elaborate explanation - helpful!

  7. #7
    years back there once had been an indior that appealed to me.... Appears it started with a's' or'c', can't remember the name....

    Finally binned it as a result of excess http://docs.mql4.com/common/GetTickCount.... Or more so, due to the fact I could not rewrite the indior in a manner that would lower the gtc....

    If one indior is applied to one chart there are rarely problems.... But start calling several complicated icustom's across all timeframes and all pairs just to load the outcomes in a dashboard.... You”ll quickly see where the phrase'a watched pot never boils' came from....

    Unless there's a demand for several of the indiors whistles and bells, alter the name and try reducing the icustoms down to their bare minimum code.... Occasionally it's better still to incorporate the mathematics in the dashboard and steer clear of the icustom all together....

    With al's intense system for example again, we can use,

    //--
    Inserted Code if(iClose(emblem,1440,0) gt; iMA(emblem,1440,20,0,3,0,0) (2*iATR(emblem,1440,100,1))) arrowlwmacclr = Lime; lwmacwing = 233; else if(iClose(emblem,1440,0) lt; iMA(emblem,1440,20,0,3,0,0) - (2*iATR(emblem,1440,100,1))) arrowlwmacclr = Red; lwmacwing = 234; else arrowlwmacclr = Gray; lwmacwing = 83;
    //--

    alarms are nice.... It simply boils down to a matter of your taste and the indiors load....

    When cutting into a minimum, the goal is the capability to compose it your mind whilst conversing with a 3 year old....

    Illustration below...h

    //--
    https://forexintuitive.com/attachmen...3639896955.mq4

  8. #8
    Hayseed

    Thank you for latest post - question - dashboard based on 24 currencies - how do I go about using a filter to show only those currencies that meet either/or or both states? Example: your post #19 show just those currencies that are included 5 pips of either upper or lower bb on H1

    Thank you for your advise

  9. #9
    Quote Originally Posted by ;
    show just those currencies which are within 5 pips of upper or lower bb on H1
    //--

    hey mobthehop.... The terms in red can be read many ways, every one of which would be coded differently....

    Any filter state could go from the'if' lineup.... H

    //--
    //--

    Inserted Code colour arrowclr; int wing; double purpose = MarketInfo(emblem,MODE_POINT)*10; if((iClose(emblem,0,0) - iBands(logo,interval,20,2,0,0,MODE_UPPER,0)) gt; (-pips*stage )) arrowclr = Lime; wing = 233; else if((iBands(emblem,interval,20,2,0,0,MODE_LOWER,0) - iClose(emblem,0,0)) gt; (-pips*stage )) arrowclr = Red; wing = 234; else arrowclr = Gray; wing = 83; Screen (quot;bandsquot; symbol I, horizontal 100,vertical (I*26)); ObjectSetText(quot;bandsquot; symbol I, CharToStr(wing),12, quot;Wingdingsquot;,arrowclr);

  10. #10
    the first of every month I download all new platforms, savin only a few indiors and experts.... And start over clean.... Previous work can become a true distraction....

    While weedin out I came across this film which somebody should have posted....

    Interesting....

    Usually, if you can see it you are able to program it.... The hard part is figuring out the math represented by the graphics...h

    //--
    //--

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