Hiding functions from source codes

Abubakar Saidu
7423
Abubakar Saidu  

HI.. good day to you all..

Am not sure if tis is possible 

is there a way to hide functions from source code.. .mq5 or mq4  

eg.

void TrailingStop()

  {

//Trailing code

}

or instead calling it from a private website codes..

 eg.

void TrailingStop()

  {

//get Trailing code function from my website.. functiontrailing();

}

Thanks..

William Roeder
23512
William Roeder  

Abubakar Saidu: is there a way to hide functions from source code.. .mq5 or mq4  

or instead calling it from a private website codes..

  1. It's not possible. The compiler must see all your code to compile it.
  2. The data used can be read from elsewhere, but if you have to ask № 1, you are way over your head.
Raymond Ogechukwu Omeh
2647
Raymond Ogechukwu Omeh  

I don't think that is possible.

Your closest shot is embedding private functions in a dll.

Abubakar Saidu
7423
Abubakar Saidu  
Raymond Ogechukwu Omeh:

I don't think that is possible.

Your closest shot is embedding private functions in a dll.

Hi.. ooh thanks will look at it.. which is the best dll article to look at.. there are lots of them