You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
anyone care to share your code to enter and exit sharply?
i think mine is not the best.
int Entry(int TF)
{
double Curr_R = iCustom(NULL, TF, "RangerEA", R_MA, R_Mode, R_Shift, 0, 1);
double Prev_R = iCustom(NULL, TF, "RangerEA", R_MA, R_Mode, R_Shift, 0, 2);
if(Curr_R > 0 && Prev_R < 0) return(1); // BUY Signal
if(Curr_R < 0 && Prev_R > 0) return(2); // SELL Signal
}
this code enters and exit one bar late.