Forum

HOW TO WRITE A TAKE PARTIAL PROFIT FUNCTION IN MQL4

Im currently trying to write a function for taking partials but it seems not to be working.Aby help in correcting my mistakes will be appreciated amd better still,if you could come up with a better fun void Takepartials() { bool status; int cnt; RefreshRates(); if(OrdersTotal()>0) {

How do i put indicator calculations in a expert

What i did initialy was use the iCustom function to return the value of the last two shift of the indie,, Now i m gonna need to write a calculations that would do exactly that on an expert Advisor i.e it would calculate the values of each bars and stores them in an array where i can i ndex the last