Jump to content
Sign in to follow this  

Code Icon

Recommended Posts

Hi ,  I may be dim but have only just noticed the code icon in the line above. Is this to enable copy, paste and post programming code?

 

commun.PNG

Share this post


Link to post

 exactly that - for example (I don't understand this stuff, but a basic copy paste example!)

 

//--------------------------------------------------------------------int Count=0;                                    // Global variable//--------------------------------------------------------------------int start()                                     // Special funct. start()   {   double Price = Bid;                          // Local variable   Count++;   Alert("New tick ",Count,"   Price = ",Price);// Alert   return;                                      // exit start()   }//--------------------------------------------------------------------int init()                                      // Special funct. init()   {   Alert ("Function init() triggered at start");// Alert   return;                                      // Exit init()   }//--------------------------------------------------------------------int deinit()                                    // Special funct. deinit()   {   Alert ("Function deinit() triggered at exit");// Alert   return;                                      // Exit deinit()   }//--------------------------------------------------------------------

 

Share this post


Link to post

Ok, so if I wanted to share the AIO Divergence indicator I go to MT4 metaeditor find the indicator, edit > select all > copy, then open the 'insert code' tab in a new post and paste.

Then someone else can copy that and in their metaeditor open a new file in indicators and paste.

Close and restart MT4 and the AIO Divergence indicator should be in their indicator list.

 

The AIO Divergence indicator has 30 different indicators that it will add divergence lines to.

In the pic I have selected RSI and classic divergence is in red while hidden divergence is in yellow.

 

****  Oh no ,  I just ran smack into the 20 000 character limit for posts.

 

AIOD.PNG

 

 

 

 

Share this post


Link to post

what sort of character limit would be useful for stuff like this? It maybe also a good idea to hide inside a spoiler tag like below (so the whole code isn't dominating the post). 

 

code

Share this post


Link to post

I assume the function is intended more for people sharing simple code they have written themselves, most of the indicators I have can be downloaded from somewhere on the web though it would be good to be able to show and share.

 

Most indicators would fit within 20 000 but there are many around 50 000, the one I tried was big at just under 100 000 and I have a few nearer 200 000.

 

 

 

Share this post


Link to post

hi  - I've upped the limit to 50k, however this maybe revised at a later date (up or down). If you wish to publish large scripts the only thing I can suggest is to split it over a couple of posts? (But hopefully that won't be required too often). 

Share this post


Link to post

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Member Statistics

    • Total Topics
      12,758
    • Total Posts
      65,526
    • Total Members
      86,260
    Newest Member
    Batma99
    Joined 22/10/20 12:26
  • Posts

    • Oh look, trillions of dollars sloshing about seeking alpha and very little of it 'trickling down' to actual human beings.  No wonder there is no inflation.  You'd think somebody planned this all out or something*. https://uk.reuters.com/article/uk-health-coronavirus-britain-fca/12-million-people-in-britain-will-struggle-to-pay-bills-watchdog-says-idUKKBN2763C5   * For those who'd like to know more about it: https://www.marxists.org/archive/marx/works/download/pdf/Capital-Volume-I.pdf
    • Once again my mind cycles round to this idea of understanding wave structure and how Fibonacci ratios aren't useful on their own. But then I open up that book by Precther and Frost, and then I remember why I didn't go any further with EWP.
    • More downside to come after a brief bounce off the 76.4 🤓
×
×