Jump to content

Code Icon


Recommended Posts

 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()   }//--------------------------------------------------------------------

 

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

 

 

 

 

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.

 

 

 

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). 

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

  • General Statistics

    • Total Topics
      15,449
    • Total Posts
      74,030
    • Total Members
      62,415
    • Most Online
      7,522
      10/06/21 11:53

    Newest Member
    asdasdasdasdsa
    Joined 21/06/21 19:13
  • Posts

    • does anyone know a phone number where one can listen to market updates like the dow/s&p etc. thanks 
    • Hey,  Are you looking for an additional layer of security when you login or are you asking how your money is protected.  You can enable 2FA as an additional security blanket: https://www.ig.com/uk/two-factor-authentication if you want to know about how your funds are protected you can check this link: https://www.ig.com/uk/client-funds If you have any other questions please let me know by putting @CharlotteIG
×
×
  • Create New...