Forum

AVOID TRADE COPYING

hello All, I would like to know, is there a way that one can avoid trade copying? One of my ideas was that the expert advisor that you would like to protect, could have a way of checking if there are any other expert advisors or scripts on the server and then maybe stop execution if there are more

stop trade copying

Hello, I would like to know two things, i) is there a way that one can avoid signals being copied from an expert advisor? I want to avoid trades being copied from my expert advisor ii) Is there a way of finding out if there is more than one expert advisor connected to an account? Thank you

WORKING WITH FILES

Hello, i am trying to work with files but i must be having an issue with either storage or access of the file i want to work with. Attached is a binary file, holding an array, and the expert code that i am using to read the array and print it out the location of the file on my local computer is

time of event

hello, I would like to find out the time of the execution of an event i.e if it is an arrow drawn by the indicator or the time an order executed . how can this be done? thank you in advance

Avoiding low sells and high buys

Hello people, I would like to find out, how do you avoid selling low or buying high with an expert advisor, and which indicator is suitable to use in such an environment?? I ask this because I have my expert advisor, but in many instances and in volatile pairs such as XXX/YEN OR YEN/XXX i end up

backtests running too slow

hello people, I am running my expert advisor, with a couple of indicators helping me develop my entry strategy, but when i backtest it it is running too slowly...is there a way that I can be able to still backtest my advisor but abit faster? thanks

additional decimal points for lotsize

Hello everyone, im trying to add the decimal points for the lotsize that my expert advisor can handle. currently it is only using 2 decimal places that is 0. 01 but i would like it to use 0. 015 , i have tried to do this with NormalizeDouble function but im not getting the desired result. is there

Combining two expert advisors

hello everyone, is there a way one can combine two expert advisors using different magic numbers? I know I can write them all into one file, but as they are, separate is there a way that they can be combined, without writing them into one file?? thanks

using Account information functions

Hello everyone, Would like to know, how to properly use AccountFreeMargin function . I want my expert to not open orders when lets say the margin is less than 100, so I write, if(AccountFreemargin()>=100) {...logic to open orders...} but this is not working since some orders still open even when the

changing extern variables

Can I modify an external variable as my expert is running? I have an extern variable takeprofit = 400; but Id like to change it to 450 when I have a total of 5 orders in the market, but when I count the orders with a for statement, and ask that takeprofit=takeprofit+50; but it doesnt add my